net: Increase NET_SKB_PAD to 64 bytes
authorEric Dumazet <eric.dumazet@gmail.com>
Fri, 7 May 2010 04:58:51 +0000 (21:58 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 7 May 2010 04:58:51 +0000 (21:58 -0700)
commit18e8c134f4e984e6639e62846345192816f06d5c
tree81bb46de14f020424716bd41915e831b07ce00c6
parentd6bc0149d8f2300bffa03ea6fea3ca39744277a6
net: Increase NET_SKB_PAD to 64 bytes

eth_type_trans() & get_rps_cpus() currently need two 64bytes cache
lines in packet to compute rxhash.

Increasing NET_SKB_PAD from 32 to 64 reduces the need to one cache
line only, and makes RPS faster.

NET_IP_ALIGN(2) + ethernet_header(14) + IP_header(20/40) + ports(8)

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