net/cnxk: update L3/L4 checksum offload in mbuf
authorAkhil Goyal <gakhil@marvell.com>
Sun, 8 May 2022 07:48:31 +0000 (13:18 +0530)
committerJerin Jacob <jerinj@marvell.com>
Tue, 10 May 2022 14:27:08 +0000 (16:27 +0200)
commit243e23bccc2ce02a6aaac77870d5db4ed0e3ec81
tree68ddfa1ffeb6d0833d42bbd3a797f16d2a9989c5
parentc48b1488acc9da50d2a194bff6325280013e4a15
net/cnxk: update L3/L4 checksum offload in mbuf

When the packet is processed with inline IPsec offload,
the ol_flags were updated only with RTE_MBUF_F_RX_SEC_OFFLOAD.

But the hardware can also update the L3/L4 csum offload flags.
Hence, ol_flags are updated with RTE_MBUF_F_RX_IP_CKSUM_GOOD,
RTE_MBUF_F_RX_L4_CKSUM_GOOD, etc based on the microcode completion
codes.

Signed-off-by: Akhil Goyal <gakhil@marvell.com>
Signed-off-by: Nithin Dabilpuram <ndabilpuram@marvell.com>
Acked-by: Jerin Jacob <jerinj@marvell.com>
drivers/net/cnxk/cn10k_rx.h