igb/ixgbe: fix IP checksum calculation
authorOlivier Matz <olivier.matz@6wind.com>
Wed, 26 Nov 2014 15:04:43 +0000 (16:04 +0100)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Wed, 26 Nov 2014 17:49:53 +0000 (18:49 +0100)
commitb22d99894a64c913f5bd5c70b0ee949459423c42
treeb8874724e1181a6e0a6399e11fcad3e3b98c884e
parented7c51a6a6801557892dd3b4d54784ad1b3be092
igb/ixgbe: fix IP checksum calculation

According to IntelĀ® 82599 10 GbE Controller Datasheet (Table 7-38), both
L2 and L3 lengths are needed to offload the IP checksum.

Note that the e1000 driver does not need to be patched as it already
contains the fix.

Signed-off-by: Olivier Matz <olivier.matz@6wind.com>
Acked-by: Konstantin Ananyev <konstantin.ananyev@intel.com>
lib/librte_pmd_e1000/igb_rxtx.c
lib/librte_pmd_ixgbe/ixgbe_rxtx.c