net: mvpp2: prs: improve ipv4 parse flow
authorStefan Chulski <stefanc@marvell.com>
Sun, 10 Jan 2021 14:30:59 +0000 (16:30 +0200)
committerJakub Kicinski <kuba@kernel.org>
Tue, 12 Jan 2021 01:46:21 +0000 (17:46 -0800)
commitc73a45965dd54a10c368191804b9de661eee1007
treebae4a01a2ceabd1816373907df707a9b5fbdc1a4
parentad0bfc233ae2e7ee3bcb9a6089e4aa54e2b44fa1
net: mvpp2: prs: improve ipv4 parse flow

Patch didn't fix any issue, just improve parse flow
and align ipv4 parse flow with ipv6 parse flow.

Currently ipv4 kenguru parser first check IP protocol(TCP/UDP)
and then destination IP address.
Patch introduce reverse ipv4 parse, first destination IP address parsed
and only then IP protocol.
This would allow extend capability for packet L4 parsing and align ipv4
parsing flow with ipv6.

Suggested-by: Liron Himi <liron@marvell.com>
Signed-off-by: Stefan Chulski <stefanc@marvell.com>
Link: https://lore.kernel.org/r/1610289059-14962-1-git-send-email-stefanc@marvell.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/marvell/mvpp2/mvpp2_prs.c