octeontx2-af: Set proper errorcode for IPv4 checksum errors
authorSunil Goutham <sgoutham@marvell.com>
Mon, 30 Aug 2021 18:00:46 +0000 (23:30 +0530)
committerDavid S. Miller <davem@davemloft.net>
Tue, 31 Aug 2021 10:35:26 +0000 (11:35 +0100)
commit1e4428b6dba9b683dc2ec0a56ed7879de3200cce
tree38ded70f5e01b4edac040634bb3ecdb50e624361
parent698a82ebfb4b2f2014baf31b7324b328a2a6366e
octeontx2-af: Set proper errorcode for IPv4 checksum errors

With current config, for packets with IPv4 checksum errors,
errorcode is being set to UNKNOWN. Hence added a separate
errorcodes for outer and inner IPv4 checksum and changed
NPC configuration accordingly.

Also turn on L2 multicast address check in NPC protocol check block.

Fixes: 6b3321bacc5a ("octeontx2-af: Enable packet length and csum validation")
Signed-off-by: Sunil Goutham <sgoutham@marvell.com>
Signed-off-by: Subbaraya Sundeep <sbhatta@marvell.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c