]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5: Refactor num of blocks in mailbox calculation
authorMoshe Shemesh <moshe@mellanox.com>
Sat, 4 Nov 2017 05:18:28 +0000 (07:18 +0200)
committerSaeed Mahameed <saeedm@mellanox.com>
Fri, 4 May 2018 19:11:51 +0000 (12:11 -0700)
commit377e3b87d21d5d2cc5ec768a7c56165dc8a7a937
tree681654a69883c2deaddcf5c04cc3d6ca7bde9825
parent9a99bfe0e46a6cb3a8a5672c1ef6e4ede7c9de7b
net/mlx5: Refactor num of blocks in mailbox calculation

Get the logic that calculates the number of blocks in a command mailbox
into a dedicated function.

Signed-off-by: Moshe Shemesh <moshe@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/cmd.c