]> 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)
commite8b3074e87ac1d95a8d77ad7d08718fa456c3980
treec0bc18f7d4781c54b8e0157a6578f7cff4e32144
parentb09fc101a56a5fc782d8903d29e869df5cad99d4
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: 78c1118ca47b ("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