Commit 2835d2d9 authored by Ivan Vecera's avatar Ivan Vecera Committed by David S. Miller

bna: add missing per queue ethtool stat

Commit ba5ca784 "bna: check for dma mapping errors" added besides other
things a statistic that counts number of DMA buffer mapping failures
per each Rx queue. This counter is not included in ethtool stats output.

Fixes: ba5ca784 "bna: check for dma mapping errors"
Signed-off-by: default avatarIvan Vecera <ivecera@redhat.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 4496195d
...@@ -31,7 +31,7 @@ ...@@ -31,7 +31,7 @@
#define BNAD_NUM_TXF_COUNTERS 12 #define BNAD_NUM_TXF_COUNTERS 12
#define BNAD_NUM_RXF_COUNTERS 10 #define BNAD_NUM_RXF_COUNTERS 10
#define BNAD_NUM_CQ_COUNTERS (3 + 5) #define BNAD_NUM_CQ_COUNTERS (3 + 5)
#define BNAD_NUM_RXQ_COUNTERS 6 #define BNAD_NUM_RXQ_COUNTERS 7
#define BNAD_NUM_TXQ_COUNTERS 5 #define BNAD_NUM_TXQ_COUNTERS 5
#define BNAD_ETHTOOL_STATS_NUM \ #define BNAD_ETHTOOL_STATS_NUM \
...@@ -658,6 +658,8 @@ bnad_get_strings(struct net_device *netdev, u32 stringset, u8 *string) ...@@ -658,6 +658,8 @@ bnad_get_strings(struct net_device *netdev, u32 stringset, u8 *string)
string += ETH_GSTRING_LEN; string += ETH_GSTRING_LEN;
sprintf(string, "rxq%d_allocbuf_failed", q_num); sprintf(string, "rxq%d_allocbuf_failed", q_num);
string += ETH_GSTRING_LEN; string += ETH_GSTRING_LEN;
sprintf(string, "rxq%d_mapbuf_failed", q_num);
string += ETH_GSTRING_LEN;
sprintf(string, "rxq%d_producer_index", q_num); sprintf(string, "rxq%d_producer_index", q_num);
string += ETH_GSTRING_LEN; string += ETH_GSTRING_LEN;
sprintf(string, "rxq%d_consumer_index", q_num); sprintf(string, "rxq%d_consumer_index", q_num);
...@@ -678,6 +680,9 @@ bnad_get_strings(struct net_device *netdev, u32 stringset, u8 *string) ...@@ -678,6 +680,9 @@ bnad_get_strings(struct net_device *netdev, u32 stringset, u8 *string)
sprintf(string, "rxq%d_allocbuf_failed", sprintf(string, "rxq%d_allocbuf_failed",
q_num); q_num);
string += ETH_GSTRING_LEN; string += ETH_GSTRING_LEN;
sprintf(string, "rxq%d_mapbuf_failed",
q_num);
string += ETH_GSTRING_LEN;
sprintf(string, "rxq%d_producer_index", sprintf(string, "rxq%d_producer_index",
q_num); q_num);
string += ETH_GSTRING_LEN; string += ETH_GSTRING_LEN;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment