[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20151216160400.GJ6555@orbit.nwl.cc>
Date: Wed, 16 Dec 2015 17:04:00 +0100
From: Phil Sutter <phil@....cc>
To: Jesper Dangaard Brouer <brouer@...hat.com>
Cc: Dmitrii Shcherbakov <fw.dmitrii@...dex.com>,
netdev@...r.kernel.org,
Stephen Hemminger <stephen@...workplumber.org>
Subject: Re: [PATCH][iproute2] tc/q_htb.c: Fix the MPU value output in 'tc -d
class show dev <device_name> ' command
On Wed, Dec 16, 2015 at 04:15:58PM +0100, Jesper Dangaard Brouer wrote:
> When trying to understand this code, keep in mind that we are trying
> to keep backward compatible with older kernels. Thus, this printing
> might be have been left here to keep compat with older kernels, but I
> think we can remove it now.
For a given kernel which still uses the upper eight bits of 'mpu' as
overhead value, iproute2 has become incompatible since commit
bccd014b866da ("Overhead calculation is now done in the kernel.") as
that eliminated the encoding while setting. So in order to stay
compatible, it should have left it in place while assigning to
opt.*.overhead in addition to that. Or the other way round, do the same
change to the output path as well.
So from a compatibility point of view, things are incompatible anyway.
Nobody complained, so I'd assume there are no users requiring this
(anymore). In fact, I couldn't even find the related change from using
'mpu>>8' to 'overhead' on kernel side.
Dmitrii, did iproute2 without your change even print the overhead as set
by you before? Looking at the code, I'd assume not.
Cheers, Phil
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists