[RFC 2/5] net/ngbe: fix query handling in xstats_get

Jiawen Wu jiawenwu at trustnetic.com
Wed Dec 25 09:52:14 CET 2024


Cc: Zaiyu Wang <zaiyuwang at net-swift.com>

> -----Original Message-----
> From: Stephen Hemminger <stephen at networkplumber.org>
> Sent: Thursday, December 5, 2024 6:19 AM
> To: dev at dpdk.org
> Cc: jiawenwu at trustnetic.com
> Subject: Re: [RFC 2/5] net/ngbe: fix query handling in xstats_get
> 
> On Tue,  8 Oct 2024 08:59:56 -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.
> >
> > Bugzilla ID: 1560
> > Fixes: 8b433d04adc9 ("net/ngbe: support device xstats")
> > Cc: jiawenwu at trustnetic.com
> >
> > Signed-off-by: Stephen Hemminger <stephen at networkplumber.org>
> 
> This needs to be tested on this hardware before merging.
> 



More information about the dev mailing list