Advertisement
devinteske

bge(4) patch to allow but disable by-default, TSO4

May 12th, 2013
226
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 0.82 KB | None | 0 0
  1. --- sys/dev/bge/if_bge.c.orig   2013-05-12 08:52:43.000000000 -0700
  2. +++ sys/dev/bge/if_bge.c        2013-05-12 08:52:27.000000000 -0700
  3. @@ -3697,7 +3697,11 @@ bge_attach(device_t dev)
  4.         ifp->if_capabilities = IFCAP_HWCSUM | IFCAP_VLAN_HWTAGGING |
  5.             IFCAP_VLAN_MTU;
  6.         if ((sc->bge_flags & (BGE_FLAG_TSO | BGE_FLAG_TSO3)) != 0) {
  7. -               ifp->if_hwassist |= CSUM_TSO;
  8. +               /* BCM57{17,19} showing resets in the lab with TSO enabled.
  9. +                * Disabling CSUM_TSO by-default for this hardware until
  10. +                * testing can prove stable with segment offload enabled. */
  11. +               if (!BGE_IS_5717_PLUS(sc))
  12. +                       ifp->if_hwassist |= CSUM_TSO;
  13.                 ifp->if_capabilities |= IFCAP_TSO4 | IFCAP_VLAN_HWTSO;
  14.         }
  15.  #ifdef IFCAP_VLAN_HWCSUM
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement