Skip to content

reflect mptcp_pm_add_addr_signal

Geliang Tang mptcp 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 3 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4mptcp: drop port parameter of mptcp_pm_add_addr_signalnet/mptcp/options.c net/mptcp/pm.c net/mptcp/protocol.h+7 -72 replies
2/4mptcp: add echo bit in mptcp_addr_infoinclude/net/mptcp.h net/mptcp/options.c net/mptcp/protocol.h+11 -91 reply
3/4mptcp: drop echo parameter of mptcp_pm_add_addr_signalnet/mptcp/options.c net/mptcp/pm.c net/mptcp/protocol.h+12 -120 replies
4/4mptcp: drop echo parameter of mptcp_pm_announce_addrnet/mptcp/pm.c net/mptcp/pm_netlink.c net/mptcp/protocol.h+10 -120 replies

Reviews trailers per patch

1 of 4 patches has a Reviewed-by or Acked-by.

PatchMat Martineau
1/4R-b
2/4
3/4
4/4

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH mptcp-next 0/4] reflect mptcp_pm_add_addr_signal

mptcp_pm_add_addr_signal() has too many parameters right now. This issue was introduced by me and I promised to fix it last year:

https://patchwork.kernel.org/project/mptcp/patch/f0920ba1126ff81aa1acbff47e805e5573c64abc.1626158123.git.geliangtang@gmail.com/

This patch set reflected this function and dropped the port and echo parameters.

As defined in $3.4.1:
1 2 3
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1

  +---------------+---------------+-------+-------+---------------+
  |     Kind      |     Length    |Subtype|(rsv)|E|  Address ID   |
  +---------------+---------------+-------+-------+---------------+
  |           Address (IPv4: 4 octets / IPv6: 16 octets)          |
  +-------------------------------+-------------------------------+
  |   Port (2 octets, optional)   |                               |
  +-------------------------------+                               |
  |                Truncated HMAC (8 octets, if E=0)              |
  |                               +-------------------------------+
  |                               |
  +-------------------------------+

The echo bit is one of the important properties of a MPTCP address. It makes sense to put it into struct mptcp_addr_info with others properties like the address family, the id number and the port number too. So patch 2 added the echo bit in struct mptcp_addr_info. With this change, we can drop the echo parameter of mptcp_pm_announce_addr too, or even drop the addr_signal status MPTCP_ADD_ADDR_ECHO later (not finish yet).

Geliang Tang (4):
mptcp: drop port parameter of mptcp_pm_add_addr_signal
mptcp: add echo bit in mptcp_addr_info
mptcp: drop echo parameter of mptcp_pm_add_addr_signal
mptcp: drop echo parameter of mptcp_pm_announce_addr

 include/net/mptcp.h    |  3 ++-
 net/mptcp/options.c    | 26 +++++++++++++-------------
 net/mptcp/pm.c         | 29 +++++++++++++++--------------
 net/mptcp/pm_netlink.c |  6 +++---
 net/mptcp/protocol.h   |  8 +++-----
 5 files changed, 36 insertions(+), 36 deletions(-)
Signature · 1 line
2.34.1