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)
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>

No differences found