Skip to content

Commit 69ab25a

Browse files
ssamudralaanguy11
authored andcommitted
idpf: fix handling rsc packet with a single segment
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]>
1 parent 44ce351 commit 69ab25a

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
@@ -3008,8 +3008,6 @@ static int idpf_rx_rsc(struct idpf_rx_queue *rxq, struct sk_buff *skb,
30083008
return -EINVAL;
30093009

30103010
rsc_segments = DIV_ROUND_UP(skb->data_len, rsc_seg_len);
3011-
if (unlikely(rsc_segments == 1))
3012-
return 0;
30133011

30143012
NAPI_GRO_CB(skb)->count = rsc_segments;
30153013
skb_shinfo(skb)->gso_size = rsc_seg_len;

0 commit comments

Comments
 (0)