All of lore.kernel.org
 help / color / mirror / Atom feed
* [RFC mptcp-next] mptcp: TX timestamping at the msk level
@ 2026-09-23  3:27 David CARLIER
  2026-09-30  4:09 ` Geliang Tang
  0 siblings, 1 reply; 3+ messages in thread
From: David CARLIER @ 2026-09-23  3:27 UTC (permalink / raw)
  To: MPTCP Linux; +Cc: Matthieu Baerts, Geliang Tang, Mat Martineau, Paolo Abeni

Hi all,

After Paolo's comment on the MSG_ERRQUEUE series [1], I started looking
at msk-level TX timestamping. As far as I can see nobody is on it, so
I'd like to check the direction with you before writing code.

Today nothing arms tx_flags on the skbs built by mptcp_sendmsg_frag(),
so MPTCP data never gets a TX report. Roughly what I have in mind:

- keep the tsflags and the key (data seq of the last byte) on the
  dfrag, since the actual push happens after sendmsg returns;
- arm the subflow skb covering that byte, keeping its tskey in
  subflow seq space (tcp_fragment_tstamp() and tcp_ack_tstamp()
  rely on that);
- when forwarding SCHED/SND reports to the msk, rewrite ee_data to
  the msk key. I'm not sure yet how to do the mapping. The easiest
  option I see is a small per-subflow list of (subflow seq, data seq)
  pairs for armed bytes;
- emit ACK reports from __mptcp_clean_una() on DATA_ACK rather than
  forwarding subflow ACKs;
- seed the msk sk_tskey for OPT_ID the way TCP does.

The one I went back and forth on is reinjection: the same bytes can
leave on several subflows. Plain TCP already reports again on
retransmit, so reporting each transmission seems acceptable to me, but
I'd like your opinion.

Geliang, your MSG_ZEROCOPY series [2] touches the same spots (dfrag
layout, coalescing in mptcp_sendmsg_frag()). I'm happy to build on t
of it. Do you know if it's still moving?

Cheers

[1] https://lore.kernel.org/mptcp/d6cdbc83-86a6-4c2a-ad99-29cdb83566
[2] https://lore.kernel.org/mptcp/32bac661bcae143f7e63905dfb781c98e95cdde5.1784260668.git.tanggeliang@kylinos.cn/

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-09-30  5:26 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-09-23  3:27 [RFC mptcp-next] mptcp: TX timestamping at the msk level David CARLIER
2026-09-30  4:09 ` Geliang Tang
2026-09-30  5:26   ` David CARLIER

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.