ath25: switch default kernel to 5.15
[openwrt/staging/wigyori.git] / target / linux / generic / backport-5.10 / 610-v5.13-28-net-flow_offload-add-FLOW_ACTION_PPPOE_PUSH.patch
1 From: Pablo Neira Ayuso <pablo@netfilter.org>
2 Date: Wed, 24 Mar 2021 02:30:49 +0100
3 Subject: [PATCH] net: flow_offload: add FLOW_ACTION_PPPOE_PUSH
4
5 Add an action to represent the PPPoE hardware offload support that
6 includes the session ID.
7
8 Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
9 ---
10
11 --- a/include/net/flow_offload.h
12 +++ b/include/net/flow_offload.h
13 @@ -147,6 +147,7 @@ enum flow_action_id {
14 FLOW_ACTION_MPLS_POP,
15 FLOW_ACTION_MPLS_MANGLE,
16 FLOW_ACTION_GATE,
17 + FLOW_ACTION_PPPOE_PUSH,
18 NUM_FLOW_ACTIONS,
19 };
20
21 @@ -271,6 +272,9 @@ struct flow_action_entry {
22 u32 num_entries;
23 struct action_gate_entry *entries;
24 } gate;
25 + struct { /* FLOW_ACTION_PPPOE_PUSH */
26 + u16 sid;
27 + } pppoe;
28 };
29 struct flow_action_cookie *cookie; /* user defined action cookie */
30 };