net/tap: allow all-zero checksum for UDP over IPv4
authorMichael Pfeiffer <michael.pfeiffer@tu-ilmenau.de>
Fri, 13 Nov 2020 14:03:32 +0000 (15:03 +0100)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 13 Nov 2020 18:43:27 +0000 (19:43 +0100)
commit8aab74c0b93952ba58fef140fc897d5dc83b9bc1
tree7ce75dff627795569eb91247ce8a66899831369f
parentfb0ddb659468c58c0336bd94ef4566b528c8bd28
net/tap: allow all-zero checksum for UDP over IPv4

Unlike TCP, UDP checksums are optional and may be zero to indicate "not
set" [RFC 768] (except for IPv6, where this prohibited [RFC 8200]). Add
this special case to the checksum offload emulation in net/tap.

Signed-off-by: Michael Pfeiffer <michael.pfeiffer@tu-ilmenau.de>
Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
drivers/net/tap/rte_eth_tap.c