Commit 1a5a366f authored by Sudarsana Reddy Kalluru's avatar Sudarsana Reddy Kalluru Committed by David S. Miller

qede: Add support for capturing additional stats in ethtool-stats display.

The patch adds driver support for capturing stats ttl0_discard and
packet_too_big_discard in "ethtool -S" display.
Signed-off-by: default avatarSudarsana Reddy Kalluru <sudarsana.kalluru@qlogic.com>
Signed-off-by: default avatarYuval Mintz <Yuval.Mintz@qlogic.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 0d135e4f
...@@ -36,6 +36,8 @@ ...@@ -36,6 +36,8 @@
struct qede_stats { struct qede_stats {
u64 no_buff_discards; u64 no_buff_discards;
u64 packet_too_big_discard;
u64 ttl0_discard;
u64 rx_ucast_bytes; u64 rx_ucast_bytes;
u64 rx_mcast_bytes; u64 rx_mcast_bytes;
u64 rx_bcast_bytes; u64 rx_bcast_bytes;
......
...@@ -107,6 +107,8 @@ static const struct { ...@@ -107,6 +107,8 @@ static const struct {
QEDE_PF_STAT(mftag_filter_discards), QEDE_PF_STAT(mftag_filter_discards),
QEDE_PF_STAT(mac_filter_discards), QEDE_PF_STAT(mac_filter_discards),
QEDE_STAT(tx_err_drop_pkts), QEDE_STAT(tx_err_drop_pkts),
QEDE_STAT(ttl0_discard),
QEDE_STAT(packet_too_big_discard),
QEDE_STAT(coalesced_pkts), QEDE_STAT(coalesced_pkts),
QEDE_STAT(coalesced_events), QEDE_STAT(coalesced_events),
......
...@@ -1694,6 +1694,8 @@ void qede_fill_by_demand_stats(struct qede_dev *edev) ...@@ -1694,6 +1694,8 @@ void qede_fill_by_demand_stats(struct qede_dev *edev)
edev->ops->get_vport_stats(edev->cdev, &stats); edev->ops->get_vport_stats(edev->cdev, &stats);
edev->stats.no_buff_discards = stats.no_buff_discards; edev->stats.no_buff_discards = stats.no_buff_discards;
edev->stats.packet_too_big_discard = stats.packet_too_big_discard;
edev->stats.ttl0_discard = stats.ttl0_discard;
edev->stats.rx_ucast_bytes = stats.rx_ucast_bytes; edev->stats.rx_ucast_bytes = stats.rx_ucast_bytes;
edev->stats.rx_mcast_bytes = stats.rx_mcast_bytes; edev->stats.rx_mcast_bytes = stats.rx_mcast_bytes;
edev->stats.rx_bcast_bytes = stats.rx_bcast_bytes; edev->stats.rx_bcast_bytes = stats.rx_bcast_bytes;
......
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