Thread (6 messages) flat view 6 messages, 2 authors, 2018-07-19

Re: [RFC PATCH 3/3] net: macb: add support for padding and fcs computation

From: Claudiu Beznea <hidden>
Date: 2018-07-19 07:45:06


On 18.07.2018 20:54, David Miller wrote:
From: Claudiu Beznea <redacted>
Date: Wed, 18 Jul 2018 15:58:09 +0300
quoted
 
+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).
OK! Thank you!
Thank you.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help