]> bbs.cooldavid.org Git - net-next-2.6.git/commit - net/core/dev.c
rps: consistent rxhash
authorEric Dumazet <eric.dumazet@gmail.com>
Mon, 19 Apr 2010 21:56:38 +0000 (21:56 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 20 Apr 2010 08:18:06 +0000 (01:18 -0700)
commitb249dcb82d327e419d3cb45773b146ebb5faf419
tree3424eac7e208c03a49ad182685f1ba3c836628b8
parente36fa2f7e92f25aab2e3d787dcfe3590817f19d3
rps: consistent rxhash

In case we compute a software skb->rxhash, we can generate a consistent
hash : Its value will be the same in both flow directions.

This helps some workloads, like conntracking, since the same state needs
to be accessed in both directions.

tbench + RFS + this patch gives better results than tbench with default
kernel configuration (no RPS, no RFS)

Also fixed some sparse warnings.

Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/dev.c