* [dpdk-dev] [PATCH 0/2] net/bnxt: statistic related fixes
@ 2020-01-22 17:55 Stephen Hemminger
2020-01-22 17:55 ` [dpdk-dev] [PATCH 1/2] net/bnxt: do not print error if stats queried before start Stephen Hemminger
` (2 more replies)
0 siblings, 3 replies; 5+ messages in thread
From: Stephen Hemminger @ 2020-01-22 17:55 UTC (permalink / raw)
To: dev; +Cc: Stephen Hemminger
A couple of minor things in bnxt statistics
Stephen Hemminger (2):
net/bnxt: do not print error if stats queried before start
net/bnxt: remove unnecessary memset
drivers/net/bnxt/bnxt_stats.c | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
--
2.20.1
^ permalink raw reply [flat|nested] 5+ messages in thread
* [dpdk-dev] [PATCH 1/2] net/bnxt: do not print error if stats queried before start
2020-01-22 17:55 [dpdk-dev] [PATCH 0/2] net/bnxt: statistic related fixes Stephen Hemminger
@ 2020-01-22 17:55 ` Stephen Hemminger
2020-01-22 17:55 ` [dpdk-dev] [PATCH 2/2] net/bnxt: remove unnecessary memset Stephen Hemminger
2020-01-22 23:37 ` [dpdk-dev] [PATCH 0/2] net/bnxt: statistic related fixes Ajit Khaparde
2 siblings, 0 replies; 5+ messages in thread
From: Stephen Hemminger @ 2020-01-22 17:55 UTC (permalink / raw)
To: dev; +Cc: Stephen Hemminger, ajit.khaparde, stable
When using pktgen lots of unnecessary errors are printed
because pktgen queries statistics before device is started.
Fixes: 3e92fd4e4ec0 ("net/bnxt: use dynamic log type")
Cc: ajit.khaparde@broadcom.com
Cc: stable@dpdk.org
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
---
drivers/net/bnxt/bnxt_stats.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/drivers/net/bnxt/bnxt_stats.c b/drivers/net/bnxt/bnxt_stats.c
index 20a16a629fb5..65f90e0d8588 100644
--- a/drivers/net/bnxt/bnxt_stats.c
+++ b/drivers/net/bnxt/bnxt_stats.c
@@ -390,10 +390,8 @@ int bnxt_stats_get_op(struct rte_eth_dev *eth_dev,
return rc;
memset(bnxt_stats, 0, sizeof(*bnxt_stats));
- if (!(bp->flags & BNXT_FLAG_INIT_DONE)) {
- PMD_DRV_LOG(ERR, "Device Initialization not complete!\n");
+ if (!(bp->flags & BNXT_FLAG_INIT_DONE))
return -EIO;
- }
num_q_stats = RTE_MIN(bp->rx_cp_nr_rings,
(unsigned int)RTE_ETHDEV_QUEUE_STAT_CNTRS);
--
2.20.1
^ permalink raw reply [flat|nested] 5+ messages in thread
* [dpdk-dev] [PATCH 2/2] net/bnxt: remove unnecessary memset
2020-01-22 17:55 [dpdk-dev] [PATCH 0/2] net/bnxt: statistic related fixes Stephen Hemminger
2020-01-22 17:55 ` [dpdk-dev] [PATCH 1/2] net/bnxt: do not print error if stats queried before start Stephen Hemminger
@ 2020-01-22 17:55 ` Stephen Hemminger
2020-01-22 23:37 ` [dpdk-dev] [PATCH 0/2] net/bnxt: statistic related fixes Ajit Khaparde
2 siblings, 0 replies; 5+ messages in thread
From: Stephen Hemminger @ 2020-01-22 17:55 UTC (permalink / raw)
To: dev; +Cc: Stephen Hemminger, ajit.khaparde, stable
The rte_ethdev layer already zeros statistics before calling
the device.
Fixes: 57d5e5bc86e4 ("net/bnxt: add statistics")
Cc: ajit.khaparde@broadcom.com
Cc: stable@dpdk.org
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
---
drivers/net/bnxt/bnxt_stats.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/drivers/net/bnxt/bnxt_stats.c b/drivers/net/bnxt/bnxt_stats.c
index 65f90e0d8588..32f112b5ba35 100644
--- a/drivers/net/bnxt/bnxt_stats.c
+++ b/drivers/net/bnxt/bnxt_stats.c
@@ -389,7 +389,6 @@ int bnxt_stats_get_op(struct rte_eth_dev *eth_dev,
if (rc)
return rc;
- memset(bnxt_stats, 0, sizeof(*bnxt_stats));
if (!(bp->flags & BNXT_FLAG_INIT_DONE))
return -EIO;
--
2.20.1
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [dpdk-dev] [PATCH 0/2] net/bnxt: statistic related fixes
2020-01-22 17:55 [dpdk-dev] [PATCH 0/2] net/bnxt: statistic related fixes Stephen Hemminger
2020-01-22 17:55 ` [dpdk-dev] [PATCH 1/2] net/bnxt: do not print error if stats queried before start Stephen Hemminger
2020-01-22 17:55 ` [dpdk-dev] [PATCH 2/2] net/bnxt: remove unnecessary memset Stephen Hemminger
@ 2020-01-22 23:37 ` Ajit Khaparde
2020-01-23 9:13 ` Ferruh Yigit
2 siblings, 1 reply; 5+ messages in thread
From: Ajit Khaparde @ 2020-01-22 23:37 UTC (permalink / raw)
To: Stephen Hemminger; +Cc: dpdk-dev
On Wed, Jan 22, 2020 at 9:56 AM Stephen Hemminger <
stephen@networkplumber.org> wrote:
> A couple of minor things in bnxt statistics
>
> Stephen Hemminger (2):
> net/bnxt: do not print error if stats queried before start
> net/bnxt: remove unnecessary memset
>
> drivers/net/bnxt/bnxt_stats.c | 5 +----
> 1 file changed, 1 insertion(+), 4 deletions(-)
>
> Patches applied to dpdk-next-net-brcm. Thanks
> --
> 2.20.1
>
>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [dpdk-dev] [PATCH 0/2] net/bnxt: statistic related fixes
2020-01-22 23:37 ` [dpdk-dev] [PATCH 0/2] net/bnxt: statistic related fixes Ajit Khaparde
@ 2020-01-23 9:13 ` Ferruh Yigit
0 siblings, 0 replies; 5+ messages in thread
From: Ferruh Yigit @ 2020-01-23 9:13 UTC (permalink / raw)
To: Ajit Khaparde, Stephen Hemminger; +Cc: dpdk-dev
On 1/22/2020 11:37 PM, Ajit Khaparde wrote:
> On Wed, Jan 22, 2020 at 9:56 AM Stephen Hemminger <
> stephen@networkplumber.org> wrote:
>
>> A couple of minor things in bnxt statistics
>>
>> Stephen Hemminger (2):
>> net/bnxt: do not print error if stats queried before start
>> net/bnxt: remove unnecessary memset
>>
>> drivers/net/bnxt/bnxt_stats.c | 5 +----
>> 1 file changed, 1 insertion(+), 4 deletions(-)
>>
>> Patches applied to dpdk-next-net-brcm. Thanks
>
Hi Ajit,
It seems they are not pushed into your tree. Please ping me when you do, I can
pull afterwards.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2020-01-23 9:13 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-01-22 17:55 [dpdk-dev] [PATCH 0/2] net/bnxt: statistic related fixes Stephen Hemminger
2020-01-22 17:55 ` [dpdk-dev] [PATCH 1/2] net/bnxt: do not print error if stats queried before start Stephen Hemminger
2020-01-22 17:55 ` [dpdk-dev] [PATCH 2/2] net/bnxt: remove unnecessary memset Stephen Hemminger
2020-01-22 23:37 ` [dpdk-dev] [PATCH 0/2] net/bnxt: statistic related fixes Ajit Khaparde
2020-01-23 9:13 ` Ferruh Yigit
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).