net/mlx5: Use 2-factor allocator calls
authorKees Cook <keescook@chromium.org>
Wed, 4 Jul 2018 17:28:47 +0000 (10:28 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 9 Jul 2018 23:00:07 +0000 (16:00 -0700)
commiteec4edc9ee08fe5c2f219b4fab7aed71b409e196
tree27cc7cf4e5f064ac75094b0f4d3c3be312b72764
parent95765a6ca1288121ddcbf07cd60ec65341829ddc
net/mlx5: Use 2-factor allocator calls

This restores the use of 2-factor allocation helpers that were already
fixed treewide. Please do not use open-coded multiplication; prefer,
instead, using 2-factor allocation helpers.

Signed-off-by: Kees Cook <keescook@chromium.org>
Reviewed-by: Leon Romanovsky <leonro@mellanox.com>
Reviewed-by: Tariq Toukan <tariqt@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx5/core/en_main.c