John Lo | 6bfd263 | 2016-04-16 00:00:17 -0400 | [diff] [blame] | 1 | commit 7182d3e7d17722d088322695fc09f0d3bb7f1eab |
| 2 | Author: John Daley <johndale@cisco.com> |
| 3 | Date: Wed Mar 30 11:07:31 2016 -0700 |
| 4 | |
| 5 | enic: expose Rx missed packets counter |
| 6 | |
| 7 | Update the 'imissed' counter with the number of packets dropped |
| 8 | by the NIC. |
| 9 | |
| 10 | Fixes: fefed3d1e62c ("enic: new driver") |
| 11 | |
| 12 | Signed-off-by: John Daley <johndale@cisco.com> |
| 13 | Reviewed-by: Nelson Escobar <neescoba@cisco.com> |
| 14 | |
| 15 | diff --git a/drivers/net/enic/enic_main.c b/drivers/net/enic/enic_main.c |
| 16 | index 2f79cf0..e3da51d 100644 |
| 17 | --- a/drivers/net/enic/enic_main.c |
| 18 | +++ b/drivers/net/enic/enic_main.c |
| 19 | @@ -246,6 +246,8 @@ void enic_dev_stats_get(struct enic *enic, struct rte_eth_stats *r_stats) |
| 20 | r_stats->ierrors = stats->rx.rx_errors; |
| 21 | r_stats->oerrors = stats->tx.tx_errors; |
| 22 | |
| 23 | + r_stats->imissed = stats->rx.rx_drop; |
| 24 | + |
| 25 | r_stats->imcasts = stats->rx.rx_multicast_frames_ok; |
| 26 | r_stats->rx_nombuf = stats->rx.rx_no_bufs; |
| 27 | } |