From 934677a23e278f2991938061a9accea2627deccb Mon Sep 17 00:00:00 2001 From: "osdl.net!shemminger" Date: Fri, 30 Jul 2004 20:26:15 +0000 Subject: [PATCH] Adds mpu support to HTB (ATM) queueing discipline (Logical change 1.58) --- tc/tc_core.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tc/tc_core.c b/tc/tc_core.c index 55586741..07cf2fa9 100644 --- a/tc/tc_core.c +++ b/tc/tc_core.c @@ -50,6 +50,8 @@ int tc_calc_rtable(unsigned bps, __u32 *rtab, int cell_log, unsigned mtu, unsigned mpu) { int i; + unsigned overhead = (mpu >> 8) & 0xFF; + mpu = mpu & 0xFF; if (mtu == 0) mtu = 2047; @@ -61,6 +63,8 @@ int tc_calc_rtable(unsigned bps, __u32 *rtab, int cell_log, unsigned mtu, } for (i=0; i<256; i++) { unsigned sz = (i<