[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20201017223120.em6bp245oyfuzepk@skbuf>
Date: Sat, 17 Oct 2020 22:31:20 +0000
From: Vladimir Oltean <vladimir.oltean@....com>
To: "netdev@...r.kernel.org" <netdev@...r.kernel.org>
CC: "andrew@...n.ch" <andrew@...n.ch>,
"f.fainelli@...il.com" <f.fainelli@...il.com>,
"vivien.didelot@...il.com" <vivien.didelot@...il.com>,
"kuba@...nel.org" <kuba@...nel.org>,
Christian Eggers <ceggers@...i.de>,
Kurt Kanzenbach <kurt@...utronix.de>
Subject: Re: [RFC PATCH 02/13] net: dsa: implement a central TX reallocation
procedure
On Sun, Oct 18, 2020 at 01:01:04AM +0300, Vladimir Oltean wrote:
> > + return pskb_expand_head(skb, headroom, tailroom, GFP_ATOMIC);
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> err = pskb_expand_head(skb, headroom, tailroom, GFP_ATOMIC);
> if (err < 0 || !padlen)
> return err;
>
> return __skb_put_padto(skb, padlen, false);
Oops, another one here. Should be:
return __skb_put_padto(skb, skb->len + padlen, false);
> > +}
Powered by blists - more mailing lists