Skip to content

Commit

Permalink
sfc: Enable RX checksum offload for packets not handled by GRO
Browse files Browse the repository at this point in the history
Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
  • Loading branch information
Jon Cooper authored and Ben Hutchings committed Jun 24, 2013
1 parent b28405b commit c99dffc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/net/ethernet/sfc/rx.c
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit c99dffc

Please sign in to comment.