OSDN Git Service

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