]> git.baikalelectronics.ru Git - kernel.git/commit
sctp: apply rhashtable api to send/recv path
authorXin Long <lucien.xin@gmail.com>
Wed, 30 Dec 2015 15:50:47 +0000 (23:50 +0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 5 Jan 2016 17:24:01 +0000 (12:24 -0500)
commitb588718c87537ed020a58ad2a70b4db87a0300e4
tree51dfe36a54bdf7161e188c3818d6d046d4d66c08
parente53d53c8d760bc27a19fb0dc375a6e9bd66568dd
sctp: apply rhashtable api to send/recv path

apply lookup apis to two functions, for __sctp_endpoint_lookup_assoc
and __sctp_lookup_association, it's invoked in the protection of sock
lock, it will be safe, but sctp_lookup_association need to call
rcu_read_lock() and to detect the t->dead to protect it.

Signed-off-by: Xin Long <lucien.xin@gmail.com>
Signed-off-by: Marcelo Ricardo Leitner <marcelo.leitner@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sctp/associola.c
net/sctp/endpointola.c
net/sctp/input.c
net/sctp/protocol.c