net/tap: calculate checksums of multi segs packets
authorOphir Munk <ophirmu@mellanox.com>
Sat, 23 Jun 2018 23:17:40 +0000 (23:17 +0000)
committerFerruh Yigit <ferruh.yigit@intel.com>
Mon, 2 Jul 2018 23:35:58 +0000 (01:35 +0200)
commit6546e76056e375bf8d4f398bea4741d30db5847a
tree6d581720a4fcaf32ebabddfee3c1bfae8cf7d836
parent475ff28951b69ce0c46514e8c6a6e8bfd91c5eb3
net/tap: calculate checksums of multi segs packets

Prior to this commit IP/UDP/TCP checksum offload calculations
were skipped in case of a multi segments packet.
This commit enables TAP checksum calculations for multi segments
packets.
The only restriction is that the first segment must contain
headers of layers 3 (IP) and 4 (UDP or TCP)

Reviewed-by: Raslan Darawsheh <rasland@mellanox.com>
Signed-off-by: Ophir Munk <ophirmu@mellanox.com>
Acked-by: Keith Wiles <keith.wiles@intel.com>
drivers/net/tap/rte_eth_tap.c