806fd0dcdf56d1488c60fd62acd048832595e44a
[openwrt/staging/blogic.git] /
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
4
5 Do not hit EOPNOTSUPP when flowtable offload provides a VLAN pop action.
6
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>
10 ---
11
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;
16 data.vlan.num++;
17 break;
18 + case FLOW_ACTION_VLAN_POP:
19 + break;
20 case FLOW_ACTION_PPPOE_PUSH:
21 if (data.pppoe.num == 1)
22 return -EOPNOTSUPP;