[PATCH 4/6] net/macb: add RX checksum offload feature
Eric Dumazet
eric.dumazet at gmail.com
Fri Jul 18 08:36:24 PDT 2014
On Fri, 2014-07-18 at 16:21 +0200, Cyrille Pitchen wrote:
> Signed-off-by: Cyrille Pitchen <cyrille.pitchen at atmel.com>
> ---
> drivers/net/ethernet/cadence/macb.c | 29 ++++++++++++++++++++++++++++-
> drivers/net/ethernet/cadence/macb.h | 2 ++
> 2 files changed, 30 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/net/ethernet/cadence/macb.c b/drivers/net/ethernet/cadence/macb.c
> index 9bdcd1b..6acd6e2 100644
> --- a/drivers/net/ethernet/cadence/macb.c
> +++ b/drivers/net/ethernet/cadence/macb.c
> @@ -766,6 +766,8 @@ static int gem_rx(struct macb *bp, int budget)
>
> skb->protocol = eth_type_trans(skb, bp->dev);
> skb_checksum_none_assert(skb);
> + if (bp->dev->features & NETIF_F_RXCSUM)
> + skb->ip_summed = CHECKSUM_UNNECESSARY;
>
Really ?
If this is what you meant, this deserves a big and fat comment.
More information about the linux-arm-kernel
mailing list