Patch "net/mlx5e: Use net_prefetchw instead of prefetchw in MPWQE TX datapath" has been added to the 5.12-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    net/mlx5e: Use net_prefetchw instead of prefetchw in MPWQE TX datapath

to the 5.12-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     net-mlx5e-use-net_prefetchw-instead-of-prefetchw-in-.patch
and it can be found in the queue-5.12 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit b2884930b572b3787193533cf165f659470d8aa2
Author: Maxim Mikityanskiy <maximmi@xxxxxxxxxxxx>
Date:   Fri Jan 29 18:43:31 2021 +0200

    net/mlx5e: Use net_prefetchw instead of prefetchw in MPWQE TX datapath
    
    [ 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@xxxxxxxxxxxx>
    Reviewed-by: Saeed Mahameed <saeedm@xxxxxxxxxx>
    Reviewed-by: Tariq Toukan <tariqt@xxxxxxxxxx>
    Signed-off-by: Saeed Mahameed <saeedm@xxxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

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,



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux