]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5e: Move Q counters allocation and drop RQ to init_rx
authorRoi Dayan <roid@mellanox.com>
Sun, 5 Aug 2018 03:58:05 +0000 (06:58 +0300)
committerSaeed Mahameed <saeedm@mellanox.com>
Thu, 6 Sep 2018 04:14:57 +0000 (21:14 -0700)
commiteb6320282d74402ac6644d5e4907334b23b1ba8b
tree209e957797e22fba057f205db9d8e64048c7758e
parent475e95d9c7337f86309ed0a207257d1dd248d65a
net/mlx5e: Move Q counters allocation and drop RQ to init_rx

Not all profiles query the HW Q counters in update_stats() callback.
HW Q couners are limited per device and in case of representors all
their Q counters are allocated on the parent PF device.
Avoid reundant allocation of HW Q counters by moving the allocation
to init_rx profile callback.

Signed-off-by: Roi Dayan <roid@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/en.h
drivers/net/ethernet/mellanox/mlx5/core/en_main.c
drivers/net/ethernet/mellanox/mlx5/core/en_rep.c
drivers/net/ethernet/mellanox/mlx5/core/ipoib/ipoib.c