diff options
Diffstat (limited to 'include/net/sch_generic.h')
-rw-r--r-- | include/net/sch_generic.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/net/sch_generic.h b/include/net/sch_generic.h index db9ad655eb8a..b5f40d7ef724 100644 --- a/include/net/sch_generic.h +++ b/include/net/sch_generic.h | |||
@@ -333,8 +333,10 @@ static inline unsigned int qdisc_pkt_len(struct sk_buff *skb) | |||
333 | 333 | ||
334 | static inline int qdisc_enqueue(struct sk_buff *skb, struct Qdisc *sch) | 334 | static inline int qdisc_enqueue(struct sk_buff *skb, struct Qdisc *sch) |
335 | { | 335 | { |
336 | #ifdef CONFIG_NET_SCHED | ||
336 | if (sch->stab) | 337 | if (sch->stab) |
337 | qdisc_calculate_pkt_len(skb, sch->stab); | 338 | qdisc_calculate_pkt_len(skb, sch->stab); |
339 | #endif | ||
338 | return sch->enqueue(skb, sch); | 340 | return sch->enqueue(skb, sch); |
339 | } | 341 | } |
340 | 342 | ||