]> 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)
commitf83893744bee5b9656c3048f70a385a006b3f3b6
tree681654a69883c2deaddcf5c04cc3d6ca7bde9825
parent1486036558f947ce50df2f5a5f1a2cc13a465261
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