mirror of
https://git.proxmox.com/git/mirror_ubuntu-kernels.git
synced 2025-12-16 17:32:01 +00:00
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>
This commit is contained in:
parent
f913a72aa0
commit
fe6b9bd9eb
@ -151,6 +151,22 @@ static const struct counter_desc vport_stats_desc[] = {
|
|||||||
VPORT_COUNTER_OFF(transmitted_eth_broadcast.packets) },
|
VPORT_COUNTER_OFF(transmitted_eth_broadcast.packets) },
|
||||||
{ "tx_vport_broadcast_bytes",
|
{ "tx_vport_broadcast_bytes",
|
||||||
VPORT_COUNTER_OFF(transmitted_eth_broadcast.octets) },
|
VPORT_COUNTER_OFF(transmitted_eth_broadcast.octets) },
|
||||||
|
{ "rx_vport_rdma_unicast_packets",
|
||||||
|
VPORT_COUNTER_OFF(received_ib_unicast.packets) },
|
||||||
|
{ "rx_vport_rdma_unicast_bytes",
|
||||||
|
VPORT_COUNTER_OFF(received_ib_unicast.octets) },
|
||||||
|
{ "tx_vport_rdma_unicast_packets",
|
||||||
|
VPORT_COUNTER_OFF(transmitted_ib_unicast.packets) },
|
||||||
|
{ "tx_vport_rdma_unicast_bytes",
|
||||||
|
VPORT_COUNTER_OFF(transmitted_ib_unicast.octets) },
|
||||||
|
{ "rx_vport_rdma_multicast_packets",
|
||||||
|
VPORT_COUNTER_OFF(received_ib_multicast.packets) },
|
||||||
|
{ "rx_vport_rdma_multicast_bytes",
|
||||||
|
VPORT_COUNTER_OFF(received_ib_multicast.octets) },
|
||||||
|
{ "tx_vport_rdma_multicast_packets",
|
||||||
|
VPORT_COUNTER_OFF(transmitted_ib_multicast.packets) },
|
||||||
|
{ "tx_vport_rdma_multicast_bytes",
|
||||||
|
VPORT_COUNTER_OFF(transmitted_ib_multicast.octets) },
|
||||||
};
|
};
|
||||||
|
|
||||||
#define PPORT_802_3_OFF(c) \
|
#define PPORT_802_3_OFF(c) \
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user