Patch "idpf: fix handling rsc packet with a single segment" has been added to the 6.13-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

    idpf: fix handling rsc packet with a single segment

to the 6.13-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:
     idpf-fix-handling-rsc-packet-with-a-single-segment.patch
and it can be found in the queue-6.13 subdirectory.

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



commit 675bf61fcdb0012af8d2b4852804ac3f5a131f42
Author: Sridhar Samudrala <sridhar.samudrala@xxxxxxxxx>
Date:   Fri Jan 10 16:29:22 2025 -0800

    idpf: fix handling rsc packet with a single segment
    
    [ Upstream commit 69ab25a74e2df53edc2de4acfce0a484bdb88155 ]
    
    Handle rsc packet with a single segment same as a multi
    segment rsc packet so that CHECKSUM_PARTIAL is set in the
    skb->ip_summed field. The current code is passing CHECKSUM_NONE
    resulting in TCP GRO layer doing checksum in SW and hiding the
    issue. This will fail when using dmabufs as payload buffers as
    skb frag would be unreadable.
    
    Fixes: 3a8845af66ed ("idpf: add RX splitq napi poll support")
    Signed-off-by: Sridhar Samudrala <sridhar.samudrala@xxxxxxxxx>
    Reviewed-by: Przemek Kitszel <przemyslaw.kitszel@xxxxxxxxx>
    Tested-by: Samuel Salin <Samuel.salin@xxxxxxxxx>
    Signed-off-by: Tony Nguyen <anthony.l.nguyen@xxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/drivers/net/ethernet/intel/idpf/idpf_txrx.c b/drivers/net/ethernet/intel/idpf/idpf_txrx.c
index 2fa9c36e33c9c..c9fcf8f4d7363 100644
--- a/drivers/net/ethernet/intel/idpf/idpf_txrx.c
+++ b/drivers/net/ethernet/intel/idpf/idpf_txrx.c
@@ -3008,8 +3008,6 @@ static int idpf_rx_rsc(struct idpf_rx_queue *rxq, struct sk_buff *skb,
 		return -EINVAL;
 
 	rsc_segments = DIV_ROUND_UP(skb->data_len, rsc_seg_len);
-	if (unlikely(rsc_segments == 1))
-		return 0;
 
 	NAPI_GRO_CB(skb)->count = rsc_segments;
 	skb_shinfo(skb)->gso_size = rsc_seg_len;




[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