]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit87ee8da426695303e2d46b3e661e8462a25e3837
tree11e57e70f2bd67a59dd11e9a41feb4e48bbdc693
parent082e56e52b877151d337908102729c74488d45d0
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