Patch "i40e: remove dead stores on XSK hotpath" has been added to the 5.17-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

    i40e: remove dead stores on XSK hotpath

to the 5.17-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:
     i40e-remove-dead-stores-on-xsk-hotpath.patch
and it can be found in the queue-5.17 subdirectory.

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



commit 55a048173e315d4d0ab509ae74400390f896b1c4
Author: Alexander Lobakin <alexandr.lobakin@xxxxxxxxx>
Date:   Fri Feb 18 13:50:33 2022 -0800

    i40e: remove dead stores on XSK hotpath
    
    [ Upstream commit 7e1b54d07751edcbf23c7211508abf5667b490ee ]
    
    The 'if (ntu == rx_ring->count)' block in i40e_alloc_rx_buffers_zc()
    was previously residing in the loop, but after introducing the
    batched interface it is used only to wrap-around the NTU descriptor,
    thus no more need to assign 'xdp'.
    
    'cleaned_count' in i40e_clean_rx_irq_zc() was previously being
    incremented in the loop, but after commit f12738b6ec06
    ("i40e: remove unnecessary cleaned_count updates") it gets
    assigned only once after it, so the initialization can be dropped.
    
    Fixes: 6aab0bb0c5cd ("i40e: Use the xsk batched rx allocation interface")
    Fixes: f12738b6ec06 ("i40e: remove unnecessary cleaned_count updates")
    Signed-off-by: Alexander Lobakin <alexandr.lobakin@xxxxxxxxx>
    Acked-by: Maciej Fijalkowski <maciej.fijalkowski@xxxxxxxxx>
    Tested-by: George Kuruvinakunnel <george.kuruvinakunnel@xxxxxxxxx>
    Signed-off-by: Tony Nguyen <anthony.l.nguyen@xxxxxxxxx>
    Signed-off-by: David S. Miller <davem@xxxxxxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/drivers/net/ethernet/intel/i40e/i40e_xsk.c b/drivers/net/ethernet/intel/i40e/i40e_xsk.c
index 67e9844e2076..e5e72b5bb619 100644
--- a/drivers/net/ethernet/intel/i40e/i40e_xsk.c
+++ b/drivers/net/ethernet/intel/i40e/i40e_xsk.c
@@ -218,7 +218,6 @@ bool i40e_alloc_rx_buffers_zc(struct i40e_ring *rx_ring, u16 count)
 	ntu += nb_buffs;
 	if (ntu == rx_ring->count) {
 		rx_desc = I40E_RX_DESC(rx_ring, 0);
-		xdp = i40e_rx_bi(rx_ring, 0);
 		ntu = 0;
 	}
 
@@ -328,11 +327,11 @@ static void i40e_handle_xdp_result_zc(struct i40e_ring *rx_ring,
 int i40e_clean_rx_irq_zc(struct i40e_ring *rx_ring, int budget)
 {
 	unsigned int total_rx_bytes = 0, total_rx_packets = 0;
-	u16 cleaned_count = I40E_DESC_UNUSED(rx_ring);
 	u16 next_to_clean = rx_ring->next_to_clean;
 	u16 count_mask = rx_ring->count - 1;
 	unsigned int xdp_res, xdp_xmit = 0;
 	bool failure = false;
+	u16 cleaned_count;
 
 	while (likely(total_rx_packets < (unsigned int)budget)) {
 		union i40e_rx_desc *rx_desc;



[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