]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit2832358347645cdd07162dedb7b10b67f037609c
tree38ded70f5e01b4edac040634bb3ecdb50e624361
parent954977392c964dd5eab2dfe65de3be6a35dbe2af
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: cab60cd7b7e7 ("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