diff options
author | Damjan Marion <damarion@cisco.com> | 2016-06-07 12:46:55 +0200 |
---|---|---|
committer | Dave Barach <openvpp@barachs.net> | 2016-06-07 16:34:44 +0000 |
commit | 19414deeaa15ea9434f86d40a5bc7ca43916eab5 (patch) | |
tree | acdb991d5696686abd5d082dee30eaef110577a0 /dpdk/dpdk-16.04_patches/0009-enic-fix-imissed-to-count-drops-due-to-lack-of-RX-bu.patch | |
parent | 3ef822e1c3eedef8dd3cd95a000a012667641f37 (diff) |
Rebase DPDK patches
Change-Id: I3ef9faceb085bd06b55e3ba7800389eaae56177a
Signed-off-by: Damjan Marion <damarion@cisco.com>
Diffstat (limited to 'dpdk/dpdk-16.04_patches/0009-enic-fix-imissed-to-count-drops-due-to-lack-of-RX-bu.patch')
-rw-r--r-- | dpdk/dpdk-16.04_patches/0009-enic-fix-imissed-to-count-drops-due-to-lack-of-RX-bu.patch | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/dpdk/dpdk-16.04_patches/0009-enic-fix-imissed-to-count-drops-due-to-lack-of-RX-bu.patch b/dpdk/dpdk-16.04_patches/0009-enic-fix-imissed-to-count-drops-due-to-lack-of-RX-bu.patch new file mode 100644 index 00000000000..b7a5e570a27 --- /dev/null +++ b/dpdk/dpdk-16.04_patches/0009-enic-fix-imissed-to-count-drops-due-to-lack-of-RX-bu.patch @@ -0,0 +1,32 @@ +From b41648c53981a534069a8ce1b75f189ba83e24c8 Mon Sep 17 00:00:00 2001 +From: John Daley <johndale@cisco.com> +Date: Tue, 26 Apr 2016 13:30:50 -0700 +Subject: [PATCH 09/17] enic: fix 'imissed' to count drops due to lack of RX + buffers + +Fixes: 7182d3e7d177 ("enic: expose Rx missed packets counter") +Signed-off-by: John Daley <johndale@cisco.com> +--- + drivers/net/enic/enic_main.c | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/drivers/net/enic/enic_main.c b/drivers/net/enic/enic_main.c +index e3da51d..06cacd4 100644 +--- a/drivers/net/enic/enic_main.c ++++ b/drivers/net/enic/enic_main.c +@@ -243,10 +243,10 @@ void enic_dev_stats_get(struct enic *enic, struct rte_eth_stats *r_stats) + r_stats->ibytes = stats->rx.rx_bytes_ok; + r_stats->obytes = stats->tx.tx_bytes_ok; + +- r_stats->ierrors = stats->rx.rx_errors; ++ r_stats->ierrors = stats->rx.rx_errors + stats->rx.rx_drop; + r_stats->oerrors = stats->tx.tx_errors; + +- r_stats->imissed = stats->rx.rx_drop; ++ r_stats->imissed = stats->rx.rx_no_bufs; + + r_stats->imcasts = stats->rx.rx_multicast_frames_ok; + r_stats->rx_nombuf = stats->rx.rx_no_bufs; +-- +2.7.4 + |