diff options
author | Tariq Toukan <tariqt@mellanox.com> | 2020-02-20 13:40:24 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2020-04-08 09:08:40 +0200 |
commit | 4eb33cb9b56666ee59b291caab046588dd6b66eb (patch) | |
tree | e33020fb6b62b02e79b53735518de3e7ca01b284 /lib | |
parent | 8792e1ac5f48dc07da98ecaa8ee9e8abedec4549 (diff) |
net/mlx5e: kTLS, Fix TCP seq off-by-1 issue in TX resync flow
[ Upstream commit 56917766def72f5afdf4235adb91b6897ff26d9d ]
We have an off-by-1 issue in the TCP seq comparison.
The last sequence number that belongs to the TCP packet's payload
is not "start_seq + len", but one byte before it.
Fix it so the 'ends_before' is evaluated properly.
This fixes a bug that results in error completions in the
kTLS HW offload flows.
Fixes: ffbd9ca94e2e ("net/mlx5e: kTLS, Fix corner-case checks in TX resync flow")
Signed-off-by: Tariq Toukan <tariqt@mellanox.com>
Reviewed-by: Boris Pismenny <borisp@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'lib')
0 files changed, 0 insertions, 0 deletions