diff options
author | David S. Miller <davem@davemloft.net> | 2005-07-22 17:43:52 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2005-07-22 17:43:52 -0400 |
commit | 261688d01ec07d3a265b8ace6ec68310fbd96a96 (patch) | |
tree | c068cd8f4a1cf545ea4bfb68d3becc051b964d56 | |
parent | d3984a6b6abac6203868f0e9095c0ed9e33ece03 (diff) |
[PKT_SCHED]: em_meta: Kill TCF_META_ID_{INDEV,SECURITY,TCVERDICT}
More unusable TCF_META_* match types that need to get eliminated
before 2.6.13 goes out the door.
Signed-off-by: David S. Miller <davem@davemloft.net>
Acked-by: Thomas Graf <tgraf@suug.ch>
-rw-r--r-- | include/linux/tc_ematch/tc_em_meta.h | 3 | ||||
-rw-r--r-- | net/sched/em_meta.c | 28 |
2 files changed, 3 insertions, 28 deletions
diff --git a/include/linux/tc_ematch/tc_em_meta.h b/include/linux/tc_ematch/tc_em_meta.h index 150efe07ff6b..081b1ee8516e 100644 --- a/include/linux/tc_ematch/tc_em_meta.h +++ b/include/linux/tc_ematch/tc_em_meta.h | |||
@@ -41,17 +41,14 @@ enum | |||
41 | TCF_META_ID_LOADAVG_1, | 41 | TCF_META_ID_LOADAVG_1, |
42 | TCF_META_ID_LOADAVG_2, | 42 | TCF_META_ID_LOADAVG_2, |
43 | TCF_META_ID_DEV, | 43 | TCF_META_ID_DEV, |
44 | TCF_META_ID_INDEV, | ||
45 | TCF_META_ID_PRIORITY, | 44 | TCF_META_ID_PRIORITY, |
46 | TCF_META_ID_PROTOCOL, | 45 | TCF_META_ID_PROTOCOL, |
47 | TCF_META_ID_SECURITY, /* obsolete */ | ||
48 | TCF_META_ID_PKTTYPE, | 46 | TCF_META_ID_PKTTYPE, |
49 | TCF_META_ID_PKTLEN, | 47 | TCF_META_ID_PKTLEN, |
50 | TCF_META_ID_DATALEN, | 48 | TCF_META_ID_DATALEN, |
51 | TCF_META_ID_MACLEN, | 49 | TCF_META_ID_MACLEN, |
52 | TCF_META_ID_NFMARK, | 50 | TCF_META_ID_NFMARK, |
53 | TCF_META_ID_TCINDEX, | 51 | TCF_META_ID_TCINDEX, |
54 | TCF_META_ID_TCVERDICT, | ||
55 | TCF_META_ID_RTCLASSID, | 52 | TCF_META_ID_RTCLASSID, |
56 | TCF_META_ID_RTIIF, | 53 | TCF_META_ID_RTIIF, |
57 | TCF_META_ID_SK_FAMILY, | 54 | TCF_META_ID_SK_FAMILY, |
diff --git a/net/sched/em_meta.c b/net/sched/em_meta.c index 179efb5bc9b3..a18b924743d9 100644 --- a/net/sched/em_meta.c +++ b/net/sched/em_meta.c | |||
@@ -27,17 +27,17 @@ | |||
27 | * lvalue rvalue | 27 | * lvalue rvalue |
28 | * +-----------+ +-----------+ | 28 | * +-----------+ +-----------+ |
29 | * | type: INT | | type: INT | | 29 | * | type: INT | | type: INT | |
30 | * def | id: INDEV | | id: VALUE | | 30 | * def | id: DEV | | id: VALUE | |
31 | * | data: | | data: 3 | | 31 | * | data: | | data: 3 | |
32 | * +-----------+ +-----------+ | 32 | * +-----------+ +-----------+ |
33 | * | | | 33 | * | | |
34 | * ---> meta_ops[INT][INDEV](...) | | 34 | * ---> meta_ops[INT][DEV](...) | |
35 | * | | | 35 | * | | |
36 | * ----------- | | 36 | * ----------- | |
37 | * V V | 37 | * V V |
38 | * +-----------+ +-----------+ | 38 | * +-----------+ +-----------+ |
39 | * | type: INT | | type: INT | | 39 | * | type: INT | | type: INT | |
40 | * obj | id: INDEV | | id: VALUE | | 40 | * obj | id: DEV | | id: VALUE | |
41 | * | data: 2 |<--data got filled out | data: 3 | | 41 | * | data: 2 |<--data got filled out | data: 3 | |
42 | * +-----------+ +-----------+ | 42 | * +-----------+ +-----------+ |
43 | * | | | 43 | * | | |
@@ -170,16 +170,6 @@ META_COLLECTOR(var_dev) | |||
170 | *err = var_dev(skb->dev, dst); | 170 | *err = var_dev(skb->dev, dst); |
171 | } | 171 | } |
172 | 172 | ||
173 | META_COLLECTOR(int_indev) | ||
174 | { | ||
175 | *err = int_dev(skb->input_dev, dst); | ||
176 | } | ||
177 | |||
178 | META_COLLECTOR(var_indev) | ||
179 | { | ||
180 | *err = var_dev(skb->input_dev, dst); | ||
181 | } | ||
182 | |||
183 | /************************************************************************** | 173 | /************************************************************************** |
184 | * skb attributes | 174 | * skb attributes |
185 | **************************************************************************/ | 175 | **************************************************************************/ |
@@ -235,13 +225,6 @@ META_COLLECTOR(int_tcindex) | |||
235 | dst->value = skb->tc_index; | 225 | dst->value = skb->tc_index; |
236 | } | 226 | } |
237 | 227 | ||
238 | #ifdef CONFIG_NET_CLS_ACT | ||
239 | META_COLLECTOR(int_tcverd) | ||
240 | { | ||
241 | dst->value = skb->tc_verd; | ||
242 | } | ||
243 | #endif | ||
244 | |||
245 | /************************************************************************** | 228 | /************************************************************************** |
246 | * Routing | 229 | * Routing |
247 | **************************************************************************/ | 230 | **************************************************************************/ |
@@ -490,7 +473,6 @@ struct meta_ops | |||
490 | static struct meta_ops __meta_ops[TCF_META_TYPE_MAX+1][TCF_META_ID_MAX+1] = { | 473 | static struct meta_ops __meta_ops[TCF_META_TYPE_MAX+1][TCF_META_ID_MAX+1] = { |
491 | [TCF_META_TYPE_VAR] = { | 474 | [TCF_META_TYPE_VAR] = { |
492 | [META_ID(DEV)] = META_FUNC(var_dev), | 475 | [META_ID(DEV)] = META_FUNC(var_dev), |
493 | [META_ID(INDEV)] = META_FUNC(var_indev), | ||
494 | [META_ID(SK_BOUND_IF)] = META_FUNC(var_sk_bound_if), | 476 | [META_ID(SK_BOUND_IF)] = META_FUNC(var_sk_bound_if), |
495 | }, | 477 | }, |
496 | [TCF_META_TYPE_INT] = { | 478 | [TCF_META_TYPE_INT] = { |
@@ -499,7 +481,6 @@ static struct meta_ops __meta_ops[TCF_META_TYPE_MAX+1][TCF_META_ID_MAX+1] = { | |||
499 | [META_ID(LOADAVG_1)] = META_FUNC(int_loadavg_1), | 481 | [META_ID(LOADAVG_1)] = META_FUNC(int_loadavg_1), |
500 | [META_ID(LOADAVG_2)] = META_FUNC(int_loadavg_2), | 482 | [META_ID(LOADAVG_2)] = META_FUNC(int_loadavg_2), |
501 | [META_ID(DEV)] = META_FUNC(int_dev), | 483 | [META_ID(DEV)] = META_FUNC(int_dev), |
502 | [META_ID(INDEV)] = META_FUNC(int_indev), | ||
503 | [META_ID(PRIORITY)] = META_FUNC(int_priority), | 484 | [META_ID(PRIORITY)] = META_FUNC(int_priority), |
504 | [META_ID(PROTOCOL)] = META_FUNC(int_protocol), | 485 | [META_ID(PROTOCOL)] = META_FUNC(int_protocol), |
505 | [META_ID(PKTTYPE)] = META_FUNC(int_pkttype), | 486 | [META_ID(PKTTYPE)] = META_FUNC(int_pkttype), |
@@ -510,9 +491,6 @@ static struct meta_ops __meta_ops[TCF_META_TYPE_MAX+1][TCF_META_ID_MAX+1] = { | |||
510 | [META_ID(NFMARK)] = META_FUNC(int_nfmark), | 491 | [META_ID(NFMARK)] = META_FUNC(int_nfmark), |
511 | #endif | 492 | #endif |
512 | [META_ID(TCINDEX)] = META_FUNC(int_tcindex), | 493 | [META_ID(TCINDEX)] = META_FUNC(int_tcindex), |
513 | #ifdef CONFIG_NET_CLS_ACT | ||
514 | [META_ID(TCVERDICT)] = META_FUNC(int_tcverd), | ||
515 | #endif | ||
516 | #ifdef CONFIG_NET_CLS_ROUTE | 494 | #ifdef CONFIG_NET_CLS_ROUTE |
517 | [META_ID(RTCLASSID)] = META_FUNC(int_rtclassid), | 495 | [META_ID(RTCLASSID)] = META_FUNC(int_rtclassid), |
518 | #endif | 496 | #endif |