]> 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)
commit253d1c77f0a041f678cd7ceb9aab9b9a3c517a15
tree8036a27877c793a09218ee330ebaeed48a5ca52a
parentf40dbadd3b3ce98c95261fb49375e8c6733fc125
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: 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.h
drivers/net/ethernet/mellanox/mlx5/core/en_accel/ktls_tx.c