* [dpdk-dev] [PATCH] enic: expose RX missed packets counter
@ 2016-03-30 18:07 John Daley
2016-03-30 18:18 ` Thomas Monjalon
0 siblings, 1 reply; 2+ messages in thread
From: John Daley @ 2016-03-30 18:07 UTC (permalink / raw)
To: dev; +Cc: John Daley
Update the 'imissed' counter with the number of packets dropped
by the NIC.
Fixes: fefed3d1e62c ("enic: new driver")
Signed-off-by: John Daley <johndale@cisco.com>
Reviewed-by: Nelson Escobar <neescoba@cisco.com>
---
drivers/net/enic/enic_main.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/net/enic/enic_main.c b/drivers/net/enic/enic_main.c
index 2f79cf0..e3da51d 100644
--- a/drivers/net/enic/enic_main.c
+++ b/drivers/net/enic/enic_main.c
@@ -246,6 +246,8 @@ void enic_dev_stats_get(struct enic *enic, struct rte_eth_stats *r_stats)
r_stats->ierrors = stats->rx.rx_errors;
r_stats->oerrors = stats->tx.tx_errors;
+ r_stats->imissed = stats->rx.rx_drop;
+
r_stats->imcasts = stats->rx.rx_multicast_frames_ok;
r_stats->rx_nombuf = stats->rx.rx_no_bufs;
}
--
2.7.0
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [dpdk-dev] [PATCH] enic: expose RX missed packets counter
2016-03-30 18:07 [dpdk-dev] [PATCH] enic: expose RX missed packets counter John Daley
@ 2016-03-30 18:18 ` Thomas Monjalon
0 siblings, 0 replies; 2+ messages in thread
From: Thomas Monjalon @ 2016-03-30 18:18 UTC (permalink / raw)
To: John Daley; +Cc: dev
2016-03-30 11:07, John Daley:
> Update the 'imissed' counter with the number of packets dropped
> by the NIC.
>
> Fixes: fefed3d1e62c ("enic: new driver")
>
> Signed-off-by: John Daley <johndale@cisco.com>
> Reviewed-by: Nelson Escobar <neescoba@cisco.com>
Applied, thanks
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-03-30 18:20 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-03-30 18:07 [dpdk-dev] [PATCH] enic: expose RX missed packets counter John Daley
2016-03-30 18:18 ` Thomas Monjalon
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).