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)
commited644fab19db05902243f3ebf9e1245c4c79bebb
tree681654a69883c2deaddcf5c04cc3d6ca7bde9825
parentd034294e3c5bec1d5b5c6338991b29d19c820ea0
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