[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20170513130326.GA14058@lunn.ch>
Date: Sat, 13 May 2017 15:03:26 +0200
From: Andrew Lunn <andrew@...n.ch>
To: Woojung.Huh@...rochip.com
Cc: f.fainelli@...il.com, vivien.didelot@...oirfairelinux.com,
sergei.shtylyov@...entembedded.com, netdev@...r.kernel.org,
davem@...emloft.net, UNGLinuxDriver@...rochip.com
Subject: Re: [PATCH v2 net-next 1/5] dsa: add support for Microchip KSZ tail
tagging
On Fri, May 12, 2017 at 08:07:54PM +0000, Woojung.Huh@...rochip.com wrote:
> + padlen = (skb->len >= ETH_ZLEN) ? 0 : ETH_ZLEN - skb->len;
> +
> + if (skb_tailroom(skb) >= padlen + KSZ_INGRESS_TAG_LEN) {
> + nskb = skb;
> + } else {
> + nskb = alloc_skb(NET_IP_ALIGN + skb->len +
> + padlen + KSZ_INGRESS_TAG_LEN, GFP_ATOMIC);
Hi Woojung
Thanks for reusing the existing skb when possible. This should help
with performance.
Reviewed-by: Andrew Lunn <andrew@...n.ch>
Andrew
Powered by blists - more mailing lists