[PATCH xfrm v1] xfrm: fix error flow in case of add state fails

2018-01-18 Thread Aviad Yehezkel
If add state fails in case of device offload, netdev refcount will be negative since gc task is attempting to dev_free this state. This is fixed by putting NULL in state dev field. Signed-off-by: Aviad Yehezkel <avia...@mellanox.com> Signed-off-by: Boris Pismeny <bor...@mellanox.com&

Re: [PATCH net-next v2] xfrm: Add ESN support for IPSec HW offload

2018-01-11 Thread Aviad Yehezkel
On 1/11/2018 10:28 AM, Yossi Kuperman wrote: From: Shannon Nelson [mailto:shannon.nel...@oracle.com] Sent: Thursday, January 11, 2018 5:21 AM On 1/10/2018 3:09 PM, Yossi Kuperman wrote: On 10 Jan 2018, at 19:36, Shannon Nelson wrote: On 1/10/2018 2:34 AM,

[RFC TLS Offload Support 07/15] mlx/mlx5_core: Allow sending multiple packets

2017-03-28 Thread Aviad Yehezkel
From: Ilya Lesokhin <il...@mellanox.com> Modify mlx5e_xmit to xmit multiple packet chained using skb->next Signed-off-by: Ilya Lesokhin <il...@mellanox.com> Signed-off-by: Aviad Yehezkel <avia...@mellanox.com> --- drivers/net/ethernet/mellanox/mlx5/core/en_tx.c | 11 ++

[RFC TLS Offload Support 01/15] tcp: Add clean acked data hook

2017-03-28 Thread Aviad Yehezkel
Boris Pismenny <bor...@mellanox.com> Signed-off-by: Ilya Lesokhin <il...@mellanox.com> Signed-off-by: Aviad Yehezkel <avia...@mellanox.com> --- include/net/inet_connection_sock.h | 2 ++ net/ipv4/tcp_input.c | 3 +++ 2 files changed, 5 insertions(+) diff --git a/include/ne

[RFC TLS Offload Support 09/15] mlx/tls: Sysfs configuration interface Configure the driver/hardware interface via sysfs.

2017-03-28 Thread Aviad Yehezkel
From: Ilya Lesokhin <il...@mellanox.com> Signed-off-by: Guy Shapiro <gu...@mellanox.com> Signed-off-by: Ilya Lesokhin <il...@mellanox.com> Signed-off-by: Matan Barak <mat...@mellanox.com> Signed-off-by: Aviad Yehezkel <avia...@mellanox.com> --- .../ethernet/mellan

[RFC TLS Offload Support 11/15] mlx/tls: TLS offload driver Add the main module entrypoints and tie the module into the build system

2017-03-28 Thread Aviad Yehezkel
From: Ilya Lesokhin <il...@mellanox.com> Signed-off-by: Guy Shapiro <gu...@mellanox.com> Signed-off-by: Ilya Lesokhin <il...@mellanox.com> Signed-off-by: Matan Barak <mat...@mellanox.com> Signed-off-by: Haggai Eran <hagg...@mellanox.com> Signed-off-by: Aviad

[RFC TLS Offload Support 14/15] crypto: rfc5288 aesni optimized intel routines

2017-03-28 Thread Aviad Yehezkel
From: Dave Watson The assembly routines require the AAD data to be padded out to the nearest 4 bytes. Copy the 13 byte tag to a spare assoc data area when necessary Signed-off-by: Dave Watson --- arch/x86/crypto/aesni-intel_asm.S| 6 ++

[RFC TLS Offload Support 03/15] tcp: export tcp_rate_check_app_limited function

2017-03-28 Thread Aviad Yehezkel
We will use it via tls new code. Signed-off-by: Aviad Yehezkel <avia...@mellanox.com> Signed-off-by: Ilya Lesokhin <il...@mellanox.com> Signed-off-by: Boris Pismenny <bor...@mellanox.com> --- net/ipv4/tcp_rate.c | 1 + 1 file changed, 1 insertion(+) diff --git a/net/ipv4/tcp

[RFC TLS Offload Support 04/15] net: Add TLS offload netdevice and socket support

2017-03-28 Thread Aviad Yehezkel
From: Ilya Lesokhin <il...@mellanox.com> This patch add a new NDO to add and delete TLS contexts on netdevices. Signed-off-by: Boris Pismenny <bor...@mellanox.com> Signed-off-by: Ilya Lesokhin <il...@mellanox.com> Signed-off-by: Aviad Yehezkel <avia...@mellanox.co

