Skip to content

mptcp: per-event MIB counters for MPTCP_RST_EMPTCP

Shardul Bankar mptcp 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest2 patches 2 repliesIn review
  2. v22 patches 4 repliesSuperseded

Changes in v4 from the cover letter

patch 1: add MPJoinNoIdFound for an MP_JOIN that carries a valid token
but for which the path manager returns no local id; it reaches the same MPTCP_RST_EMPTCP that MPJoinNoTokenFound only counts the no-token half of (Matt).
patch 2: move the MPJoin* checks into chk_join_nr() with fixed
namespaces, leaving only MD5SigReset and DssReset in chk_rst_nr() (Matt); rename the env vars (join_* / rst_md5sig / rst_dss); the new test uses mptcp_lib_wait_local_port_listen() and asserts with chk_join_nr().
v3: https://lore.kernel.org/all/[email protected]/
v2: https://lore.kernel.org/all/[email protected]/
v1: https://lore.kernel.org/all/[email protected]/

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2mptcp: add per-event MIB counters for MPTCP_RST_EMPTCP resetsnet/mptcp/mib.c net/mptcp/mib.h net/mptcp/protocol.c +1 more+25 -00 replies
2/2selftests: mptcp: check per-event MPTCP_RST_EMPTCP counterstools/testing/selftests/net/mptcp/mptcp_join.sh+93 -00 replies

Reviews trailers per patch

None of the 2 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchMatthieu Baerts (NGI0)
SeriesR-b
1/2
2/2

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

Read the v4 thread

Cover letter [PATCH v4 0/2] mptcp: per-event MIB counters for MPTCP_RST_EMPTCP

MPTCP_RST_EMPTCP (reset reason 1) is currently used as a catch-all for several distinct conditions across subflow setup, authentication, and data-path validation. This series adds per-event MIB counters at each of those use sites and validates them from mptcp_join.sh.

Patch 1 adds seven counters (MD5SigReset, MPJoinSynAckNoMPJoin, MPJoinAckNoMPJoin, MPJoinAckNoCtx, MPJoinNoIdFound, DssReset, MPJoinNotEstablished) and increments them in mib.c/mib.h, subflow.c and protocol.c.

Patch 2 adds named env-var expectations for each counter: the JOIN-related ones in chk_join_nr() and the two reset ones in chk_rst_nr(), both on fixed namespaces. It also adds one test inside signal_address_tests that triggers MPJoinSynAckNoMPJoin from the existing ns1/ns2 setup.

v4 (this version):
patch 1: add MPJoinNoIdFound for an MP_JOIN that carries a valid token
but for which the path manager returns no local id; it reaches the same MPTCP_RST_EMPTCP that MPJoinNoTokenFound only counts the no-token half of (Matt).
patch 2: move the MPJoin* checks into chk_join_nr() with fixed
namespaces, leaving only MD5SigReset and DssReset in chk_rst_nr() (Matt); rename the env vars (join_* / rst_md5sig / rst_dss); the new test uses mptcp_lib_wait_local_port_listen() and asserts with chk_join_nr().
v3: https://lore.kernel.org/all/[email protected]/
v2: https://lore.kernel.org/all/[email protected]/
v1: https://lore.kernel.org/all/[email protected]/

Shardul Bankar (2):
mptcp: add per-event MIB counters for MPTCP_RST_EMPTCP resets
selftests: mptcp: check per-event MPTCP_RST_EMPTCP counters

 net/mptcp/mib.c                               |  7 ++
 net/mptcp/mib.h                               |  7 ++
 net/mptcp/protocol.c                          |  1 +
 net/mptcp/subflow.c                           | 10 ++
 .../testing/selftests/net/mptcp/mptcp_join.sh | 93 +++++++++++++++++++
 5 files changed, 118 insertions(+)
Signature · 1 line
2.34.1