OSDN Git Service

net/mlx5e: kTLS, Save a copy of the crypto info
authorTariq Toukan <tariqt@mellanox.com>
Sun, 22 Sep 2019 11:05:24 +0000 (14:05 +0300)
committerSaeed Mahameed <saeedm@mellanox.com>
Fri, 18 Oct 2019 19:11:53 +0000 (12:11 -0700)
commitaf11a7a42454b17c77da5fa55b6b6325b11d60e5
tree918be93e6729314a75604ef13cdf8a8322fca86f
parentecdc65a3ec5d45725355479d63c23a20f4582104
net/mlx5e: kTLS, Save a copy of the crypto info

Do not assume the crypto info is accessible during the
connection lifetime. Save a copy of it in the private
TX context.

Fixes: d2ead1f360e8 ("net/mlx5e: Add kTLS TX HW offload support")
Signed-off-by: Tariq Toukan <tariqt@mellanox.com>
Reviewed-by: Eran Ben Elisha <eranbe@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/en_accel/ktls.c
drivers/net/ethernet/mellanox/mlx5/core/en_accel/ktls.h
drivers/net/ethernet/mellanox/mlx5/core/en_accel/ktls_tx.c