]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitc20e6d06929f506e5a41c900fd7b3da7508db3d3
treebae4a01a2ceabd1816373907df707a9b5fbdc1a4
parenta18213d0aacbcf63684e62d9707d152ea8b061ef
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