1 From: Pablo Neira Ayuso <pablo@netfilter.org>
2 Date: Sun, 18 Apr 2021 23:11:45 +0200
3 Subject: [PATCH] net: ethernet: mtk_eth_soc: handle VLAN pop action
5 Do not hit EOPNOTSUPP when flowtable offload provides a VLAN pop action.
7 Fixes: efce49dfe6a8 ("netfilter: flowtable: add vlan pop action offload support")
8 Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
9 Signed-off-by: David S. Miller <davem@davemloft.net>
12 --- a/drivers/net/ethernet/mediatek/mtk_ppe_offload.c
13 +++ b/drivers/net/ethernet/mediatek/mtk_ppe_offload.c
14 @@ -233,6 +233,8 @@ mtk_flow_offload_replace(struct mtk_eth
15 data.vlan.proto = act->vlan.proto;
18 + case FLOW_ACTION_VLAN_POP:
20 case FLOW_ACTION_PPPOE_PUSH:
21 if (data.pppoe.num == 1)