netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCHv6 0/5] net/tls: fixes for NVMe-over-TLS
@ 2023-07-03  9:04 Hannes Reinecke
  2023-07-03  9:04 ` [PATCH 1/5] net/tls: handle MSG_EOR for tls_sw TX flow Hannes Reinecke
                   ` (5 more replies)
  0 siblings, 6 replies; 24+ messages in thread
From: Hannes Reinecke @ 2023-07-03  9:04 UTC (permalink / raw)
  To: Sagi Grimberg
  Cc: Keith Busch, Christoph Hellwig, linux-nvme, Jakub Kicinski,
	Eric Dumazet, Paolo Abeni, netdev, Hannes Reinecke

Hi all,

here are some small fixes to get NVMe-over-TLS up and running.
The first three are just minor modifications to have MSG_EOR handled
for TLS (and adding a test for it), but the last two implement the
->read_sock() callback for tls_sw and that, I guess, could do with
some reviews.
It does work with my NVMe-TLS test harness, but what do I know :-)

As usual, comments and reviews are welcome.

Changes to the original submission:
- Add a testcase for MSG_EOR handling

Changes to v2:
- Bail out on conflicting message flags
- Rework flag handling

Changes to v3:
- Return -EINVAL on conflicting flags
- Rebase on top of net-next

Changes to v4:
- Add tlx_rx_reader_lock() to read_sock
- Add MSG_EOR handling to tls_sw_readpages()

Changes to v5:
- Rebase to latest upstream
- Split tls_rx_reader_lock() as suggested by Sagi

Hannes Reinecke (5):
  net/tls: handle MSG_EOR for tls_sw TX flow
  net/tls: handle MSG_EOR for tls_device TX flow
  selftests/net/tls: add test for MSG_EOR
  net/tls: split tls_rx_reader_lock
  net/tls: implement ->read_sock()

 net/tls/tls.h                     |   2 +
 net/tls/tls_device.c              |   6 +-
 net/tls/tls_main.c                |   2 +
 net/tls/tls_sw.c                  | 121 +++++++++++++++++++++++++-----
 tools/testing/selftests/net/tls.c |  11 +++
 5 files changed, 124 insertions(+), 18 deletions(-)

-- 
2.35.3


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

end of thread, other threads:[~2023-07-05 20:55 UTC | newest]

Thread overview: 24+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-07-03  9:04 [PATCHv6 0/5] net/tls: fixes for NVMe-over-TLS Hannes Reinecke
2023-07-03  9:04 ` [PATCH 1/5] net/tls: handle MSG_EOR for tls_sw TX flow Hannes Reinecke
2023-07-03  9:04 ` [PATCH 2/5] net/tls: handle MSG_EOR for tls_device " Hannes Reinecke
2023-07-03  9:04 ` [PATCH 3/5] selftests/net/tls: add test for MSG_EOR Hannes Reinecke
2023-07-03  9:04 ` [PATCH 4/5] net/tls: split tls_rx_reader_lock Hannes Reinecke
2023-07-03 10:06   ` Sagi Grimberg
2023-07-03 10:21     ` Hannes Reinecke
2023-07-05 20:55       ` Jakub Kicinski
2023-07-03  9:04 ` [PATCH 5/5] net/tls: implement ->read_sock() Hannes Reinecke
2023-07-04  7:56   ` Paolo Abeni
2023-07-03 10:08 ` [PATCHv6 0/5] net/tls: fixes for NVMe-over-TLS Sagi Grimberg
2023-07-03 10:20   ` Hannes Reinecke
2023-07-03 12:13     ` Hannes Reinecke
2023-07-03 12:19       ` Hannes Reinecke
2023-07-03 12:26         ` David Howells
2023-07-03 12:33           ` Sagi Grimberg
2023-07-03 13:15             ` Hannes Reinecke
2023-07-03 13:42               ` Sagi Grimberg
2023-07-03 13:46                 ` Hannes Reinecke
2023-07-03 14:01                   ` Sagi Grimberg
2023-07-03 13:57                 ` Hannes Reinecke
2023-07-03 14:10                   ` Sagi Grimberg
2023-07-03 12:35           ` Hannes Reinecke
2023-07-03 12:45             ` David Howells

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).