svn commit: r338761 - head/sys/dev/cxgbe
Navdeep Parhar
np at FreeBSD.org
Tue Sep 18 21:34:38 UTC 2018
Author: np
Date: Tue Sep 18 21:34:37 2018
New Revision: 338761
URL: https://svnweb.freebsd.org/changeset/base/338761
Log:
cxgbe(4): Enable TXRTLMT by default when the feature is available in the
kernel (options RATELIMIT) and provisioned in the driver's configuration
file (nethofld > 0).
Submitted by: gallatin@
Approved by: re@ (kib@)
Modified:
head/sys/dev/cxgbe/t4_main.c
Modified: head/sys/dev/cxgbe/t4_main.c
==============================================================================
--- head/sys/dev/cxgbe/t4_main.c Tue Sep 18 20:54:37 2018 (r338760)
+++ head/sys/dev/cxgbe/t4_main.c Tue Sep 18 21:34:37 2018 (r338761)
@@ -1500,6 +1500,7 @@ cxgbe_vi_attach(device_t dev, struct vi_info *vi)
#endif
ifp->if_capabilities = T4_CAP;
+ ifp->if_capenable = T4_CAP_ENABLE;
#ifdef TCP_OFFLOAD
if (vi->nofldrxq != 0)
ifp->if_capabilities |= IFCAP_TOE;
@@ -1509,10 +1510,11 @@ cxgbe_vi_attach(device_t dev, struct vi_info *vi)
ifp->if_capabilities |= IFCAP_NETMAP;
#endif
#ifdef RATELIMIT
- if (is_ethoffload(vi->pi->adapter) && vi->nofldtxq != 0)
+ if (is_ethoffload(vi->pi->adapter) && vi->nofldtxq != 0) {
ifp->if_capabilities |= IFCAP_TXRTLMT;
+ ifp->if_capenable |= IFCAP_TXRTLMT;
+ }
#endif
- ifp->if_capenable = T4_CAP_ENABLE;
ifp->if_hwassist = CSUM_TCP | CSUM_UDP | CSUM_IP | CSUM_TSO |
CSUM_UDP_IPV6 | CSUM_TCP_IPV6;
More information about the svn-src-all
mailing list