Thread (10 messages) 10 messages, 4 authors, 2017-06-15

Re: [PATCH net-next 00/11] skb_put_zero() used to optimize code

flat view

From: David Miller <davem@davemloft.net>
Date: 2017-06-14 20:15:26

From: Johannes Berg <johannes@sipsolutions.net>
Date: Wed, 14 Jun 2017 22:11:54 +0200
On Wed, 2017-06-14 at 15:38 -0400, David Miller wrote:
quoted
What do you think about Stephen Hemminger's feedback to make
skb_put_zero() return "void *".  It will avoid a lot of casts and
make the conversions look nicer.
I think it's a good idea. I can send a patch, and remove some casts
where they exist - I guess we could also do it even for skb_put()
eventually.
quoted
I'll also defer on this patch series until we have the spatch thing
which can catch all of them.
I think I have something that covers most cases, will send out an RFC
in a minute (since I'm not sure I was able to build it all yet).
All sounds great.
Note that some of the cases like in ipv6/ndisc.c certainly can't be
done automatically, they look correct but are more complicated because
there's not just a single big memset(), but they're doing it piece by
piece (fill some bytes, clear some others, etc.) Might be worth
checking which aren't covered by the spatch.
Understood.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help