]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5e: kTLS, Save only the frag page to release at completion
authorTariq Toukan <tariqt@mellanox.com>
Wed, 18 Sep 2019 10:50:32 +0000 (13:50 +0300)
committerSaeed Mahameed <saeedm@mellanox.com>
Fri, 18 Oct 2019 19:11:52 +0000 (12:11 -0700)
commit72e754d5483fe692d870a895bc600121da25eb77
tree8036a27877c793a09218ee330ebaeed48a5ca52a
parent508b19ae97a130c0c589c5c903611b91dc7631d6
net/mlx5e: kTLS, Save only the frag page to release at completion

In TX resync flow where DUMP WQEs are posted, keep a pointer to
the fragment page to unref it upon completion, instead of saving
the whole fragment.

In addition, move it the end of the arguments list in tx_fill_wi().

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.h
drivers/net/ethernet/mellanox/mlx5/core/en_accel/ktls_tx.c