MPTCP Linux Development
 help / color / mirror / Atom feed
From: Paolo Abeni <pabeni@redhat.com>
To: mptcp@lists.linux.dev
Subject: [PATCH mptcp-next 0/7] mptcp: implement TCP_NOTSENT_LOWAT support
Date: Mon, 22 Jan 2024 16:08:37 +0100	[thread overview]
Message-ID: <cover.1705836321.git.pabeni@redhat.com> (raw)

Patch 6/7 does the magic, all the others are minor cleanup and fix of
buglet exposed by such feature. I'll push a paired pktdrill test.

Note that this relies on the existing accounting for snd_nxt. As I
stated such accounting is not 110% accurate as it tracks the most recent
sequence number queued to any subflow, and not the actual sequence
number sent on the wire.

I experimented a lot trying to implement the latter and in the end it
proved to be both "too complex" and "not necessary".

The complexity raises from the need for additional lock and a lot of
refactory to introduce such protection without adding significant
overhead. Additionally, snd_nxt is currenly used and exposed with the
current semantic both eBPF and the internal packet scheduling.
Introducing a different tracking will still require us to keep the old
one.

More interesting, a more accurate tracking could be not strictly
necessary: as the MPTCP protocol enqueues data to the subflows only up
the available send window, any enqueue data is sent on the wire
instantly, without any blocking operation short of a drop in the tx path
at the nft or TC layer.

The individual patches changelog carry the gory details.

Paolo Abeni (7):
  mptcp: push ad DSS boundaries
  mptcp: fix snd_wnd initialization for passive socket
  mptcp: fix potential wake-up event loss
  mptcp: cleanup writer wake-up
  mptcp: avoid some duplicate code in socket option handling
  mptcp: implement TCP_NOTSENT_LOWAT support.
  mptcp: cleanup SOL_TCP handling

 net/mptcp/protocol.c | 51 ++++++++++++++++++++-----------
 net/mptcp/protocol.h | 57 ++++++++++++++++++++++++++++-------
 net/mptcp/sockopt.c  | 71 ++++++++++++++++++++------------------------
 3 files changed, 111 insertions(+), 68 deletions(-)

-- 
2.43.0


             reply	other threads:[~2024-01-22 15:08 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-01-22 15:08 Paolo Abeni [this message]
2024-01-22 15:08 ` [PATCH mptcp-next 1/7] mptcp: push ad DSS boundaries Paolo Abeni
2024-02-08  1:55   ` Mat Martineau
2024-01-22 15:08 ` [PATCH mptcp-next 2/7] mptcp: fix snd_wnd initialization for passive socket Paolo Abeni
2024-01-22 15:08 ` [PATCH mptcp-next 3/7] mptcp: fix potential wake-up event loss Paolo Abeni
2024-02-08  1:57   ` Mat Martineau
2024-02-12 11:09     ` Paolo Abeni
2024-01-22 15:08 ` [PATCH mptcp-next 4/7] mptcp: cleanup writer wake-up Paolo Abeni
2024-01-22 15:08 ` [PATCH mptcp-next 5/7] mptcp: avoid some duplicate code in socket option handling Paolo Abeni
2024-01-22 15:08 ` [PATCH mptcp-next 6/7] mptcp: implement TCP_NOTSENT_LOWAT support Paolo Abeni
2024-02-08  2:12   ` Mat Martineau
2024-02-12 11:27     ` Paolo Abeni
2024-01-22 15:08 ` [PATCH mptcp-next 7/7] mptcp: cleanup SOL_TCP handling Paolo Abeni

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=cover.1705836321.git.pabeni@redhat.com \
    --to=pabeni@redhat.com \
    --cc=mptcp@lists.linux.dev \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox