mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-23 23:32:14 +00:00
net: sched: constify tcf_proto and tc_action
Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
95ec3eb417
commit
dc7f9f6e88
23 changed files with 39 additions and 35 deletions
|
@ -181,8 +181,9 @@ struct tcf_proto_ops {
|
|||
struct tcf_proto_ops *next;
|
||||
char kind[IFNAMSIZ];
|
||||
|
||||
int (*classify)(struct sk_buff*, struct tcf_proto*,
|
||||
struct tcf_result *);
|
||||
int (*classify)(struct sk_buff *,
|
||||
const struct tcf_proto *,
|
||||
struct tcf_result *);
|
||||
int (*init)(struct tcf_proto*);
|
||||
void (*destroy)(struct tcf_proto*);
|
||||
|
||||
|
@ -205,8 +206,9 @@ struct tcf_proto {
|
|||
/* Fast access part */
|
||||
struct tcf_proto *next;
|
||||
void *root;
|
||||
int (*classify)(struct sk_buff*, struct tcf_proto*,
|
||||
struct tcf_result *);
|
||||
int (*classify)(struct sk_buff *,
|
||||
const struct tcf_proto *,
|
||||
struct tcf_result *);
|
||||
__be16 protocol;
|
||||
|
||||
/* All the rest */
|
||||
|
@ -214,7 +216,7 @@ struct tcf_proto {
|
|||
u32 classid;
|
||||
struct Qdisc *q;
|
||||
void *data;
|
||||
struct tcf_proto_ops *ops;
|
||||
const struct tcf_proto_ops *ops;
|
||||
};
|
||||
|
||||
struct qdisc_skb_cb {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue