提交 1e3f7b32 编写于 作者: H Hadar Hen Zion 提交者: David S. Miller

net/mlx4_core: Always use 64 bit resource ID when doing lookup

One of the resource tracker code paths was wrongly using int and not u64
for resource tracking IDs, fix it.
Signed-off-by: NHadar Hen Zion <hadarh@mellanox.com>
Signed-off-by: NOr Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 6efb5fac
...@@ -355,7 +355,7 @@ static int mpt_mask(struct mlx4_dev *dev) ...@@ -355,7 +355,7 @@ static int mpt_mask(struct mlx4_dev *dev)
return dev->caps.num_mpts - 1; return dev->caps.num_mpts - 1;
} }
static void *find_res(struct mlx4_dev *dev, int res_id, static void *find_res(struct mlx4_dev *dev, u64 res_id,
enum mlx4_resource type) enum mlx4_resource type)
{ {
struct mlx4_priv *priv = mlx4_priv(dev); struct mlx4_priv *priv = mlx4_priv(dev);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册