Netdev List
 help / color / mirror / Atom feed
* [PATCH net 0/1] tls: device: push pending open record on splice EOF
@ 2026-07-09 22:44 Rishikesh Jethwani
  2026-07-09 22:44 ` [PATCH 1/1] " Rishikesh Jethwani
  0 siblings, 1 reply; 2+ messages in thread
From: Rishikesh Jethwani @ 2026-07-09 22:44 UTC (permalink / raw)
  To: netdev
  Cc: john.fastabend, kuba, sd, davem, pabeni, edumazet, leon,
	nils.juenemann, Rishikesh Jethwani

Hi all,

  A kTLS socket with device (HW) TX offload can leave its final
  record unsent when sendfile(2) is called with count > bytes-
  remaining in the file and the connection is closed without a
  trailing write. fs/splice.c fires ->splice_eof on the socket in
  this case, and tls_device_splice_eof() pre-patch only pushed
  partially-sent records - a fully-assembled but still-open record
  stayed pending until the next write, which an abrupt close()
  never provides. TLS_SW is unaffected; tls_sw_splice_eof() already
  handles pending open records.

  Report and discussion:
  https://lore.kernel.org/netdev/CAMPsyauZ+jzG9AysO0FWv6ZY0kvCUpjX_U7o=oOjCuOQ87BCgg@mail.gmail.com/

Rishikesh

Rishikesh Jethwani (1):
  tls: device: push pending open record on splice EOF

 net/tls/tls_device.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

-- 
2.25.1


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

end of thread, other threads:[~2026-07-09 22:45 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-07-09 22:44 [PATCH net 0/1] tls: device: push pending open record on splice EOF Rishikesh Jethwani
2026-07-09 22:44 ` [PATCH 1/1] " Rishikesh Jethwani

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox