net/mlx5e: Refactor inline header size calculation in the TX path
authorMaxim Mikityanskiy <maximmi@mellanox.com>
Mon, 9 Dec 2019 13:39:32 +0000 (15:39 +0200)
committerSaeed Mahameed <saeedm@nvidia.com>
Tue, 22 Sep 2020 02:41:13 +0000 (19:41 -0700)
commit6d55af43fe9398b67165c47d474d47a84681bbeb
tree0e913d5c671e6ec7a6f5bca59c6e8a9ec0b90b32
parentc5a2a132a38619d24d6d115c66cc277594b4fe01
net/mlx5e: Refactor inline header size calculation in the TX path

As preparation for the next patch, don't increase ihs to calculate
ds_cnt and then decrease it, but rather calculate the intermediate value
temporarily. This code has the same amount of arithmetic operations, but
now allows to split out ds_cnt calculation, which will be performed in
the next patch.

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