]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - net/sched/sch_tbf.c
[NET_SCHED]: Cleanup L2T macros and handle oversized packets
[linux-2.6-omap-h63xx.git] / net / sched / sch_tbf.c
index 8c2639af4c6a42a45c7c6ee5fecda621c6c14f82..b0d81098b0eee58acff75961491975ad45d2bb65 100644 (file)
@@ -115,8 +115,8 @@ struct tbf_sched_data
        struct qdisc_watchdog watchdog; /* Watchdog timer */
 };
 
-#define L2T(q,L)   ((q)->R_tab->data[(L)>>(q)->R_tab->rate.cell_log])
-#define L2T_P(q,L) ((q)->P_tab->data[(L)>>(q)->P_tab->rate.cell_log])
+#define L2T(q,L)   qdisc_l2t((q)->R_tab,L)
+#define L2T_P(q,L) qdisc_l2t((q)->P_tab,L)
 
 static int tbf_enqueue(struct sk_buff *skb, struct Qdisc* sch)
 {