net/mlx5e: kTLS, Save by-value copy of the record frags
authorTariq Toukan <tariqt@mellanox.com>
Wed, 18 Sep 2019 10:57:40 +0000 (13:57 +0300)
committerSaeed Mahameed <saeedm@mellanox.com>
Fri, 18 Oct 2019 19:11:52 +0000 (12:11 -0700)
commit310d9b9d37220b590909e90e724fc5f346a98775
tree809f10d3829fef93fe6eb26bb832e6a18258e821
parentf45da3716fb2fb09e301a1b6edf200ff343dc06e
net/mlx5e: kTLS, Save by-value copy of the record frags

Access the record fragments only under the TLS ctx lock.
In the resync flow, save a copy of them to be used when
preparing and posting the required DUMP WQEs.

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_tx.c