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>
Showing
- include/net/sctp/sctp.h 3 additions, 3 deletionsinclude/net/sctp/sctp.h
- include/net/sctp/structs.h 2 additions, 1 deletioninclude/net/sctp/structs.h
- net/sctp/associola.c 3 additions, 1 deletionnet/sctp/associola.c
- net/sctp/endpointola.c 4 additions, 2 deletionsnet/sctp/endpointola.c
- net/sctp/input.c 40 additions, 24 deletionsnet/sctp/input.c
- net/sctp/ipv6.c 2 additions, 1 deletionnet/sctp/ipv6.c
Loading
Please register or sign in to comment