Re: [RFC 4/5] net/octeontx: fix handling of xstats_get

2024-12-04 Thread Stephen Hemminger
On Tue, 8 Oct 2024 08:59:58 -0700 Stephen Hemminger 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, retur

[RFC 4/5] net/octeontx: fix handling of xstats_get

2024-10-08 Thread Stephen Hemminger
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: 5538990924f2 ("net/octeontx: add basic sta