projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b28405b
)
sfc: Enable RX checksum offload for packets not handled by GRO
author
Jon Cooper
<jcooper@solarflare.com>
Mon, 8 Apr 2013 11:49:48 +0000
(12:49 +0100)
committer
Ben Hutchings
<bhutchings@solarflare.com>
Mon, 24 Jun 2013 18:58:27 +0000
(19:58 +0100)
Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
drivers/net/ethernet/sfc/rx.c
patch
|
blob
|
history
diff --git
a/drivers/net/ethernet/sfc/rx.c
b/drivers/net/ethernet/sfc/rx.c
index a7dfe36cabf4b7855291237c0ed5ec5caec28519..b915e09b869140901e72b9096f908817fb70ea6c 100644
(file)
--- 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))