From: Jon Cooper Date: Mon, 8 Apr 2013 11:49:48 +0000 (+0100) Subject: sfc: Enable RX checksum offload for packets not handled by GRO X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=c99dffc4170b23455f9ee9e56baf5f77a68ca4c8;p=openwrt%2Fstaging%2Fblogic.git sfc: Enable RX checksum offload for packets not handled by GRO Signed-off-by: Ben Hutchings --- diff --git a/drivers/net/ethernet/sfc/rx.c b/drivers/net/ethernet/sfc/rx.c index a7dfe36cabf4..b915e09b8691 100644 --- a/drivers/net/ethernet/sfc/rx.c +++ b/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))