[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1497457773.9377.2.camel@sipsolutions.net>
Date: Wed, 14 Jun 2017 18:29:33 +0200
From: Johannes Berg <johannes@...solutions.net>
To: cugyly@....com, netdev@...r.kernel.org
Cc: "David S . Miller" <davem@...emloft.net>,
yuan linyu <Linyu.Yuan@...atel-sbell.com.cn>
Subject: Re: [PATCH net-next 00/11] skb_put_zero() used to optimize code
On Wed, 2017-06-14 at 23:00 +0800, yuan linyu wrote:
> sorry, I do them by hand.
oh, ok.
This seems to work:
@@
identifier p;
expression len;
expression skb;
type t;
@@
-p = (t)skb_put(skb, len);
-memset(p, 0, len);
+p = (t)skb_put_zero(skb, len);
johannes
Powered by blists - more mailing lists