]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit0543d879b5fd0692e43a206aa20bcb88b46702f6
tree9048ed7daae2e3e3064bf4582029d325e5987942
parent85d75fd89e144a8bd5068c621a008e0df2d55be4
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