lkml.org 
[lkml]   [2021]   [May]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 5.12 024/363] net/mlx5e: Use net_prefetchw instead of prefetchw in MPWQE TX datapath
    Date
    From: Maxim Mikityanskiy <maximmi@mellanox.com>

    [ Upstream commit 991b2654605b455a94dac73e14b23480e7e20991 ]

    Commit e20f0dbf204f ("net/mlx5e: RX, Add a prefetch command for small
    L1_CACHE_BYTES") switched to using net_prefetchw at all places in mlx5e.
    In the same time frame, commit 5af75c747e2a ("net/mlx5e: Enhanced TX
    MPWQE for SKBs") added one more usage of prefetchw. When these two
    changes were merged, this new occurrence of prefetchw wasn't replaced
    with net_prefetchw.

    This commit fixes this last occurrence of prefetchw in
    mlx5e_tx_mpwqe_session_start, making the same change that was done in
    mlx5e_xdp_mpwqe_session_start.

    Signed-off-by: Maxim Mikityanskiy <maximmi@mellanox.com>
    Reviewed-by: Saeed Mahameed <saeedm@nvidia.com>
    Reviewed-by: Tariq Toukan <tariqt@nvidia.com>
    Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
    Signed-off-by: Sasha Levin <sashal@kernel.org>
    ---
    drivers/net/ethernet/mellanox/mlx5/core/en_tx.c | 2 +-
    1 file changed, 1 insertion(+), 1 deletion(-)

    diff --git a/drivers/net/ethernet/mellanox/mlx5/core/en_tx.c b/drivers/net/ethernet/mellanox/mlx5/core/en_tx.c
    index bdbffe484fce..d2efe2455955 100644
    --- a/drivers/net/ethernet/mellanox/mlx5/core/en_tx.c
    +++ b/drivers/net/ethernet/mellanox/mlx5/core/en_tx.c
    @@ -576,7 +576,7 @@ static void mlx5e_tx_mpwqe_session_start(struct mlx5e_txqsq *sq,

    pi = mlx5e_txqsq_get_next_pi(sq, MLX5E_TX_MPW_MAX_WQEBBS);
    wqe = MLX5E_TX_FETCH_WQE(sq, pi);
    - prefetchw(wqe->data);
    + net_prefetchw(wqe->data);

    *session = (struct mlx5e_tx_mpwqe) {
    .wqe = wqe,
    --
    2.30.2


    \
     
     \ /
      Last update: 2021-05-17 16:07    [W:4.448 / U:1.272 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site