mptcp: add msk interations helper
authorPaolo Abeni <pabeni@redhat.com>
Thu, 9 Jul 2020 13:12:40 +0000 (15:12 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 9 Jul 2020 19:38:41 +0000 (12:38 -0700)
commit96d890daad05a3e47e914451f07b79275b325c95
tree9048ed7daae2e3e3064bf4582029d325e5987942
parent3f935c75eb52dd968351dba824adf466fb9c9429
mptcp: add msk interations helper

mptcp_token_iter_next() allow traversing all the MPTCP
sockets inside the token container belonging to the given
network namespace with a quite standard iterator semantic.

That will be used by the next patch, but keep the API generic,
as we plan to use this later for PM's sake.

Additionally export mptcp_token_get_sock(), as it also
will be used by the diag module.

Reviewed-by: Mat Martineau <mathew.j.martineau@linux.intel.com>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/mptcp/protocol.h
net/mptcp/token.c