[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20161101.121811.1188428674232100128.davem@davemloft.net>
Date: Tue, 01 Nov 2016 12:18:11 -0400 (EDT)
From: David Miller <davem@...emloft.net>
To: rmk+kernel@...linux.org.uk
Cc: sebastian.hesselbarth@...il.com, netdev@...r.kernel.org
Subject: Re: [PATCH] net: mv643xx_eth: ensure coalesce settings survive
read-modify-write
From: Russell King <rmk+kernel@...linux.org.uk>
Date: Tue, 01 Nov 2016 10:50:01 +0000
> The coalesce settings behave badly when changing just one value:
>
> ... # ethtool -c eth0
> rx-usecs: 249
> ... # ethtool -C eth0 tx-usecs 250
> ... # ethtool -c eth0
> rx-usecs: 248
>
> This occurs due to rounding errors when calculating the microseconds
> value - the divisons round down. This causes (eg) the rx-usecs to
> decrease by one every time the tx-usecs value is set as per the above.
>
> Fix this by making the divison round-to-nearest.
>
> Signed-off-by: Russell King <rmk+kernel@...linux.org.uk>
Applied, thanks.
Powered by blists - more mailing lists