]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5e: kTLS, Fix missing SQ edge fill
authorTariq Toukan <tariqt@mellanox.com>
Mon, 7 Oct 2019 10:59:11 +0000 (13:59 +0300)
committerSaeed Mahameed <saeedm@mellanox.com>
Fri, 18 Oct 2019 19:11:53 +0000 (12:11 -0700)
commit2ebeb27a5e13042e092668168d49dfac12664946
treec0bc18f7d4781c54b8e0157a6578f7cff4e32144
parent2683246920fbb2ccec392c8f1beafd6d70724812
net/mlx5e: kTLS, Fix missing SQ edge fill

Before posting the context params WQEs, make sure there is enough
contiguous room for them, and fill frag edge if needed.

When posting only a nop, no need for room check, as it needs a single
WQEBB, meaning no contiguity issue.

Fixes: 3e985319cc11 ("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