net/octeontx2: fix bad L4 checksum detection
authorAmit Gupta <agupta3@marvell.com>
Fri, 1 May 2020 09:53:28 +0000 (15:23 +0530)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 5 May 2020 13:54:26 +0000 (15:54 +0200)
commitc600b523c0e2bd7fdfb512ba9c5a525a7b58fc4c
tree0f2ca3d97c3d23a7693de9dbc96bd5dde537318c
parent5ed5df8073c80d1af9ec8c89a8b2a5299463058d
net/octeontx2: fix bad L4 checksum detection

On detecting outer L4 checksum as bad, both outer and
inner checksums are marked as bad. No need to explicitly
check inner L4 checksum in this case.

Outer L4 UDP checksum error => PKT_RX_OUTER_L4_CKSUM_BAD
and PKT_RX_L4_CKSUM_BAD

Inner L4 UDP checksum error => PKT_RX_L4_CKSUM_BAD

Fixes: 41fe7a3a11fd ("net/octeontx2: offload bad L2/L3/L4 UDP lengths detection")

Signed-off-by: Amit Gupta <agupta3@marvell.com>
Acked-by: Jerin Jacob <jerinj@marvell.com>
drivers/net/octeontx2/otx2_lookup.c