[RFC 5/5] net/sfc: fix handling of xstats_get queries

Stephen Hemminger stephen at networkplumber.org
Wed Dec 4 23:18:19 CET 2024


On Tue,  8 Oct 2024 08:59:59 -0700
Stephen Hemminger <stephen at networkplumber.org> wrote:

> The xstats_get function in this driver did not act the same
> as other drivers when queried. The correct check is to look
> at the requested number of stats and compare it to the available
> stats and if the request is too small, return the correct size.
> 
> Fixes: fdd7719eb3c1 ("net/sfc: add xstats for Rx/Tx doorbells")
> Cc: ivan.ilchenko at oktetlabs.ru
> Signed-off-by: Stephen Hemminger <stephen at networkplumber.org>

Could someone with Solarflare hardware test this please?


More information about the dev mailing list