OSDN Git Service

net/mlx5e: Create q counters on uplink representors
authorVlad Buslov <vladbu@mellanox.com>
Tue, 21 Jan 2020 19:36:40 +0000 (21:36 +0200)
committerSaeed Mahameed <saeedm@mellanox.com>
Thu, 23 Jan 2020 06:30:12 +0000 (22:30 -0800)
commit8520fa57a4e934eff631883cf80744d3a84c734b
tree4f8703c94334bb40ff56f85258566bf308fd6230
parent8a236b15144b29ce47f80c37bc55740a5388ecb1
net/mlx5e: Create q counters on uplink representors

Q counters were disabled for all types of representors to prevent an issue
where there is not enough resources to init q counters for 127 representor
instances. Enable q counters only for uplink representors to support
"rx_out_of_buffer", "rx_if_down_packets" counters in ethtool.

Signed-off-by: Vlad Buslov <vladbu@mellanox.com>
Reviewed-by: Roi Dayan <roid@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/en_rep.c