diff options
author | Kishen Maloor <kishen.maloor@intel.com> | 2022-05-03 19:38:49 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2022-05-04 10:49:31 +0100 |
commit | 4638de5aefe56366726e5107a9da13ce5c84a1b7 (patch) | |
tree | b2b1d98baa25be0b299aeed76932598b2b9a9e0f /net/mptcp/Makefile | |
parent | f43f0cd2d9b07caf38d744701b0b54d4244da8cc (diff) | |
download | linux-rpi-4638de5aefe56366726e5107a9da13ce5c84a1b7.tar.gz linux-rpi-4638de5aefe56366726e5107a9da13ce5c84a1b7.tar.bz2 linux-rpi-4638de5aefe56366726e5107a9da13ce5c84a1b7.zip |
mptcp: handle local addrs announced by userspace PMs
This change adds an internal function to store/retrieve local
addrs announced by userspace PM implementations to/from its kernel
context. The function addresses the requirements of three scenarios:
1) ADD_ADDR announcements (which require that a local id be
provided), 2) retrieving the local id associated with an address,
and also where one may need to be assigned, and 3) reissuance of
ADD_ADDRs when there's a successful match of addr/id.
The list of all stored local addr entries is held under the
MPTCP sock structure. Memory for these entries is allocated from
the sock option buffer, so the list of addrs is bounded by optmem_max.
The list if not released via REMOVE_ADDR signals is ultimately
freed when the sock is destructed.
Acked-by: Paolo Abeni <pabeni@redhat.com>
Signed-off-by: Kishen Maloor <kishen.maloor@intel.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/Makefile')
-rw-r--r-- | net/mptcp/Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/mptcp/Makefile b/net/mptcp/Makefile index e54daceac58b..cb7f53f6ab22 100644 --- a/net/mptcp/Makefile +++ b/net/mptcp/Makefile @@ -2,7 +2,7 @@ obj-$(CONFIG_MPTCP) += mptcp.o mptcp-y := protocol.o subflow.o options.o token.o crypto.o ctrl.o pm.o diag.o \ - mib.o pm_netlink.o sockopt.o + mib.o pm_netlink.o sockopt.o pm_userspace.o obj-$(CONFIG_SYN_COOKIES) += syncookies.o obj-$(CONFIG_INET_MPTCP_DIAG) += mptcp_diag.o |