diff options
Diffstat (limited to 'include/net/sch_generic.h')
-rw-r--r-- | include/net/sch_generic.h | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/include/net/sch_generic.h b/include/net/sch_generic.h index b931f021d7ab..4fc88f3ccd5f 100644 --- a/include/net/sch_generic.h +++ b/include/net/sch_generic.h | |||
@@ -181,8 +181,9 @@ struct tcf_proto_ops { | |||
181 | struct tcf_proto_ops *next; | 181 | struct tcf_proto_ops *next; |
182 | char kind[IFNAMSIZ]; | 182 | char kind[IFNAMSIZ]; |
183 | 183 | ||
184 | int (*classify)(struct sk_buff*, struct tcf_proto*, | 184 | int (*classify)(struct sk_buff *, |
185 | struct tcf_result *); | 185 | const struct tcf_proto *, |
186 | struct tcf_result *); | ||
186 | int (*init)(struct tcf_proto*); | 187 | int (*init)(struct tcf_proto*); |
187 | void (*destroy)(struct tcf_proto*); | 188 | void (*destroy)(struct tcf_proto*); |
188 | 189 | ||
@@ -205,8 +206,9 @@ struct tcf_proto { | |||
205 | /* Fast access part */ | 206 | /* Fast access part */ |
206 | struct tcf_proto *next; | 207 | struct tcf_proto *next; |
207 | void *root; | 208 | void *root; |
208 | int (*classify)(struct sk_buff*, struct tcf_proto*, | 209 | int (*classify)(struct sk_buff *, |
209 | struct tcf_result *); | 210 | const struct tcf_proto *, |
211 | struct tcf_result *); | ||
210 | __be16 protocol; | 212 | __be16 protocol; |
211 | 213 | ||
212 | /* All the rest */ | 214 | /* All the rest */ |
@@ -214,7 +216,7 @@ struct tcf_proto { | |||
214 | u32 classid; | 216 | u32 classid; |
215 | struct Qdisc *q; | 217 | struct Qdisc *q; |
216 | void *data; | 218 | void *data; |
217 | struct tcf_proto_ops *ops; | 219 | const struct tcf_proto_ops *ops; |
218 | }; | 220 | }; |
219 | 221 | ||
220 | struct qdisc_skb_cb { | 222 | struct qdisc_skb_cb { |