net/ena: fix indication of bad L4 Rx checksums
authorIgor Chauskin <igorch@amazon.com>
Mon, 28 Oct 2019 10:23:33 +0000 (11:23 +0100)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 8 Nov 2019 22:15:04 +0000 (23:15 +0100)
commit05817057faba9356900ced61e24a22eef6bc4c87
treece10ea4d52fa1372eaaef491bfc059666da2d7b3
parent05e7bdf57ae7453a52a8752119ab3d7f4cf2b7a6
net/ena: fix indication of bad L4 Rx checksums

Add checking of l4_csum_checked and frag flags before checking the
l4_csum_error flag.

In case of IP fragment/unchecked L4 csum - add PKT_RX_L4_CKSUM_UNKNOWN
flag to the indicated mbuf.

Fixes: 1173fca25af9 ("ena: add polling-mode driver")
Cc: stable@dpdk.org
Signed-off-by: Igor Chauskin <igorch@amazon.com>
Reviewed-by: Maciej Bielski <mba@semihalf.com>
Reviewed-by: Michal Krawczyk <mk@semihalf.com>
drivers/net/ena/ena_ethdev.c