net/mlx5e: Fix q counters on uplink representors
authorRoi Dayan <roid@mellanox.com>
Thu, 23 Apr 2020 09:37:21 +0000 (12:37 +0300)
committerSaeed Mahameed <saeedm@mellanox.com>
Thu, 30 Apr 2020 16:20:33 +0000 (09:20 -0700)
commit67b38de646894c9a94fe4d6d17719e70cc6028eb
treec0e4f7774945302dab09649b90a818be76a6b929
parentcece6f432cca9f18900463ed01b97a152a03600a
net/mlx5e: Fix q counters on uplink representors

Need to allocate the q counters before init_rx which needs them
when creating the rq.

Fixes: 8520fa57a4e9 ("net/mlx5e: Create q counters on uplink representors")
Signed-off-by: Roi Dayan <roid@mellanox.com>
Reviewed-by: Vlad Buslov <vladbu@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/en_rep.c