netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net-next 00/12] tls: add support for kernel-driven resync and nfp RX offload
@ 2019-06-11  4:39 Jakub Kicinski
  2019-06-11  4:39 ` [PATCH net-next 01/12] net/tls: simplify seq calculation in handle_device_resync() Jakub Kicinski
                   ` (12 more replies)
  0 siblings, 13 replies; 14+ messages in thread
From: Jakub Kicinski @ 2019-06-11  4:39 UTC (permalink / raw)
  To: davem
  Cc: netdev, oss-drivers, alexei.starovoitov, davejwatson, borisp,
	Jakub Kicinski

Hi!

This series adds TLS RX offload for NFP and completes the offload
by providing resync strategies.  When TLS data stream looses segments
or experiences reorder NIC can no longer perform in line offload.
Resyncs provide information about placement of records in the
stream so that offload can resume.

Existing TLS resync mechanisms are not a great fit for the NFP.
In particular the TX resync is hard to implement for packet-centric
NICs.  This patchset adds an ability to perform TX resync in a way
similar to the way initial sync is done - by calling down to the
driver when new record is created after driver indicated sync had
been lost.

Similarly on the RX side, we try to wait for a gap in the stream
and send record information for the next record.  This works very
well for RPC workloads which are the primary focus at this time.

Dirk van der Merwe (2):
  nfp: tls: set skb decrypted flag
  nfp: tls: implement RX TLS resync

Jakub Kicinski (10):
  net/tls: simplify seq calculation in handle_device_resync()
  net/tls: pass record number as a byte array
  net/tls: rename handle_device_resync()
  net/tls: add kernel-driven TLS RX resync
  nfp: rename nfp_ccm_mbox_alloc()
  nfp: add async version of mailbox communication
  nfp: tls: enable TLS RX offload
  net/tls: generalize the resync callback
  net/tls: add kernel-driven resync mechanism for TX
  nfp: tls: make use of kernel-driven TX resync

 Documentation/networking/tls-offload.rst      |  54 +++++-
 .../mellanox/mlx5/core/en_accel/tls.c         |  10 +-
 drivers/net/ethernet/netronome/nfp/ccm.h      |  10 +-
 drivers/net/ethernet/netronome/nfp/ccm_mbox.c | 179 ++++++++++++++++--
 .../ethernet/netronome/nfp/crypto/crypto.h    |   6 +-
 .../net/ethernet/netronome/nfp/crypto/tls.c   |  73 ++++++-
 drivers/net/ethernet/netronome/nfp/nfp_net.h  |  20 +-
 .../ethernet/netronome/nfp/nfp_net_common.c   |  57 +++++-
 .../ethernet/netronome/nfp/nfp_net_ethtool.c  |  18 +-
 include/net/tls.h                             |  63 +++++-
 net/tls/tls_device.c                          | 140 ++++++++++++--
 net/tls/tls_sw.c                              |   9 +-
 12 files changed, 566 insertions(+), 73 deletions(-)

-- 
2.21.0


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

end of thread, other threads:[~2019-06-11 19:22 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-06-11  4:39 [PATCH net-next 00/12] tls: add support for kernel-driven resync and nfp RX offload Jakub Kicinski
2019-06-11  4:39 ` [PATCH net-next 01/12] net/tls: simplify seq calculation in handle_device_resync() Jakub Kicinski
2019-06-11  4:40 ` [PATCH net-next 02/12] net/tls: pass record number as a byte array Jakub Kicinski
2019-06-11  4:40 ` [PATCH net-next 03/12] net/tls: rename handle_device_resync() Jakub Kicinski
2019-06-11  4:40 ` [PATCH net-next 04/12] net/tls: add kernel-driven TLS RX resync Jakub Kicinski
2019-06-11  4:40 ` [PATCH net-next 05/12] nfp: tls: set skb decrypted flag Jakub Kicinski
2019-06-11  4:40 ` [PATCH net-next 06/12] nfp: rename nfp_ccm_mbox_alloc() Jakub Kicinski
2019-06-11  4:40 ` [PATCH net-next 07/12] nfp: add async version of mailbox communication Jakub Kicinski
2019-06-11  4:40 ` [PATCH net-next 08/12] nfp: tls: implement RX TLS resync Jakub Kicinski
2019-06-11  4:40 ` [PATCH net-next 09/12] nfp: tls: enable TLS RX offload Jakub Kicinski
2019-06-11  4:40 ` [PATCH net-next 10/12] net/tls: generalize the resync callback Jakub Kicinski
2019-06-11  4:40 ` [PATCH net-next 11/12] net/tls: add kernel-driven resync mechanism for TX Jakub Kicinski
2019-06-11  4:40 ` [PATCH net-next 12/12] nfp: tls: make use of kernel-driven TX resync Jakub Kicinski
2019-06-11 19:22 ` [PATCH net-next 00/12] tls: add support for kernel-driven resync and nfp RX offload David Miller

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).