aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/mellanox/mlx5/core/en/xdp.h
diff options
context:
space:
mode:
authorTariq Toukan <tariqt@mellanox.com>2020-04-09 13:43:43 +0300
committerSaeed Mahameed <saeedm@mellanox.com>2020-05-09 01:05:41 -0700
commit05dfd570826f1ae408e1a3faeddb753ff06fed14 (patch)
tree9cec9eb589acd204e44e918df30f2286b8ca8f3f /drivers/net/ethernet/mellanox/mlx5/core/en/xdp.h
parentnet/mlx5e: kTLS, Do not fill edge for the DUMP WQEs in TX flow (diff)
downloadlinux-dev-05dfd570826f1ae408e1a3faeddb753ff06fed14.tar.xz
linux-dev-05dfd570826f1ae408e1a3faeddb753ff06fed14.zip
net/mlx5e: Take TX WQE info structures out of general EN header
Into the txrx header file. The mlx5e_sq_wqe_info structure describes WQE info for the ICOSQ, rename it to better reflect this. Signed-off-by: Tariq Toukan <tariqt@mellanox.com> Reviewed-by: Maxim Mikityanskiy <maximmi@mellanox.com> Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Diffstat (limited to '')
-rw-r--r--drivers/net/ethernet/mellanox/mlx5/core/en/xdp.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/net/ethernet/mellanox/mlx5/core/en/xdp.h b/drivers/net/ethernet/mellanox/mlx5/core/en/xdp.h
index ed6f045febeb..e2e01f064c1e 100644
--- a/drivers/net/ethernet/mellanox/mlx5/core/en/xdp.h
+++ b/drivers/net/ethernet/mellanox/mlx5/core/en/xdp.h
@@ -137,6 +137,11 @@ mlx5e_xdp_no_room_for_inline_pkt(struct mlx5e_xdp_mpwqe *session)
session->ds_count + MLX5E_XDP_INLINE_WQE_MAX_DS_CNT > MLX5E_XDP_MPW_MAX_NUM_DS;
}
+struct mlx5e_xdp_wqe_info {
+ u8 num_wqebbs;
+ u8 num_pkts;
+};
+
static inline void
mlx5e_xdp_mpwqe_add_dseg(struct mlx5e_xdpsq *sq,
struct mlx5e_xdp_xmit_data *xdptxd,