Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp2687672iog; Mon, 20 Jun 2022 02:27:40 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tVcsgfhNNgRgWJ+FU55z+dFjGvUlme/ce7AunccO6FB78a9Kyeo+DcXBwxm//EIOf78lBc X-Received: by 2002:a05:6402:1386:b0:431:6911:a151 with SMTP id b6-20020a056402138600b004316911a151mr28163934edv.105.1655717260596; Mon, 20 Jun 2022 02:27:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655717260; cv=none; d=google.com; s=arc-20160816; b=JYF7CfimJrBP3uVU8x+jBlLzurLyTA2svKpuPNI23FjDY1ocpPjssNxL5HhB1F9UhK iTw7x8oT1QWmfrvnEdEK4C94LIw8wv3vVbFlLK4UZO2rx3taAKI8HvvIm+2Y8xLV/b9t OwZRF5CyobVH7xlqXl+/6IH9aRVL0VfJGnIzVtZDJbtLGdGAhevSEYXmIE7y6sSYyBua FqxBCaLxcyFWlZSTe07Pq2WRNNVBHWY5eUijdtPwapU1ext3bTd4MU90caZ7ZbDcLrB+ E7QjGsu+1OiHKDRJjmT3jnPuYspKaRQ8VniKsq0oPL5Vx7dSHsbR+aC+0IhK/bPQ/MNM xGXQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=3Km8BdY6syMUyW+TQs1owXDRqFBk5bezOw4dqCatn4M=; b=mP/DJbrtuzs1KmvmRMcatesxV8Dv3Q2y+VfFNCackQqT+SElVaFCEEc5B5f0wx+sr+ 8a5NULeD4pppL/nZfaXr9yywMs3EptPTgjE3nwIOmpr+gMZYF7GOgcvUGPlQcmv7hVyV M1025RcMMFFRisamk5rUd5XWsH0lYd+SdzmkiJqqkLiTKUlVx40BnBnXxj7/Vd8Odnfj BnQcZNTXd3YR5Y+6LzMxLR4SIeIBHMmYWDLwiZdUxTvEFB7kOu5Y185WvKM/ZIpdeD5m vROTLso2Ua8kwy/foxDirJQW2u4lpgSnheKJwT6rU4v4XktHd+q4Dgez1Z8XTHJF5Q5j HgYw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=QPyW1bTw; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id lf20-20020a170906ae5400b006fec6226554si11620300ejb.422.2022.06.20.02.27.14; Mon, 20 Jun 2022 02:27:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=QPyW1bTw; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240543AbiFTJZs (ORCPT + 99 others); Mon, 20 Jun 2022 05:25:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35746 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240242AbiFTJZq (ORCPT ); Mon, 20 Jun 2022 05:25:46 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 0F2A61180E for ; Mon, 20 Jun 2022 02:25:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1655717145; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=3Km8BdY6syMUyW+TQs1owXDRqFBk5bezOw4dqCatn4M=; b=QPyW1bTwZNiPYwjZYPEUkr5va66oXBogQ+v5A6/UdOhu8BDzJ0P6Yx+Ax/MO5NLFBFlFUu grDYkCx+ud9O0K9ugWu+eMbva8ZlvpywH5W4A+djEAyWYvrgNf2t1WuWT2a7S4xpFbTHse Ee9drGWsNYSouZKxmSZj8QLq5rr4nds= Received: from mail-lf1-f72.google.com (mail-lf1-f72.google.com [209.85.167.72]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-256-gbGxgXiVOxCKrmk1MelFgQ-1; Mon, 20 Jun 2022 05:25:41 -0400 X-MC-Unique: gbGxgXiVOxCKrmk1MelFgQ-1 Received: by mail-lf1-f72.google.com with SMTP id f32-20020a0565123b2000b004791bf1af10so5233090lfv.1 for ; Mon, 20 Jun 2022 02:25:40 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=3Km8BdY6syMUyW+TQs1owXDRqFBk5bezOw4dqCatn4M=; b=mIT3nRCJJ1dRhAgs78EsiBLR7QWZHNYXivjBGYDcqQFE5/gazCezJ8JiHXm4zziUzP WoiyRNDpDWbQdS9gdrthkqPDcNKo5ve+kY//Sz3kU0tWv+uKaQIkqtShTM+Q+QLlQQMs d3Nr+xhDMUtN0BYDqmt2QYHe5oMRQgsbegy6GKNRi0Q7qeSbJnfpME8/cKJkpA+DuRvP lVPuwvL05+5Ey+Q/pOTFIOJDcIDLcLpoMLWGOFvsRtCheIfLCv1lDV0qcasJd4HhLE1e I+Df8WXE9o6hkE0fPYO2nsr5Sd0AOuSGYTYSTox1+wTWYqA/i+Pg36tMjHsSP4wds20W u30A== X-Gm-Message-State: AJIora9II0NwM37LGl/lQi9Cn2B3Dwx2zWHtbn0PvnVdOKjfGV+Cq+im lGnPWwIjbBuZjsqwm08fz8ROlOFJx4k4vdhUnHvDfrBmSrER5ZCfNZ7qV+mMNPp1X1kqOsosPvQ RS6ylPzSYeRJRHMQrucAyww5hbg2TW7v8Xu5Ni3Ad X-Received: by 2002:a2e:b014:0:b0:25a:6d17:c3c8 with SMTP id y20-20020a2eb014000000b0025a6d17c3c8mr2735617ljk.487.1655717139625; Mon, 20 Jun 2022 02:25:39 -0700 (PDT) X-Received: by 2002:a2e:b014:0:b0:25a:6d17:c3c8 with SMTP id y20-20020a2eb014000000b0025a6d17c3c8mr2735606ljk.487.1655717139443; Mon, 20 Jun 2022 02:25:39 -0700 (PDT) MIME-Version: 1.0 References: <20220616132725.50599-1-elic@nvidia.com> <20220616132725.50599-4-elic@nvidia.com> In-Reply-To: From: Jason Wang Date: Mon, 20 Jun 2022 17:25:28 +0800 Message-ID: Subject: Re: [PATCH RFC 3/3] vdpa/mlx5: Disable VLAN support to support live migration To: Eugenio Perez Martin Cc: Eli Cohen , mst , virtualization , linux-kernel , Si-Wei Liu , Parav Pandit Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-3.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jun 20, 2022 at 5:02 PM Eugenio Perez Martin wrote: > > On Mon, Jun 20, 2022 at 10:48 AM Jason Wang wrote: > > > > On Thu, Jun 16, 2022 at 9:28 PM Eli Cohen wrote: > > > > > > Current qemu code does not support live migration for devices supporting > > > VLAN. Disable it. > > > > This looks like a bug that we need to fix in Qemu. > > > > Not a but, but a lack of a feature :). Each cvq command needs new code > to inject it at the destination, and only set mac cmd is implemented > at the moment. Only to start simple. I think we don't need this in the formal patch? (Anyhow we could disable ctrl vlan vic command line) Thanks > > Thanks! > > > Thanks > > > > > > > > Note: this patch is provided just to enable testing with current qemu. > > > > > > Signed-off-by: Eli Cohen > > > --- > > > drivers/vdpa/mlx5/net/mlx5_vnet.c | 1 - > > > 1 file changed, 1 deletion(-) > > > > > > diff --git a/drivers/vdpa/mlx5/net/mlx5_vnet.c b/drivers/vdpa/mlx5/net/mlx5_vnet.c > > > index 34bd81cb697c..1568cfdf07e6 100644 > > > --- a/drivers/vdpa/mlx5/net/mlx5_vnet.c > > > +++ b/drivers/vdpa/mlx5/net/mlx5_vnet.c > > > @@ -2172,7 +2172,6 @@ static u64 get_supported_features(struct mlx5_core_dev *mdev) > > > mlx_vdpa_features |= BIT_ULL(VIRTIO_NET_F_MQ); > > > mlx_vdpa_features |= BIT_ULL(VIRTIO_NET_F_STATUS); > > > mlx_vdpa_features |= BIT_ULL(VIRTIO_NET_F_MTU); > > > - mlx_vdpa_features |= BIT_ULL(VIRTIO_NET_F_CTRL_VLAN); > > > > > > return mlx_vdpa_features; > > > } > > > -- > > > 2.35.1 > > > > > >