sctp: Make the association hashtable handle multiple network namespaces
authorEric W. Biederman <ebiederm@xmission.com>
Mon, 6 Aug 2012 08:41:13 +0000 (08:41 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 15 Aug 2012 05:44:12 +0000 (22:44 -0700)
commit4110cc255ddec59c79fba4d71cdd948d0a382140
tree53fc9c7cd7e41f547d94469f9268fde2a5404616
parent4cdadcbcb64bdf3ae8bdf3ef5bb2b91c85444cfa
sctp: Make the association hashtable handle multiple network namespaces

- Use struct net in the hash calculation
- Use sock_net(association.base.sk) in the association lookups.
- On receive calculate the network namespace from skb->dev.
- Pass struct net from receive down to the functions that actually
  do the association lookup.

Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
Acked-by: Vlad Yasevich <vyasevich@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/sctp/sctp.h
include/net/sctp/structs.h
net/sctp/associola.c
net/sctp/endpointola.c
net/sctp/input.c
net/sctp/ipv6.c