]> 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)
commitfa69bf70a835de97f2d5c8f3b2d0a23d06661f2d
tree4f8703c94334bb40ff56f85258566bf308fd6230
parent585f22fe4bc6850afbb7722ef87f2a30f1b9b977
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