Re: [PATCH net-next 2/2] net: stmmac: ethtool: Address off-by-one when reading the coal rx-usecs

Maxime Chevallier <[email protected]>
Newsgroups org.kernel.vger.netdev,org.infradead.lists.linux-arm-kernel,org.kernel.vger.linux-kernel
Message-ID <[email protected]>
Hi Andrew,

On 8/2/26 17:05, Andrew Lunn wrote:
>> This does change the boundaries of accepted rx-usecs parameters, as the
>> previously accepted values were in the 16-246 us range, and now fall
>> into the 15-245 range on imx8mp.
> 
> With this change in place, what happens when trying to set 246?
> EINVAL?

Yes indeed :

# ethtool -C eth1 rx-usecs 246
netlink error: Invalid argument

Maxime
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.