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)
commit700ec497424069fa4d8f3715759c4aaec016e840
treec0bc18f7d4781c54b8e0157a6578f7cff4e32144
parentb61b24bd135a7775a2839863bd1d58a462a5f1e5
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: d2ead1f360e8 ("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