diff options
author | Tariq Toukan <tariqt@mellanox.com> | 2020-01-12 17:22:14 +0300 |
---|---|---|
committer | Saeed Mahameed <saeedm@mellanox.com> | 2020-01-24 23:04:35 +0300 |
commit | ffbd9ca94e2ebbfe802d4b28bab5ba19818de853 (patch) | |
tree | e98dcb5fadb78f29039f556e41e0bee6d986b0aa /drivers/dma-buf/dma-fence.c | |
parent | 3b83b6c2e024d85b770ddb1e19a513b5d7587f6f (diff) | |
download | linux-ffbd9ca94e2ebbfe802d4b28bab5ba19818de853.tar.xz |
net/mlx5e: kTLS, Fix corner-case checks in TX resync flow
There are the following cases:
1. Packet ends before start marker: bypass offload.
2. Packet starts before start marker and ends after it: drop,
not supported, breaks contract with kernel.
3. packet ends before tls record info starts: drop,
this packet was already acknowledged and its record info
was released.
Add the above as comment in code.
Mind possible wraparounds of the TCP seq, replace the simple comparison
with a call to the TCP before() method.
In addition, remove logic that handles negative sync_len values,
as it became impossible.
Fixes: d2ead1f360e8 ("net/mlx5e: Add kTLS TX HW offload support")
Fixes: 46a3ea98074e ("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>
Diffstat (limited to 'drivers/dma-buf/dma-fence.c')
0 files changed, 0 insertions, 0 deletions