net: mvpp2: parser fix PPPoE
authorSven Auhagen <sven.auhagen@voleatech.de>
Sat, 25 Mar 2023 16:41:05 +0000 (17:41 +0100)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 28 Mar 2023 09:34:01 +0000 (11:34 +0200)
commit031a416c2170866be5132ae42e14453d669b0cb1
tree20166f8a478ee9fbbc21335b2838d0aaebaa894a
parenta587a84813b90372cb0a7565e201a4075da67919
net: mvpp2: parser fix PPPoE

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>
drivers/net/ethernet/marvell/mvpp2/mvpp2_prs.c