kernel-hacking-2024-linux-s.../net/sctp
Eric W. Biederman f1f4376307 sctp: Make the port hash table use struct net in it's key.
- Add struct net into the port hash table hash calculation
- Add struct net inot the struct sctp_bind_bucket so there
  is a memory of which network namespace a port is allocated in.
  No need for a ref count because sctp_bind_bucket only exists
  when there are sockets in the hash table and sockets can not
  change their network namspace, and sockets already ref count
  their network namespace.
- Add struct net into the key comparison when we are testing
  to see if we have found the port hash table entry we are
  looking for.

With these changes lookups in the port hash table becomes
safe to use in multiple network namespaces.

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>
2012-08-14 22:44:12 -07:00
..
associola.c sctp: Implement quick failover draft from tsvwg 2012-07-22 12:13:46 -07:00
auth.c
bind_addr.c
chunk.c
command.c
debug.c
endpointola.c
input.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net 2012-07-19 11:17:30 -07:00
inqueue.c
ipv6.c ipv6: Add redirect support to all protocol icmp error handlers. 2012-07-12 00:25:15 -07:00
Kconfig
Makefile
objcnt.c
output.c sctp: Adjust PMTU updates to accomodate route invalidation. 2012-07-16 03:57:14 -07:00
outqueue.c sctp: Implement quick failover draft from tsvwg 2012-07-22 12:13:46 -07:00
primitive.c
probe.c
proc.c
protocol.c ipv4: Prepare for change of rt->rt_iif encoding. 2012-07-23 16:36:26 -07:00
sm_make_chunk.c sctp: fix sparse warning for sctp_init_cause_fixed 2012-07-16 23:23:52 -07:00
sm_sideeffect.c sctp: Implement quick failover draft from tsvwg 2012-07-22 12:13:46 -07:00
sm_statefuns.c
sm_statetable.c
socket.c sctp: Make the port hash table use struct net in it's key. 2012-08-14 22:44:12 -07:00
ssnmap.c
sysctl.c sctp: Implement quick failover draft from tsvwg 2012-07-22 12:13:46 -07:00
transport.c Merge branch 'kill_rtcache' 2012-07-22 17:04:15 -07:00
tsnmap.c
ulpevent.c netvm: prevent a stream-specific deadlock 2012-07-31 18:42:47 -07:00
ulpqueue.c