diff options
author | Geliang Tang <geliangtang@gmail.com> | 2021-02-13 03:52:02 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-02-16 02:09:14 +0300 |
commit | 0caf3ada24e4623d4b2c938a5b6d2d09e4ccee18 (patch) | |
tree | 048784db9767372a5ba29ac677e7bfa8e74ee3ef /net/mptcp/pm_netlink.c | |
parent | 7f76963b692dd499e697d86e26eda8ca24b45c05 (diff) | |
download | linux-0caf3ada24e4623d4b2c938a5b6d2d09e4ccee18.tar.xz |
mptcp: add local addr info in mptcp_info
Add mptcpi_local_addr_used and mptcpi_local_addr_max in struct mptcp_info.
Signed-off-by: Geliang Tang <geliangtang@gmail.com>
Signed-off-by: Mat Martineau <mathew.j.martineau@linux.intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/mptcp/pm_netlink.c')
-rw-r--r-- | net/mptcp/pm_netlink.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/net/mptcp/pm_netlink.c b/net/mptcp/pm_netlink.c index 229fd1af2e29..8e8e35fa4002 100644 --- a/net/mptcp/pm_netlink.c +++ b/net/mptcp/pm_netlink.c @@ -228,13 +228,14 @@ unsigned int mptcp_pm_get_subflows_max(struct mptcp_sock *msk) } EXPORT_SYMBOL_GPL(mptcp_pm_get_subflows_max); -static unsigned int mptcp_pm_get_local_addr_max(struct mptcp_sock *msk) +unsigned int mptcp_pm_get_local_addr_max(struct mptcp_sock *msk) { struct pm_nl_pernet *pernet; pernet = net_generic(sock_net((struct sock *)msk), pm_nl_pernet_id); return READ_ONCE(pernet->local_addr_max); } +EXPORT_SYMBOL_GPL(mptcp_pm_get_local_addr_max); static void check_work_pending(struct mptcp_sock *msk) { |