mlx5: move affinity hints assignments to generic code