瀏覽代碼

sfc: Enable RX checksum offload for packets not handled by GRO

Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
Jon Cooper 12 年之前
父節點
當前提交
c99dffc417
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      drivers/net/ethernet/sfc/rx.c

+ 2 - 0
drivers/net/ethernet/sfc/rx.c

@@ -598,6 +598,8 @@ static void efx_rx_deliver(struct efx_channel *channel, u8 *eh,
 
 	/* Set the SKB flags */
 	skb_checksum_none_assert(skb);
+	if (likely(rx_buf->flags & EFX_RX_PKT_CSUMMED))
+		skb->ip_summed = CHECKSUM_UNNECESSARY;
 
 	if (channel->type->receive_skb)
 		if (channel->type->receive_skb(channel, skb))