Files
linux/drivers
Tariq Toukan 9bd7ae7eab net/mlx5e: kTLS, Do not send decrypted-marked SKBs via non-accel path
commit 342508c1c7 upstream.

When TCP out-of-order is identified (unexpected tcp seq mismatch), driver
analyzes the packet and decides what handling should it get:
1. go to accelerated path (to be encrypted in HW),
2. go to regular xmit path (send w/o encryption),
3. drop.

Packets marked with skb->decrypted by the TLS stack in the TX flow skips
SW encryption, and rely on the HW offload.
Verify that such packets are never sent un-encrypted on the wire.
Add a WARN to catch such bugs, and prefer dropping the packet in these cases.

Fixes: 46a3ea9807 ("net/mlx5e: kTLS, Enhance TX resync flow")
Signed-off-by: Tariq Toukan <tariqt@mellanox.com>
Signed-off-by: Boris Pismenny <borisp@mellanox.com>
Reviewed-by: Boris Pismenny <borisp@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-01-29 16:45:24 +01:00
..
2020-01-09 10:19:59 +01:00
2020-01-29 16:45:19 +01:00
2019-12-31 16:45:16 +01:00
2019-08-27 09:43:59 +02:00
2019-08-16 11:33:56 -07:00
2020-01-26 10:01:07 +01:00
2020-01-23 08:22:48 +01:00
2019-09-23 17:20:40 -04:00
2020-01-09 10:19:43 +01:00
2019-08-18 12:56:10 +02:00
2019-12-17 19:56:42 +01:00