]> 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)
commited386fb4bec4aca8e15ade1faebb0b4392eaa508
treebae4a01a2ceabd1816373907df707a9b5fbdc1a4
parentdd2f6a8fd07d67d778cbdf4fbd38f0d6a2a293c8
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