sctp: apply rhashtable api to sctp procfs
commit39f66a7dce3213fb0a0c6256929c816df27c7548
authorXin Long <lucien.xin@gmail.com>
Wed, 30 Dec 2015 15:50:48 +0000 (30 23:50 +0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 5 Jan 2016 17:24:01 +0000 (5 12:24 -0500)
treeee7d1478c196af52a7accebb80236db26c94d88a
parent4f0087812648b7611157ae22954acfaed820d24e
sctp: apply rhashtable api to sctp procfs

Traversal the transport rhashtable, get the association only once through
the condition assoc->peer.primary_path != transport.

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/proc.c