net/mlx5: Fix get vector affinity helper function