[RFC TLS Offload Support 15/15] net/tls: Add software offload

2017-03-28 Thread Aviad Yehezkel
From: Ilya Lesokhin <il...@mellanox.com> Signed-off-by: Dave Watson <davejwat...@fb.com> Signed-off-by: Ilya Lesokhin <il...@mellanox.com> Signed-off-by: Aviad Yehezkel <avia...@mellanox.com> --- MAINTAINERS| 1 + include/net/tls.h | 44 net/tls/Make

[RFC TLS Offload Support 02/15] tcp: export do_tcp_sendpages function

2017-03-28 Thread Aviad Yehezkel
We will use it via tls new code. Signed-off-by: Aviad Yehezkel <avia...@mellanox.com> Signed-off-by: Ilya Lesokhin <il...@mellanox.com> Signed-off-by: Boris Pismenny <bor...@mellanox.com> --- include/net/tcp.h | 2 ++ net/ipv4/tcp.c| 5 +++-- 2 files changed, 5 insertio

[RFC TLS Offload Support 12/15] mlx/tls: Enable MLX5_CORE_QP_SIM mode for tls

2017-03-28 Thread Aviad Yehezkel
Signed-off-by: Aviad Yehezkel <avia...@mellanox.com> Signed-off-by: Ilya Lesokhin <il...@mellanox.com> --- drivers/net/ethernet/mellanox/accelerator/tls/tls.c | 6 ++ drivers/net/ethernet/mellanox/accelerator/tls/tls_sysfs.c | 2 ++ drivers/net/ethernet/mellanox/acc

[RFC TLS Offload Support 06/15] tls: tls offload support

2017-03-28 Thread Aviad Yehezkel
sokhin <il...@mellanox.com> Signed-off-by: Aviad Yehezkel <avia...@mellanox.com> --- MAINTAINERS | 13 + include/net/tls.h | 184 ++ include/uapi/linux/Kbuild | 1 + include/uapi/linux/tls.h | 84 +++ net/Kconfig |

[RFC TLS Offload Support 10/15] mlx/tls: Add mlx_accel offload driver for TLS

2017-03-28 Thread Aviad Yehezkel
: Matan Barak <mat...@mellanox.com> Signed-off-by: Haggai Eran <hagg...@mellanox.com> Signed-off-by: Aviad Yehezkel <avia...@mellanox.com> --- .../net/ethernet/mellanox/accelerator/tls/tls.c| 652 + .../net/ethernet/mellanox/accelerator/tls/tls.h| 100 2 file

[RFC TLS Offload Support 08/15] mlx/tls: Hardware interface

2017-03-28 Thread Aviad Yehezkel
an <hagg...@mellanox.com> Signed-off-by: Aviad Yehezkel <avia...@mellanox.com> --- .../ethernet/mellanox/accelerator/tls/tls_cmds.h | 112 ++ .../net/ethernet/mellanox/accelerator/tls/tls_hw.c | 429 + .../net/ethernet/mellanox/accelerator/tls/tls_hw.h | 49

[RFC TLS Offload Support 13/15] crypto: Add gcm template for rfc5288

2017-03-28 Thread Aviad Yehezkel
From: Dave Watson AAD data length is 13 bytes, tag is 16. Signed-off-by: Dave Watson --- crypto/gcm.c | 122 +++ crypto/tcrypt.c | 14 --- crypto/testmgr.c | 16 crypto/testmgr.h |

[RFC TLS Offload Support 00/15] cover letter

2017-03-28 Thread Aviad Yehezkel
://netdevconf.org/1.2/session.html?boris-pismenny 4) These RFC patches are based on kernel 4.9-rc7. Aviad Yehezkel (5): tcp: export do_tcp_sendpages function tcp: export tcp_rate_check_app_limited function tcp: Add TLS socket options for TCP sockets tls: tls offload support mlx/tls

[RFC TLS Offload Support 05/15] tcp: Add TLS socket options for TCP sockets

2017-03-28 Thread Aviad Yehezkel
ket will be encapsulated in TLS. Signed-off-by: Aviad Yehezkel <avia...@mellanox.com> Signed-off-by: Boris Pismenny <bor...@mellanox.com> Signed-off-by: Ilya Lesokhin <il...@mellanox.com> --- include/uapi/linux/tcp.h | 2 ++ net/ipv4/tcp.c | 32