aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGal Pressman <galp@mellanox.com>2016-07-04 10:23:11 -0400
committerDavid S. Miller <davem@davemloft.net>2016-07-05 03:06:03 -0400
commitfe6b9bd9ebd691f58b4568454946b62cad84fa07 (patch)
tree6de19d573362c06bf62f1980c9916719747cb2af
parentf913a72aa008777d4a92f82acafb17cce9aed4dc (diff)
net/mlx5e: Expose RDMA VPort counters to ethtool
Add the needed descriptors to expose RoCE RDMA counters. Signed-off-by: Gal Pressman <galp@mellanox.com> Signed-off-by: Saeed Mahameed <saeedm@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r--drivers/net/ethernet/mellanox/mlx5/core/en_stats.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/drivers/net/ethernet/mellanox/mlx5/core/en_stats.h b/drivers/net/ethernet/mellanox/mlx5/core/en_stats.h
index fcd490cc5610..ae2999857932 100644
--- a/drivers/net/ethernet/mellanox/mlx5/core/en_stats.h
+++ b/drivers/net/ethernet/mellanox/mlx5/core/en_stats.h
@@ -151,6 +151,22 @@ static const struct counter_desc vport_stats_desc[] = {
151 VPORT_COUNTER_OFF(transmitted_eth_broadcast.packets) }, 151 VPORT_COUNTER_OFF(transmitted_eth_broadcast.packets) },
152 { "tx_vport_broadcast_bytes", 152 { "tx_vport_broadcast_bytes",
153 VPORT_COUNTER_OFF(transmitted_eth_broadcast.octets) }, 153 VPORT_COUNTER_OFF(transmitted_eth_broadcast.octets) },
154 { "rx_vport_rdma_unicast_packets",
155 VPORT_COUNTER_OFF(received_ib_unicast.packets) },
156 { "rx_vport_rdma_unicast_bytes",
157 VPORT_COUNTER_OFF(received_ib_unicast.octets) },
158 { "tx_vport_rdma_unicast_packets",
159 VPORT_COUNTER_OFF(transmitted_ib_unicast.packets) },
160 { "tx_vport_rdma_unicast_bytes",
161 VPORT_COUNTER_OFF(transmitted_ib_unicast.octets) },
162 { "rx_vport_rdma_multicast_packets",
163 VPORT_COUNTER_OFF(received_ib_multicast.packets) },
164 { "rx_vport_rdma_multicast_bytes",
165 VPORT_COUNTER_OFF(received_ib_multicast.octets) },
166 { "tx_vport_rdma_multicast_packets",
167 VPORT_COUNTER_OFF(transmitted_ib_multicast.packets) },
168 { "tx_vport_rdma_multicast_bytes",
169 VPORT_COUNTER_OFF(transmitted_ib_multicast.octets) },
154}; 170};
155 171
156#define PPORT_802_3_OFF(c) \ 172#define PPORT_802_3_OFF(c) \