]> www.infradead.org Git - users/jedix/linux-maple.git/commit
net: mvpp2: parser fix PPPoE
authorSven Auhagen <sven.auhagen@voleatech.de>
Sat, 25 Mar 2023 16:41:05 +0000 (17:41 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 6 Apr 2023 10:10:47 +0000 (12:10 +0200)
commita921dbbc04e3e4edfaa6245e905207030c1a14bd
tree31b466a36da7b96ba39e31c53a5e8d40878cfa3b
parent2a4f74420538c53b443ee35e5ce95ffc0ecf4510
net: mvpp2: parser fix PPPoE

[ Upstream commit 031a416c2170866be5132ae42e14453d669b0cb1 ]

In PPPoE add all IPv4 header option length to the parser
and adjust the L3 and L4 offset accordingly.
Currently the L4 match does not work with PPPoE and
all packets are matched as L3 IP4 OPT.

Fixes: 3f518509dedc ("ethernet: Add new driver for Marvell Armada 375 network unit")
Signed-off-by: Sven Auhagen <sven.auhagen@voleatech.de>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/marvell/mvpp2/mvpp2_prs.c