[dpdk-dev] [PATCH v4 02/10] ethdev: update xstats_get() strings and Q handling

2015-11-02 Thread Thomas Monjalon
2015-11-02 10:17, Van Haaren, Harry: > > From: Thomas Monjalon [mailto:thomas.monjalon at 6wind.com] > > Sent: Monday, November 2, 2015 7:59 AM > > > + /* if xstats_get() is implemented by the PMD, the Q stats are > > > done */ > > > + if (dev->dev_ops->xstats_get != NULL) > > > +

[dpdk-dev] [PATCH v4 02/10] ethdev: update xstats_get() strings and Q handling

2015-11-02 Thread Van Haaren, Harry
Hi, > From: Thomas Monjalon [mailto:thomas.monjalon at 6wind.com] > Sent: Monday, November 2, 2015 7:59 AM > > + /* if xstats_get() is implemented by the PMD, the Q stats are done > > */ > > + if (dev->dev_ops->xstats_get != NULL) > > + return count + xcount; > > + > >

[dpdk-dev] [PATCH v4 02/10] ethdev: update xstats_get() strings and Q handling

2015-11-02 Thread Thomas Monjalon
2015-10-30 11:36, Harry van Haaren: > + /* if xstats_get() is implemented by the PMD, the Q stats are done */ > + if (dev->dev_ops->xstats_get != NULL) > + return count + xcount; > + > /* per-rxq stats */ > for (q = 0; q < dev->data->nb_rx_queues; q++) { >

[dpdk-dev] [PATCH v4 02/10] ethdev: update xstats_get() strings and Q handling

2015-10-30 Thread Harry van Haaren
Update the strings used for presenting stats to adhere to the scheme previously presented. Updated xstats_get() function to handle Q information only if xstats() is not implemented in the PMD, providing the PMD with the needed flexibility to expose its extended Q stats. Signed-off-by: Harry van Ha