netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Jakub Kicinski <jakub.kicinski@netronome.com>
To: davem@davemloft.net
Cc: netdev@vger.kernel.org, oss-drivers@netronome.com,
	alexei.starovoitov@gmail.com, davejwatson@fb.com,
	borisp@mellanox.com,
	Jakub Kicinski <jakub.kicinski@netronome.com>
Subject: [PATCH net-next 00/12] tls: add support for kernel-driven resync and nfp RX offload
Date: Mon, 10 Jun 2019 21:39:58 -0700	[thread overview]
Message-ID: <20190611044010.29161-1-jakub.kicinski@netronome.com> (raw)

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


             reply	other threads:[~2019-06-11  4:40 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-06-11  4:39 Jakub Kicinski [this message]
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

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=20190611044010.29161-1-jakub.kicinski@netronome.com \
    --to=jakub.kicinski@netronome.com \
    --cc=alexei.starovoitov@gmail.com \
    --cc=borisp@mellanox.com \
    --cc=davejwatson@fb.com \
    --cc=davem@davemloft.net \
    --cc=netdev@vger.kernel.org \
    --cc=oss-drivers@netronome.com \
    /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;
as well as URLs for NNTP newsgroup(s).