Thread (2 messages) flat view 2 messages, 2 authors, 2017-10-04

Re: [PATCH net-next] net: cache skb_shinfo() in skb_try_coalesce()

From: David Miller <davem@davemloft.net>
Date: 2017-10-04 18:34:36

From: Eric Dumazet <redacted>
Date: Wed, 04 Oct 2017 10:48:35 -0700
From: Eric Dumazet <edumazet@google.com>

Compiler does not really know that skb_shinfo(to|from) are constants
in skb_try_coalesce(), lets cache their values to shrink code.

We might even take care of skb_zcopy() calls later.

$ size net/core/skbuff.o.before net/core/skbuff.o
   text	   data	    bss	    dec	    hex	filename
  40727	   1298	      0	  42025	   a429	net/core/skbuff.o.before
  40631	   1298	      0	  41929	   a3c9	net/core/skbuff.o


Signed-off-by: Eric Dumazet <edumazet@google.com>
Applied.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help