net/mlx5e: XDP, Slight enhancement for WQE fetch function
authorTariq Toukan <tariqt@mellanox.com>
Sun, 14 Jul 2019 14:50:51 +0000 (17:50 +0300)
committerSaeed Mahameed <saeedm@mellanox.com>
Thu, 1 Aug 2019 19:33:31 +0000 (12:33 -0700)
commit7cf6f811b72aced0c48e1065fe059d604ef6363d
treefbb8a9111bdb17d7deca0d6dcdf1064c96288f5f
parent6c085a8aab5183d8658c9a692bcfda3e24195b7a
net/mlx5e: XDP, Slight enhancement for WQE fetch function

Instead of passing an output param, let function return the
WQE pointer.
In addition, pass &pi so it gets its value in the function,
and save the redundant assignment that comes after it.

Signed-off-by: Tariq Toukan <tariqt@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/en/xdp.c
drivers/net/ethernet/mellanox/mlx5/core/en/xdp.h