svn commit: r357551 - head/sys/dev/cxgbe
Navdeep Parhar
np at FreeBSD.org
Tue Feb 4 23:55:22 UTC 2020
Author: np
Date: Tue Feb 4 23:55:21 2020
New Revision: 357551
URL: https://svnweb.freebsd.org/changeset/base/357551
Log:
cxgbe(4): Report accurate rx_buf_maxsize to netmap.
MFC after: 2 weeks
Sponsored by: Chelsio Communications
Modified:
head/sys/dev/cxgbe/t4_netmap.c
Modified: head/sys/dev/cxgbe/t4_netmap.c
==============================================================================
--- head/sys/dev/cxgbe/t4_netmap.c Tue Feb 4 22:40:45 2020 (r357550)
+++ head/sys/dev/cxgbe/t4_netmap.c Tue Feb 4 23:55:21 2020 (r357551)
@@ -991,6 +991,7 @@ cxgbe_nm_attach(struct vi_info *vi)
na.nm_register = cxgbe_netmap_reg;
na.num_tx_rings = vi->nnmtxq;
na.num_rx_rings = vi->nnmrxq;
+ na.rx_buf_maxsize = MAX_MTU;
netmap_attach(&na); /* This adds IFCAP_NETMAP to if_capabilities */
}
More information about the svn-src-all
mailing list