Skip to content

Commit e313705

Browse files
elic307imstsirkin
authored andcommitted
vdpa/mlx5: Fix config_attr_mask assignment
Fix VDPA_ATTR_DEV_NET_CFG_MACADDR assignment to be explicit 64 bit assignment. No issue was seen since the value is well below 64 bit max value. Nevertheless it needs to be fixed. Fixes: a007d94 ("vdpa/mlx5: Support configuration of MAC") Reviewed-by: Si-Wei Liu <[email protected]> Acked-by: Jason Wang <[email protected]> Signed-off-by: Eli Cohen <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Michael S. Tsirkin <[email protected]>
1 parent aba21af commit e313705

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/vdpa/mlx5/net/mlx5_vnet.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2667,7 +2667,7 @@ static int mlx5v_probe(struct auxiliary_device *adev,
26672667
mgtdev->mgtdev.ops = &mdev_ops;
26682668
mgtdev->mgtdev.device = mdev->device;
26692669
mgtdev->mgtdev.id_table = id_table;
2670-
mgtdev->mgtdev.config_attr_mask = (1 << VDPA_ATTR_DEV_NET_CFG_MACADDR);
2670+
mgtdev->mgtdev.config_attr_mask = BIT_ULL(VDPA_ATTR_DEV_NET_CFG_MACADDR);
26712671
mgtdev->madev = madev;
26722672

26732673
err = vdpa_mgmtdev_register(&mgtdev->mgtdev);

0 commit comments

Comments
 (0)