diff options
author | Dragos Tatulea <dtatulea@nvidia.com> | 2023-02-21 17:24:09 +0200 |
---|---|---|
committer | Saeed Mahameed <saeedm@nvidia.com> | 2023-03-28 13:43:58 -0700 |
commit | 625dff29df3957f8a864c05d21a327231ebeff94 (patch) | |
tree | f8d7f5c2b3d9c8cee83004495efa64657c50834b /drivers/net/ethernet/mellanox/mlx5/core/en.h | |
parent | 4c2a1323680709078736a2886c754004e9fe42e6 (diff) | |
download | linux-stable-625dff29df3957f8a864c05d21a327231ebeff94.tar.gz linux-stable-625dff29df3957f8a864c05d21a327231ebeff94.tar.bz2 linux-stable-625dff29df3957f8a864c05d21a327231ebeff94.zip |
net/mlx5e: RX, Change wqe last_in_page field from bool to bit flags
Change the bool flag to a bitfield as we'll use it in a downstream patch
in the series to add signaling about skipping a fragment release.
Signed-off-by: Dragos Tatulea <dtatulea@nvidia.com>
Reviewed-by: Tariq Toukan <tariqt@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
Diffstat (limited to 'drivers/net/ethernet/mellanox/mlx5/core/en.h')
-rw-r--r-- | drivers/net/ethernet/mellanox/mlx5/core/en.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/net/ethernet/mellanox/mlx5/core/en.h b/drivers/net/ethernet/mellanox/mlx5/core/en.h index 566ddf7a7aa9..9ef4b7163e5a 100644 --- a/drivers/net/ethernet/mellanox/mlx5/core/en.h +++ b/drivers/net/ethernet/mellanox/mlx5/core/en.h @@ -605,13 +605,17 @@ struct mlx5e_frag_page { u16 frags; }; +enum mlx5e_wqe_frag_flag { + MLX5E_WQE_FRAG_LAST_IN_PAGE, +}; + struct mlx5e_wqe_frag_info { union { struct mlx5e_frag_page *frag_page; struct xdp_buff **xskp; }; u32 offset; - bool last_in_page; + u8 flags; }; union mlx5e_alloc_units { |