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

2017-10-04 Thread David Miller
From: Eric Dumazet Date: Wed, 04 Oct 2017 10:48:35 -0700 > From: Eric Dumazet > > 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/s

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

2017-10-04 Thread Eric Dumazet
From: Eric Dumazet 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 textdata bss dec hex fi