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:

committed by
David S. Miller

parent
95ec3eb417
commit
dc7f9f6e88
@@ -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 {
|
||||
|
Reference in New Issue
Block a user