File tree Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -333,8 +333,10 @@ static inline unsigned int qdisc_pkt_len(struct sk_buff *skb)
333
333
334
334
static inline int qdisc_enqueue (struct sk_buff * skb , struct Qdisc * sch )
335
335
{
336
+ #ifdef CONFIG_NET_SCHED
336
337
if (sch -> stab )
337
338
qdisc_calculate_pkt_len (skb , sch -> stab );
339
+ #endif
338
340
return sch -> enqueue (skb , sch );
339
341
}
340
342
Original file line number Diff line number Diff line change @@ -469,7 +469,9 @@ static void __qdisc_destroy(struct rcu_head *head)
469
469
struct Qdisc * qdisc = container_of (head , struct Qdisc , q_rcu );
470
470
const struct Qdisc_ops * ops = qdisc -> ops ;
471
471
472
+ #ifdef CONFIG_NET_SCHED
472
473
qdisc_put_stab (qdisc -> stab );
474
+ #endif
473
475
gen_kill_estimator (& qdisc -> bstats , & qdisc -> rate_est );
474
476
if (ops -> reset )
475
477
ops -> reset (qdisc );
You can’t perform that action at this time.
0 commit comments