diff options
author | Patrick McHardy <kaber@trash.net> | 2005-07-24 22:44:23 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2005-07-24 22:44:23 -0400 |
commit | 7686ee1ad976efeddf10583f013462c66408ae51 (patch) | |
tree | 68e8cd513ab047d4e71fcd232fdca4e5b0a69366 /net/sched | |
parent | 48647feed9f7a2d839c6ada12147b341833646e8 (diff) |
[EMATCH]: Remove feature ifdefs in meta ematch.
Signed-off-by: Patrick McHardy <kaber@trash.net>
Acked-by: Thomas Graf <tgraf@suug.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/sched')
-rw-r--r-- | net/sched/em_meta.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/net/sched/em_meta.c b/net/sched/em_meta.c index a18b924743d9..00eae5f9a01a 100644 --- a/net/sched/em_meta.c +++ b/net/sched/em_meta.c | |||
@@ -209,12 +209,14 @@ META_COLLECTOR(int_maclen) | |||
209 | * Netfilter | 209 | * Netfilter |
210 | **************************************************************************/ | 210 | **************************************************************************/ |
211 | 211 | ||
212 | #ifdef CONFIG_NETFILTER | ||
213 | META_COLLECTOR(int_nfmark) | 212 | META_COLLECTOR(int_nfmark) |
214 | { | 213 | { |
214 | #ifdef CONFIG_NETFILTER | ||
215 | dst->value = skb->nfmark; | 215 | dst->value = skb->nfmark; |
216 | } | 216 | #else |
217 | dst->value = 0; | ||
217 | #endif | 218 | #endif |
219 | } | ||
218 | 220 | ||
219 | /************************************************************************** | 221 | /************************************************************************** |
220 | * Traffic Control | 222 | * Traffic Control |
@@ -229,15 +231,17 @@ META_COLLECTOR(int_tcindex) | |||
229 | * Routing | 231 | * Routing |
230 | **************************************************************************/ | 232 | **************************************************************************/ |
231 | 233 | ||
232 | #ifdef CONFIG_NET_CLS_ROUTE | ||
233 | META_COLLECTOR(int_rtclassid) | 234 | META_COLLECTOR(int_rtclassid) |
234 | { | 235 | { |
235 | if (unlikely(skb->dst == NULL)) | 236 | if (unlikely(skb->dst == NULL)) |
236 | *err = -1; | 237 | *err = -1; |
237 | else | 238 | else |
239 | #ifdef CONFIG_NET_CLS_ROUTE | ||
238 | dst->value = skb->dst->tclassid; | 240 | dst->value = skb->dst->tclassid; |
239 | } | 241 | #else |
242 | dst->value = 0; | ||
240 | #endif | 243 | #endif |
244 | } | ||
241 | 245 | ||
242 | META_COLLECTOR(int_rtiif) | 246 | META_COLLECTOR(int_rtiif) |
243 | { | 247 | { |
@@ -487,13 +491,9 @@ static struct meta_ops __meta_ops[TCF_META_TYPE_MAX+1][TCF_META_ID_MAX+1] = { | |||
487 | [META_ID(PKTLEN)] = META_FUNC(int_pktlen), | 491 | [META_ID(PKTLEN)] = META_FUNC(int_pktlen), |
488 | [META_ID(DATALEN)] = META_FUNC(int_datalen), | 492 | [META_ID(DATALEN)] = META_FUNC(int_datalen), |
489 | [META_ID(MACLEN)] = META_FUNC(int_maclen), | 493 | [META_ID(MACLEN)] = META_FUNC(int_maclen), |
490 | #ifdef CONFIG_NETFILTER | ||
491 | [META_ID(NFMARK)] = META_FUNC(int_nfmark), | 494 | [META_ID(NFMARK)] = META_FUNC(int_nfmark), |
492 | #endif | ||
493 | [META_ID(TCINDEX)] = META_FUNC(int_tcindex), | 495 | [META_ID(TCINDEX)] = META_FUNC(int_tcindex), |
494 | #ifdef CONFIG_NET_CLS_ROUTE | ||
495 | [META_ID(RTCLASSID)] = META_FUNC(int_rtclassid), | 496 | [META_ID(RTCLASSID)] = META_FUNC(int_rtclassid), |
496 | #endif | ||
497 | [META_ID(RTIIF)] = META_FUNC(int_rtiif), | 497 | [META_ID(RTIIF)] = META_FUNC(int_rtiif), |
498 | [META_ID(SK_FAMILY)] = META_FUNC(int_sk_family), | 498 | [META_ID(SK_FAMILY)] = META_FUNC(int_sk_family), |
499 | [META_ID(SK_STATE)] = META_FUNC(int_sk_state), | 499 | [META_ID(SK_STATE)] = META_FUNC(int_sk_state), |