net/mlx5e: Move TX code into functions to be used by MPWQE
authorMaxim Mikityanskiy <maximmi@mellanox.com>
Mon, 9 Dec 2019 13:07:57 +0000 (15:07 +0200)
committerSaeed Mahameed <saeedm@nvidia.com>
Tue, 22 Sep 2020 02:41:16 +0000 (19:41 -0700)
commit67044a88aa0556b929cd07ba0656b101f3a6a67c
treec70b6ce9a9f1ba5c8d67c94056ae69d9728928d0
parentb39fe61edc50aff03a7188c1ad925c61af5ea882
net/mlx5e: Move TX code into functions to be used by MPWQE

mlx5e_txwqe_complete performs some actions that can be taken to separate
functions:

1. Update the flags needed for hardware timestamping.

2. Stop the TX queue if it's full.

Take these actions into separate functions to be reused by the MPWQE
code in the following commit and to maintain clear responsibilities of
functions.

Signed-off-by: Maxim Mikityanskiy <maximmi@mellanox.com>
Reviewed-by: Tariq Toukan <tariqt@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/en_tx.c