sctp: Make the endpoint hashtable handle multiple network namespaces
authorEric W. Biederman <ebiederm@xmission.com>
Mon, 6 Aug 2012 08:40:21 +0000 (08:40 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 15 Aug 2012 05:44:12 +0000 (22:44 -0700)
commit4cdadcbcb64bdf3ae8bdf3ef5bb2b91c85444cfa
treefc6fd317dd6e128f176101c5843f58ed8ab86c9c
parentf1f4376307ca45558eb22487022aefceed7385e8
sctp: Make the endpoint hashtable handle multiple network namespaces

- Use struct net in the hash calculation
- Use sock_net(endpoint.base.sk) in the endpoint lookups.
- On receive calculate the network namespace from skb->dev.

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/endpointola.c
net/sctp/input.c