net/mlx5e: Use WQ API functions instead of direct fields access
authorTariq Toukan <tariqt@mellanox.com>
Wed, 2 May 2018 15:30:56 +0000 (18:30 +0300)
committerSaeed Mahameed <saeedm@mellanox.com>
Fri, 25 May 2018 21:11:00 +0000 (14:11 -0700)
commitddf385e31f574c1c47215b6b1cf53343d7d204d6
treeff75a71d5973065c5c22ead7d0660a0bf9b6d339
parente4ad91f23f10a9e7e7775f854584f4d54fe7f299
net/mlx5e: Use WQ API functions instead of direct fields access

Use the WQ API to get the WQ size, and to map a counter
into a WQ entry index.

Signed-off-by: Tariq Toukan <tariqt@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_rx.c
drivers/net/ethernet/mellanox/mlx5/core/en_tx.c
drivers/net/ethernet/mellanox/mlx5/core/wq.h