svn commit: r280174 - in projects/ifnet/sys/dev: bge e1000
Gleb Smirnoff
glebius at FreeBSD.org
Tue Mar 17 15:03:01 UTC 2015
Author: glebius
Date: Tue Mar 17 15:02:59 2015
New Revision: 280174
URL: https://svnweb.freebsd.org/changeset/base/280174
Log:
Do not enable polling by default.
Modified:
projects/ifnet/sys/dev/bge/if_bge.c
projects/ifnet/sys/dev/e1000/if_igb.c
Modified: projects/ifnet/sys/dev/bge/if_bge.c
==============================================================================
--- projects/ifnet/sys/dev/bge/if_bge.c Tue Mar 17 14:16:50 2015 (r280173)
+++ projects/ifnet/sys/dev/bge/if_bge.c Tue Mar 17 15:02:59 2015 (r280174)
@@ -3934,7 +3934,7 @@ again:
ifat.ifat_capenable &= ~IFCAP_HWCSUM;
ifat.ifat_hwassist = 0;
}
- sc->bge_capenable = ifat.ifat_capenable;
+ sc->bge_capenable = ifat.ifat_capenable & ~(IFCAP_POLLING);
sc->bge_mtu = ETHERMTU;
sc->bge_ifp = if_attach(&ifat);
Modified: projects/ifnet/sys/dev/e1000/if_igb.c
==============================================================================
--- projects/ifnet/sys/dev/e1000/if_igb.c Tue Mar 17 14:16:50 2015 (r280173)
+++ projects/ifnet/sys/dev/e1000/if_igb.c Tue Mar 17 15:02:59 2015 (r280174)
@@ -2963,7 +2963,8 @@ igb_setup_interface(device_t dev, struct
** Don't enable LRO by default.
*/
adapter->if_capenable = ifat.ifat_capenable =
- ifat.ifat_capabilities & ~(IFCAP_LRO | IFCAP_VLAN_HWFILTER);
+ ifat.ifat_capabilities &
+ ~(IFCAP_LRO | IFCAP_VLAN_HWFILTER | IFCAP_POLLING);
adapter->ifp = if_attach(&ifat);
More information about the svn-src-projects
mailing list