Allow configuring the maximum threshold to send inline
Signed-off-by: Vu Pham <vu@mellanox.com>
OPTION(xio_mp_max_hint, OPT_INT, 4096) // max size-hint chunks
OPTION(xio_portal_threads, OPT_INT, 2) // xio portal threads per messenger
OPTION(xio_transport_type, OPT_STR, "rdma") // xio transport type: {rdma or tcp}
+OPTION(xio_max_send_inline, OPT_INT, 512) // xio maximum threshold to send inline
DEFAULT_SUBSYS(0, 5)
SUBSYS(lockdep, 0, 1)
&xopt, sizeof(xopt));
/* and set threshold for buffer callouts */
- xopt = 16384;
+ xopt = max(cct->_conf->xio_max_send_inline, 512);
xio_set_opt(NULL, XIO_OPTLEVEL_ACCELIO, XIO_OPTNAME_MAX_INLINE_XIO_DATA,
&xopt, sizeof(xopt));
xopt = 216;