act_api.h (82ffd0454bd9bd57780966d47bfd56d579dd4fb3) act_api.h (eddd2cf195d6fb5e4bbc91a0fe4be55110f559ab)
1/* SPDX-License-Identifier: GPL-2.0 */
2#ifndef __NET_ACT_API_H
3#define __NET_ACT_API_H
4
5/*
6 * Public action API for classifiers/qdiscs
7*/
8

--- 66 unchanged lines hidden (view full) ---

75#ifdef CONFIG_NET_CLS_ACT
76
77#define ACT_P_CREATED 1
78#define ACT_P_DELETED 1
79
80struct tc_action_ops {
81 struct list_head head;
82 char kind[IFNAMSIZ];
1/* SPDX-License-Identifier: GPL-2.0 */
2#ifndef __NET_ACT_API_H
3#define __NET_ACT_API_H
4
5/*
6 * Public action API for classifiers/qdiscs
7*/
8

--- 66 unchanged lines hidden (view full) ---

75#ifdef CONFIG_NET_CLS_ACT
76
77#define ACT_P_CREATED 1
78#define ACT_P_DELETED 1
79
80struct tc_action_ops {
81 struct list_head head;
82 char kind[IFNAMSIZ];
83 __u32 type; /* TBD to match kind */
83 enum tca_id id; /* identifier should match kind */
84 size_t size;
85 struct module *owner;
86 int (*act)(struct sk_buff *, const struct tc_action *,
87 struct tcf_result *); /* called under RCU BH lock*/
88 int (*dump)(struct sk_buff *, struct tc_action *, int, int);
89 void (*cleanup)(struct tc_action *);
90 int (*lookup)(struct net *net, struct tc_action **a, u32 index);
91 int (*init)(struct net *net, struct nlattr *nla,

--- 107 unchanged lines hidden ---
84 size_t size;
85 struct module *owner;
86 int (*act)(struct sk_buff *, const struct tc_action *,
87 struct tcf_result *); /* called under RCU BH lock*/
88 int (*dump)(struct sk_buff *, struct tc_action *, int, int);
89 void (*cleanup)(struct tc_action *);
90 int (*lookup)(struct net *net, struct tc_action **a, u32 index);
91 int (*init)(struct net *net, struct nlattr *nla,

--- 107 unchanged lines hidden ---