Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --- sys/dev/bge/if_bge.c.orig 2010-06-13 19:09:06.000000000 -0700
- +++ sys/dev/bge/if_bge.c 2013-05-24 10:33:11.000000000 -0700
- @@ -32,14 +32,14 @@
- */
- #include <sys/cdefs.h>
- -__FBSDID("$FreeBSD: src/sys/dev/bge/if_bge.c,v 1.226.2.23.2.1 2010/06/14 02:09:06 kensmith Exp $");
- +__FBSDID("$FreeBSD: stable/8/sys/dev/bge/if_bge.c 250651 2013/05/15 01:22:55Z yongari $");
- /*
- * Broadcom BCM570x family gigabit ethernet driver for FreeBSD.
- [HUGE SNIP]
- @@ -2840,12 +3704,20 @@ bge_attach(device_t dev)
- ifp->if_snd.ifq_drv_maxlen = BGE_TX_RING_CNT - 1;
- IFQ_SET_MAXLEN(&ifp->if_snd, ifp->if_snd.ifq_drv_maxlen);
- IFQ_SET_READY(&ifp->if_snd);
- - ifp->if_hwassist = BGE_CSUM_FEATURES;
- + ifp->if_hwassist = sc->bge_csum_features;
- ifp->if_capabilities = IFCAP_HWCSUM | IFCAP_VLAN_HWTAGGING |
- IFCAP_VLAN_MTU;
- - if ((sc->bge_flags & BGE_FLAG_TSO) != 0) {
- + if ((sc->bge_flags & (BGE_FLAG_TSO | BGE_FLAG_TSO3)) != 0) {
- ifp->if_hwassist |= CSUM_TSO;
- +/* TSO4 considered unstable as-of SVN stable/8 revision 250651.
- + * An extreme amount of TCP traffic (or heavy amount of UDP traffic
- + * according to smh) can act as a remote Denial-of-Service attack
- + * causing a RESET of the NIC, losing communicatin for 90s (dteske) */
- +#if 0
- ifp->if_capabilities |= IFCAP_TSO4 | IFCAP_VLAN_HWTSO;
- +#else
- + ifp->if_capabilities |= IFCAP_VLAN_HWTSO;
- +# endif
- }
- #ifdef IFCAP_VLAN_HWCSUM
- ifp->if_capabilities |= IFCAP_VLAN_HWCSUM;
- [HUGE SNIP]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement