OSDN Git Service

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)
commit1462e48db0597a3dec8e73d64f3a001936ec398e
tree209e957797e22fba057f205db9d8e64048c7758e
parentd24082050f2f626582902f7c65b91d699ec60613
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