]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitcc664a6e0fd564eb573aa957670a6f2c908e3cda
tree0e913d5c671e6ec7a6f5bca59c6e8a9ec0b90b32
parent98d876d1786a9b9bee00cd6e5b09ad79f3431f08
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