diff options
author | Jon Cooper <jcooper@solarflare.com> | 2013-04-08 15:49:48 +0400 |
---|---|---|
committer | Ben Hutchings <bhutchings@solarflare.com> | 2013-06-24 22:58:27 +0400 |
commit | c99dffc4170b23455f9ee9e56baf5f77a68ca4c8 (patch) | |
tree | 248405d7b620a2c7765237f0dbe8f1451a772460 /drivers/net/ethernet/sfc | |
parent | b28405b0f25c91b52350fd558c219f08e5033eaf (diff) | |
download | linux-c99dffc4170b23455f9ee9e56baf5f77a68ca4c8.tar.xz |
sfc: Enable RX checksum offload for packets not handled by GRO
Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
Diffstat (limited to 'drivers/net/ethernet/sfc')
-rw-r--r-- | drivers/net/ethernet/sfc/rx.c | 2 |
1 files changed, 2 insertions, 0 deletions
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)) |