net: Make RFS socket operations not be inet specific.

Idea from Eric Dumazet.

As for placement inside of struct sock, I tried to choose a place
that otherwise has a 32-bit hole on 64-bit systems.

Signed-off-by: David S. Miller <davem@davemloft.net>
Acked-by: Eric Dumazet <eric.dumazet@gmail.com>
This commit is contained in:
David S. Miller 2010-04-27 15:05:31 -07:00
parent c4ee6a5348
commit c58dc01bab
5 changed files with 45 additions and 44 deletions

View file

@ -1672,7 +1672,7 @@ process:
skb->dev = NULL;
inet_rps_save_rxhash(sk, skb->rxhash);
sock_rps_save_rxhash(sk, skb->rxhash);
bh_lock_sock_nested(sk);
ret = 0;