]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
Merge branch 'mlx5-TLS-TX-HW-offload-support'
authorDavid S. Miller <davem@davemloft.net>
Fri, 5 Jul 2019 23:29:20 +0000 (16:29 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 5 Jul 2019 23:42:00 +0000 (16:42 -0700)
commit23f30c41c732fe9800f4a2d545b37c9515d35ad6
tree43c891d5e831935bfbe95d7fbb54f43fef1c2cef
parent61c2491db779c94d29446cea38b95d0c72bc1a9e
parentd2ead1f360e8abd9817dea4f7290ffaf00078ac1
Merge branch 'mlx5-TLS-TX-HW-offload-support'

Tariq Toukan says:

====================
mlx5 TLS TX HW offload support

This series from Eran and me, adds TLS TX HW offload support to
the mlx5 driver.

This offloads the kTLS encryption process from kernel to the
Mellanox NIC, saving CPU cycles and improving utilization.

Upon a new TLS connection request, driver is responsible to create
a dedicated HW context and configure it according to the crypto info,
so HW can do the encryption itself.

When the HW context gets out-of-sync (i.e. due to packets retransmission),
driver is responsible for the re-sync process.
This is done by posting special resync descriptors to the HW.

Feature is supported on Mellanox Connect-X 6DX, and newer.
Series was tested on SimX simulator.

Series generated against net-next commit [1], with Saeed's request pulled [2]:

[1] c4cde5804d51 Merge git://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-next
[2] git://git.kernel.org/pub/scm/linux/kernel/git/saeed/linux.git tags/mlx5-updates-2019-07-04-v2

Changes from last pull request:
Fixed comments from Jakub:
Patch 4:
- Replace zero  memset with a call to memzero_explicit().
Patch 11:
- Fix stats counters names.
- Drop TLS SKB with non-matching netdev.
====================

Acked-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Signed-off-by: David S. Miller <davem@davemloft.net>