diff options
author | Tariq Toukan <tariqt@nvidia.com> | 2023-04-17 15:18:53 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2023-04-19 08:59:25 +0100 |
commit | 3f734b8c594bd378b0266cd98d6ce12b459da1d4 (patch) | |
tree | 02a89af23555afbf8a4b3edf8240a184d5717d2c /drivers/net/ethernet/mellanox/mlx5/core/en.h | |
parent | 3a48ba12b4e471a9a3cf5fcff5146632ae6453d5 (diff) | |
download | linux-stable-3f734b8c594bd378b0266cd98d6ce12b459da1d4.tar.gz linux-stable-3f734b8c594bd378b0266cd98d6ce12b459da1d4.tar.bz2 linux-stable-3f734b8c594bd378b0266cd98d6ce12b459da1d4.zip |
net/mlx5e: XDP, Use multiple single-entry objects in xdpi_fifo
Here we fix the current wi->num_pkts abuse, as it was used to indicate
multiple xdpi entries in the xdpi_fifo.
Instead, reduce mlx5e_xdp_info to the size of a single field, making it
a union of unions. Per packet, use as many instances as needed to
provide the information needed at the time of completion.
The sequence of xdpi instances pushed is well defined, derived by the
xmit_mode.
Reviewed-by: Saeed Mahameed <saeedm@nvidia.com>
Signed-off-by: Tariq Toukan <tariqt@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/mellanox/mlx5/core/en.h')
-rw-r--r-- | drivers/net/ethernet/mellanox/mlx5/core/en.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/mellanox/mlx5/core/en.h b/drivers/net/ethernet/mellanox/mlx5/core/en.h index 386f5a498e52..0e15afbe1673 100644 --- a/drivers/net/ethernet/mellanox/mlx5/core/en.h +++ b/drivers/net/ethernet/mellanox/mlx5/core/en.h @@ -476,7 +476,7 @@ struct mlx5e_txqsq { } ____cacheline_aligned_in_smp; struct mlx5e_xdp_info_fifo { - struct mlx5e_xdp_info *xi; + union mlx5e_xdp_info *xi; u32 *cc; u32 *pc; u32 mask; |