net/mlx5e: Move mlx5e_xdpi_fifo_push out of xmit_xdp_frame
authorMaxim Mikityanskiy <maximmi@nvidia.com>
Fri, 28 Jan 2022 14:43:14 +0000 (16:43 +0200)
committerSaeed Mahameed <saeedm@nvidia.com>
Fri, 18 Mar 2022 20:51:13 +0000 (13:51 -0700)
commit49529a1726850bddd7a991de6e8ef52c65c49fbe
tree11e57e70f2bd67a59dd11e9a41feb4e48bbdc693
parentddc87e7d477552084fd185b315a39d5067b01773
net/mlx5e: Move mlx5e_xdpi_fifo_push out of xmit_xdp_frame

The implementations of xmit_xdp_frame get the xdpi parameter of type
struct mlx5e_xdp_info for the sole purpose of calling
mlx5e_xdpi_fifo_push() on success.

This commit moves this call outside of xmit_xdp_frame, shifting this
responsibility to the caller. It will allow more fine-grained handling
of XDP info for cases when an xdp_frame is fragmented.

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