Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp10987pxk; Wed, 23 Sep 2020 20:28:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyi7kUEUhad62UGRvl/xjkl2kSFCpPJhusDwSNJrm17HSGKy3w2FIBOwVMJk0rsbO6j5qx4 X-Received: by 2002:a50:9e6a:: with SMTP id z97mr2625440ede.32.1600918091935; Wed, 23 Sep 2020 20:28:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600918091; cv=none; d=google.com; s=arc-20160816; b=y+58ywJ2Yx7Ik0vtdFkxSRmHLfz9ZF4NWLn3tB30MRAsB0G1VV+5kVTmevSkpSsAcg vR9+NX/gCcHSNfvLf1vkeScsxgyV04/wDXEPmUq9s9oMG6EiWxllZyNJzxkcCDpkgsFQ s91RPbp9dgwjlZiRk+Sa1OfIP2I59dKiUGe8CX8KWbRccrjKne4qec0JudNNGnxYNlfy 9dYaGzadiStO4A9soDAmutecnrloKoqe1X4tANfSSn9JVHDBYINlVSgKSlxb7Y1rIlcD e0eZz/Q44PKd4tUlfR2PD58KFD+RXki4VClOKBu9kO75eUwMsheOMUoZY1OFjvxQTrIK NNjw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=493Mvj4YHbGnXqaTLTOpwXYuUGFR/Ez1yAqNjS+WYpA=; b=uPyJ+IzHFFwRKxfK9lkCV7XvCdEL4gaRaGLKNtuNAVhtdYnoBKKLruMyK3XUkK7oYP hvijea9ERfSohlNWhB2qiMxMaAehEY1hnUqsvVUHysUVsHtCSKO+WshZfDNeOXZTiuCV tc62AQZxJf+6C30siJLaBsaoNCFoY42TOHOT17owTYV0B+TACngVuoDzTJiz6LwY658U BcnGsqW8B+aB2EdSYvbC8Ob5k/ot3NrTMrr8ejfKvTZw40EYncdYazaAy6k/CR6trjsM laycZV+44X/keIeI+tgV+3emlkFljK0iJExQ8n59tCD4oDoCIswCEw/sXB4dlUjTiZlg pXTw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=aosxVLJD; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v11si1249027edx.325.2020.09.23.20.27.48; Wed, 23 Sep 2020 20:28:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=aosxVLJD; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S1727108AbgIXDZv (ORCPT + 99 others); Wed, 23 Sep 2020 23:25:51 -0400 Received: from us-smtp-delivery-124.mimecast.com ([216.205.24.124]:57746 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726764AbgIXDZu (ORCPT ); Wed, 23 Sep 2020 23:25:50 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1600917949; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=493Mvj4YHbGnXqaTLTOpwXYuUGFR/Ez1yAqNjS+WYpA=; b=aosxVLJD/DOf92EYN/xOiNtvNHPmxtb4/FMlmgz+rWpaNRVWlfC6ZLPA8ghg9JDMNKGOj+ Ut5ulROFj/JryBVxl5aYcV3SiRSpjCQi7ej6KvcyosMnAkrgQdwNqsS0qqccUBA6Xx3ZO1 pLPgGyjM6ph7ueL3aaJKBd6tJuON6hA= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-569-yNJMPlvUMtiTySbhAv3qow-1; Wed, 23 Sep 2020 23:25:47 -0400 X-MC-Unique: yNJMPlvUMtiTySbhAv3qow-1 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id EF79D1008549; Thu, 24 Sep 2020 03:25:45 +0000 (UTC) Received: from jason-ThinkPad-X1-Carbon-6th.redhat.com (ovpn-13-193.pek2.redhat.com [10.72.13.193]) by smtp.corp.redhat.com (Postfix) with ESMTP id 0C4853A40; Thu, 24 Sep 2020 03:25:36 +0000 (UTC) From: Jason Wang To: mst@redhat.com, jasowang@redhat.com Cc: lulu@redhat.com, kvm@vger.kernel.org, virtualization@lists.linux-foundation.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, rob.miller@broadcom.com, lingshan.zhu@intel.com, eperezma@redhat.com, hanand@xilinx.com, mhabets@solarflare.com, eli@mellanox.com, amorenoz@redhat.com, maxime.coquelin@redhat.com, stefanha@redhat.com, sgarzare@redhat.com Subject: [RFC PATCH 21/24] vdpa_sim: advertise VIRTIO_NET_F_MAC Date: Thu, 24 Sep 2020 11:21:22 +0800 Message-Id: <20200924032125.18619-22-jasowang@redhat.com> In-Reply-To: <20200924032125.18619-1-jasowang@redhat.com> References: <20200924032125.18619-1-jasowang@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org We advertise mac address via config space, so let's advertise VIRTIO_NET_F_MAC. Signed-off-by: Jason Wang --- drivers/vdpa/vdpa_sim/vdpa_sim.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/vdpa/vdpa_sim/vdpa_sim.c b/drivers/vdpa/vdpa_sim/vdpa_sim.c index 4b2d0d3fbc87..ca5c2d0db905 100644 --- a/drivers/vdpa/vdpa_sim/vdpa_sim.c +++ b/drivers/vdpa/vdpa_sim/vdpa_sim.c @@ -62,7 +62,8 @@ struct vdpasim_virtqueue { static u64 vdpasim_features = (1ULL << VIRTIO_F_ANY_LAYOUT) | (1ULL << VIRTIO_F_VERSION_1) | (1ULL << VIRTIO_F_ACCESS_PLATFORM) | - (1ULL << VIRTIO_NET_F_MTU); + (1ULL << VIRTIO_NET_F_MTU) | + (1ULL << VIRTIO_NET_F_MAC); /* State of each vdpasim device */ struct vdpasim { -- 2.20.1