astlpc: Request maximum MTU in fileio constructor
The MTU value 0 is special-cased to request the maximum possible MTU,
whatever that may be. Exploit this fact in the fileio constructor.
Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
Change-Id: Ib9ad48deb1644579d962b5939a3f3f444091f3ce
diff --git a/astlpc.c b/astlpc.c
index 0cfd856..103b48c 100644
--- a/astlpc.c
+++ b/astlpc.c
@@ -1121,9 +1121,12 @@
/*
* If we're doing file IO then we're very likely not running
- * freestanding, so lets assume that we're on the BMC side
+ * freestanding, so lets assume that we're on the BMC side.
+ *
+ * Requesting an MTU of 0 requests the largest possible MTU, whatever
+ * value that might take.
*/
- astlpc = __mctp_astlpc_init(MCTP_BINDING_ASTLPC_MODE_BMC, MCTP_BTU);
+ astlpc = __mctp_astlpc_init(MCTP_BINDING_ASTLPC_MODE_BMC, 0);
if (!astlpc)
return NULL;