Bug 203476

Summary: [net] [igb] not optimal checksum processing
Product: Base System Reporter: dmitry2004
Component: kernAssignee: freebsd-net (Nobody) <net>
Status: New ---    
Severity: Affects Some People CC: erj, shurd
Priority: --- Keywords: IntelNetworking, patch
Version: 10.2-STABLE   
Hardware: Any   
OS: Any   
Description Flags
Patch for if_igb.h none

Description dmitry2004 2015-10-01 16:52:55 UTC
Created attachment 161607 [details]
Patch for if_igb.h

igb driver declare in sys/dev/e1000/if_igb.c:
  ifp->if_hwassist support (CSUM_TCP|CSUM_UDP|CSUM),

but in sys/dev/e1000/if_igb.h:

this difference results = the not optimal in igb_tx_ctx_setup() in sys/dev/e1000/if_igb.c for packets other than TCP|UDP|SCTP.

And i think not work TCP, UDP, SCTP offload for IPv6 (not check), then send IPv6 TCP or UDP network stack sets flags CSUM_TCP_IPV6 or CSUM_UDP_IPV6, but in if_hwassist no CSUM_TCP_IPV6|CSUM_UDP_IPV6.

Hardware support it.