]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit29073a3be49538b13ef4a4f55e4558a491bd4f8d
tree4f8703c94334bb40ff56f85258566bf308fd6230
parent9fa2e3479e7f25aa45441b9b8b5520f8ebf5c9d4
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