Browse Source

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

Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
Jon Cooper 12 years ago
parent
commit
c99dffc417
1 changed files with 2 additions and 0 deletions
  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))