net/mlx5e: Add helper to get RQ WQE's head
authorAya Levin <ayal@mellanox.com>
Thu, 30 Apr 2020 10:36:26 +0000 (13:36 +0300)
committerSaeed Mahameed <saeedm@mellanox.com>
Fri, 3 Jul 2020 04:05:17 +0000 (21:05 -0700)
commitfc42d0de16debb2c8ba83e1345a55a18ff87e2d9
treea4616ec6ea5b48ad355fa032218f0d56edddee50
parent5d95c816608cd6e7ccfe3d4c8083465973b9f3d1
net/mlx5e: Add helper to get RQ WQE's head

Add helper which retrieves the RQ WQE's head. Use this helper in RX
reporter diagnose callback.

Signed-off-by: Aya Levin <ayal@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/en/reporter_rx.c
drivers/net/ethernet/mellanox/mlx5/core/en/txrx.h
drivers/net/ethernet/mellanox/mlx5/core/wq.h