]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitbbe67f2fcbfcc073c26086e7e8eb38eca0b3676e
treec70b6ce9a9f1ba5c8d67c94056ae69d9728928d0
parent4c027063ae0e48326fbebf9573798c66cda50159
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