net/mlx5e: Put the common XDP code into a function
authorMaxim Mikityanskiy <maximmi@mellanox.com>
Fri, 1 Mar 2019 11:12:55 +0000 (13:12 +0200)
committerSaeed Mahameed <saeedm@mellanox.com>
Wed, 1 May 2019 21:39:16 +0000 (14:39 -0700)
commit33e10924a0cead92b0ef9d71165eaeb849ec108f
tree38ed8ef39f661e5704de4e5474b59ddf9e3f1389
parenta708fb7b1f8dcc7a8ed949839958cd5d812dd939
net/mlx5e: Put the common XDP code into a function

The same code that returns XDP frames and releases pages is used both in
mlx5e_poll_xdpsq_cq and mlx5e_free_xdpsq_descs. Create a function that
cleans up an MPWQE.

Signed-off-by: Maxim Mikityanskiy <maximmi@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/en/xdp.c