diff options
Diffstat (limited to 'include/net/pkt_cls.h')
| -rw-r--r-- | include/net/pkt_cls.h | 28 |
1 files changed, 10 insertions, 18 deletions
diff --git a/include/net/pkt_cls.h b/include/net/pkt_cls.h index d1ca31444644..dd3031aed9d5 100644 --- a/include/net/pkt_cls.h +++ b/include/net/pkt_cls.h | |||
| @@ -7,8 +7,7 @@ | |||
| 7 | 7 | ||
| 8 | /* Basic packet classifier frontend definitions. */ | 8 | /* Basic packet classifier frontend definitions. */ |
| 9 | 9 | ||
| 10 | struct tcf_walker | 10 | struct tcf_walker { |
| 11 | { | ||
| 12 | int stop; | 11 | int stop; |
| 13 | int skip; | 12 | int skip; |
| 14 | int count; | 13 | int count; |
| @@ -61,8 +60,7 @@ tcf_unbind_filter(struct tcf_proto *tp, struct tcf_result *r) | |||
| 61 | tp->q->ops->cl_ops->unbind_tcf(tp->q, cl); | 60 | tp->q->ops->cl_ops->unbind_tcf(tp->q, cl); |
| 62 | } | 61 | } |
| 63 | 62 | ||
| 64 | struct tcf_exts | 63 | struct tcf_exts { |
| 65 | { | ||
| 66 | #ifdef CONFIG_NET_CLS_ACT | 64 | #ifdef CONFIG_NET_CLS_ACT |
| 67 | struct tc_action *action; | 65 | struct tc_action *action; |
| 68 | #endif | 66 | #endif |
| @@ -71,8 +69,7 @@ struct tcf_exts | |||
| 71 | /* Map to export classifier specific extension TLV types to the | 69 | /* Map to export classifier specific extension TLV types to the |
| 72 | * generic extensions API. Unsupported extensions must be set to 0. | 70 | * generic extensions API. Unsupported extensions must be set to 0. |
| 73 | */ | 71 | */ |
| 74 | struct tcf_ext_map | 72 | struct tcf_ext_map { |
| 75 | { | ||
| 76 | int action; | 73 | int action; |
| 77 | int police; | 74 | int police; |
| 78 | }; | 75 | }; |
| @@ -143,8 +140,7 @@ extern int tcf_exts_dump_stats(struct sk_buff *skb, struct tcf_exts *exts, | |||
| 143 | /** | 140 | /** |
| 144 | * struct tcf_pkt_info - packet information | 141 | * struct tcf_pkt_info - packet information |
| 145 | */ | 142 | */ |
| 146 | struct tcf_pkt_info | 143 | struct tcf_pkt_info { |
| 147 | { | ||
| 148 | unsigned char * ptr; | 144 | unsigned char * ptr; |
| 149 | int nexthdr; | 145 | int nexthdr; |
| 150 | }; | 146 | }; |
| @@ -162,8 +158,7 @@ struct tcf_ematch_ops; | |||
| 162 | * @datalen: length of the ematch specific configuration data | 158 | * @datalen: length of the ematch specific configuration data |
| 163 | * @data: ematch specific data | 159 | * @data: ematch specific data |
| 164 | */ | 160 | */ |
| 165 | struct tcf_ematch | 161 | struct tcf_ematch { |
| 166 | { | ||
| 167 | struct tcf_ematch_ops * ops; | 162 | struct tcf_ematch_ops * ops; |
| 168 | unsigned long data; | 163 | unsigned long data; |
| 169 | unsigned int datalen; | 164 | unsigned int datalen; |
| @@ -211,8 +206,7 @@ static inline int tcf_em_early_end(struct tcf_ematch *em, int result) | |||
| 211 | * @hdr: ematch tree header supplied by userspace | 206 | * @hdr: ematch tree header supplied by userspace |
| 212 | * @matches: array of ematches | 207 | * @matches: array of ematches |
| 213 | */ | 208 | */ |
| 214 | struct tcf_ematch_tree | 209 | struct tcf_ematch_tree { |
| 215 | { | ||
| 216 | struct tcf_ematch_tree_hdr hdr; | 210 | struct tcf_ematch_tree_hdr hdr; |
| 217 | struct tcf_ematch * matches; | 211 | struct tcf_ematch * matches; |
| 218 | 212 | ||
| @@ -230,8 +224,7 @@ struct tcf_ematch_tree | |||
| 230 | * @owner: owner, must be set to THIS_MODULE | 224 | * @owner: owner, must be set to THIS_MODULE |
| 231 | * @link: link to previous/next ematch module (internal use) | 225 | * @link: link to previous/next ematch module (internal use) |
| 232 | */ | 226 | */ |
| 233 | struct tcf_ematch_ops | 227 | struct tcf_ematch_ops { |
| 234 | { | ||
| 235 | int kind; | 228 | int kind; |
| 236 | int datalen; | 229 | int datalen; |
| 237 | int (*change)(struct tcf_proto *, void *, | 230 | int (*change)(struct tcf_proto *, void *, |
| @@ -302,8 +295,7 @@ static inline int tcf_em_tree_match(struct sk_buff *skb, | |||
| 302 | 295 | ||
| 303 | #else /* CONFIG_NET_EMATCH */ | 296 | #else /* CONFIG_NET_EMATCH */ |
| 304 | 297 | ||
| 305 | struct tcf_ematch_tree | 298 | struct tcf_ematch_tree { |
| 306 | { | ||
| 307 | }; | 299 | }; |
| 308 | 300 | ||
| 309 | #define tcf_em_tree_validate(tp, tb, t) ((void)(t), 0) | 301 | #define tcf_em_tree_validate(tp, tb, t) ((void)(t), 0) |
| @@ -351,9 +343,9 @@ tcf_match_indev(struct sk_buff *skb, char *indev) | |||
| 351 | struct net_device *dev; | 343 | struct net_device *dev; |
| 352 | 344 | ||
| 353 | if (indev[0]) { | 345 | if (indev[0]) { |
| 354 | if (!skb->iif) | 346 | if (!skb->skb_iif) |
| 355 | return 0; | 347 | return 0; |
| 356 | dev = __dev_get_by_index(dev_net(skb->dev), skb->iif); | 348 | dev = __dev_get_by_index(dev_net(skb->dev), skb->skb_iif); |
| 357 | if (!dev || strcmp(indev, dev->name)) | 349 | if (!dev || strcmp(indev, dev->name)) |
| 358 | return 0; | 350 | return 0; |
| 359 | } | 351 | } |
