On 18.07.2018 20:54, David Miller wrote:
> From: Claudiu Beznea
> Date: Wed, 18 Jul 2018 15:58:09 +0300
>
>>
>> +static int macb_pad_and_fcs(struct sk_buff **skb, struct net_device *ndev)
>> +{
>> +struct sk_buff *nskb;
>> +int padlen = ETH_ZLEN - (*skb)->len;
>> +int headroom =
From: Claudiu Beznea
Date: Wed, 18 Jul 2018 15:58:09 +0300
>
> +static int macb_pad_and_fcs(struct sk_buff **skb, struct net_device *ndev)
> +{
> + struct sk_buff *nskb;
> + int padlen = ETH_ZLEN - (*skb)->len;
> + int headroom = skb_headroom(*skb);
> + int tailroom = skb_tailro
For packets with computed IP/TCP/UDP checksum there is no need to tell
hardware to recompute it. For such kind of packets hardware expects
the packet to be at least 64 bytes and FCS to be computed.
Signed-off-by: Claudiu Beznea
---
drivers/net/ethernet/cadence/macb_main.c | 70 ++