Skip to content

Commit 66eee20

Browse files
ssamudralamehmetb0
authored andcommitted
idpf: fix handling rsc packet with a single segment
BugLink: https://bugs.launchpad.net/bugs/2104873 [ Upstream commit 69ab25a ] 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: 3a8845a ("idpf: add RX splitq napi poll support") Signed-off-by: Sridhar Samudrala <[email protected]> Reviewed-by: Przemek Kitszel <[email protected]> Tested-by: Samuel Salin <[email protected]> Signed-off-by: Tony Nguyen <[email protected]> Signed-off-by: Sasha Levin <[email protected]> Signed-off-by: Noah Wager <[email protected]>
1 parent 9c785d7 commit 66eee20

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

drivers/net/ethernet/intel/idpf/idpf_txrx.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3024,8 +3024,6 @@ static int idpf_rx_rsc(struct idpf_rx_queue *rxq, struct sk_buff *skb,
30243024
return -EINVAL;
30253025

30263026
rsc_segments = DIV_ROUND_UP(skb->data_len, rsc_seg_len);
3027-
if (unlikely(rsc_segments == 1))
3028-
return 0;
30293027

30303028
NAPI_GRO_CB(skb)->count = rsc_segments;
30313029
skb_shinfo(skb)->gso_size = rsc_seg_len;

0 commit comments

Comments
 (0)