net: flow_offload: add FLOW_ACTION_PPPOE_PUSH
authorPablo Neira Ayuso <pablo@netfilter.org>
Wed, 24 Mar 2021 01:30:49 +0000 (02:30 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 24 Mar 2021 19:48:39 +0000 (12:48 -0700)
Add an action to represent the PPPoE hardware offload support that
includes the session ID.

Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/flow_offload.h

index fde025c..dc5c1e6 100644 (file)
@@ -147,6 +147,7 @@ enum flow_action_id {
        FLOW_ACTION_MPLS_POP,
        FLOW_ACTION_MPLS_MANGLE,
        FLOW_ACTION_GATE,
+       FLOW_ACTION_PPPOE_PUSH,
        NUM_FLOW_ACTIONS,
 };
 
@@ -274,6 +275,9 @@ struct flow_action_entry {
                        u32             num_entries;
                        struct action_gate_entry *entries;
                } gate;
+               struct {                                /* FLOW_ACTION_PPPOE_PUSH */
+                       u16             sid;
+               } pppoe;
        };
        struct flow_action_cookie *cookie; /* user defined action cookie */
 };