]> git.baikalelectronics.ru Git - kernel.git/commit
net: skb_frag_t can be smaller on small arches
authorEric Dumazet <eric.dumazet@gmail.com>
Thu, 23 Sep 2010 05:06:54 +0000 (05:06 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 27 Sep 2010 01:31:13 +0000 (18:31 -0700)
commit320631dc991fbb5bf7240a7ec163701e0dd1e128
treea256abb0ecbfb4c1909563274ee9e7d0138b1b16
parent8abe97918d94324360a06e1f61cae1fcd9c07bc6
net: skb_frag_t can be smaller on small arches

On 32bit arches, if PAGE_SIZE is smaller than 65536, we can use 16bit
offset and size fields. This patch saves 72 bytes per skb on i386, or
128 bytes after rounding.

Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/skbuff.h