[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20180719.025423.1409264262161292298.davem@davemloft.net>
Date: Thu, 19 Jul 2018 02:54:23 +0900 (KST)
From: David Miller <davem@...emloft.net>
To: claudiu.beznea@...rochip.com
Cc: nicolas.ferre@...rochip.com, netdev@...r.kernel.org,
jennifer.dahm@...com, nathan.sullivan@...com
Subject: Re: [RFC PATCH 3/3] net: macb: add support for padding and fcs
computation
From: Claudiu Beznea <claudiu.beznea@...rochip.com>
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_tailroom(*skb);
> + bool cloned = skb_cloned(*skb) || skb_header_cloned(*skb);
> + u32 fcs;
Please keep local variable ordered from longest to shortest line
(ie. reverse christmas tree format).
Thank you.
Powered by blists - more mailing lists