net/mlx5: fix 32bit build
authorPaolo Abeni <pabeni@redhat.com>
Tue, 5 Jul 2022 07:17:04 +0000 (09:17 +0200)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 5 Jul 2022 10:04:43 +0000 (12:04 +0200)
commit55ae465222d0296e81f707c2b9447e715b59b9ac
tree2fa4f3766ab6fc941a23ab03fda98bbf706d0408
parenta94afe18ac3b4cae88a50a1e5de6bfe9989f06b0
net/mlx5: fix 32bit build

We can't use the division operator on 64 bits integers, that breaks
32 bits build. Instead use the relevant helper.

Fixes: 6ddac26cf763 ("net/mlx5e: Add support to modify hardware flow meter parameters")
Acked-by: Saeed Mahameed <saeedm@nvidia.com>
Link: https://lore.kernel.org/r/ecb00ddd1197b4f8a4882090206bd2eee1eb8b5b.1657005206.git.pabeni@redhat.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
drivers/net/ethernet/mellanox/mlx5/core/en/tc/meter.c