Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp911955pxx; Thu, 29 Oct 2020 18:27:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwJkM5PxEKIJDSZmMpXpxEWEmkBGDJSl983DIgrnq1k6qBXoPOZkn3cez31De+LGJh3PQK1 X-Received: by 2002:a17:906:c0c8:: with SMTP id bn8mr152177ejb.256.1604021226520; Thu, 29 Oct 2020 18:27:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1604021226; cv=none; d=google.com; s=arc-20160816; b=HJsVqwtM/EM7haF66mAeU/5h0ku/fmJbAh7LjYt4Q26zl+aUv6uFKlLTjDVwbF0cQE hEkdFxV77taC6zGcLYZF4D9GDHLxgWRwsQKteoUfjb9aYyq65zS6GDIJQ/3WEF6ZzM2k Pzt3n6P7VIoHUy0680TfT0qUBxhfxtvnUPW0OxdRZG/CwuZe2s0uNTA4V1mbirIW3YBy FbGaqjgznHpw87a1xfbxzQqtqlbsChSljMRq2Dak/rcks3OwUVRiM3J9GBIPpyNwojgG Rtq1vv59WfD6FPCS/Qr6qwZHombIgBdJuBJCc9bQakKH8oGpEdiQBJnWesJg5FR6vlB+ ihVQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-language:content-transfer-encoding :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=bQyRgbJ3/l+vJVJDtTjuVGXBelnseiL1niBB0iYvzho=; b=y0/e/lWqASCQvk9disgfRp7GGPeB+YjjOf/cfqsd4ovnUFZkVk4N3ChpplTFCdbrge 1SV/rxuqD1pCnzkZUo+d9U4NLDfPrcyuW93r+S6nV38SlNUzr4J/78ysTSZv+TVznw/C VwzAXAhCXJz63dJMgYNGDHVZyg7ZllWEyfawYwX0XpfKSeV1ONzLItLN/niMQ4TmlYlS kXPFouAuk7Y/GPSPx1wWbxR67i/1/jZXAT2kdrdAdXYIgz/UTCGm2U2l1PimDdo0aszj BtYOEh4ZM2nJcbYbv2+JSSinzvcJ8DrslzeEnmnimWFQhWmWUvJ2Ts3hpkqcIggMUkkp r8Lw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=QYNiiNbU; 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 x18si3752059ejd.242.2020.10.29.18.26.44; Thu, 29 Oct 2020 18:27:06 -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=QYNiiNbU; 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 S1725800AbgJ3BYS (ORCPT + 99 others); Thu, 29 Oct 2020 21:24:18 -0400 Received: from us-smtp-delivery-124.mimecast.com ([63.128.21.124]:46670 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725379AbgJ3BYS (ORCPT ); Thu, 29 Oct 2020 21:24:18 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1604021057; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=bQyRgbJ3/l+vJVJDtTjuVGXBelnseiL1niBB0iYvzho=; b=QYNiiNbUFovC4UBV6fvCl7Ydw+XPynuOfEWb++AZHVwySsyURfVdDcHXYOj+F9cQBq32+p qCcKJn0Hw/Up5PkWjFlgVFu0ypRwTfAV7CC0+R2CftkQDFrPERen+LAH3f3mif1L+SqGUd 6FyVSMtaOrcjjkv6j9NjmhWVLKuYX/s= 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-408-nKiaQDVyNZqJuHKC09Ghuw-1; Thu, 29 Oct 2020 21:24:15 -0400 X-MC-Unique: nKiaQDVyNZqJuHKC09Ghuw-1 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 53EBD1868400; Fri, 30 Oct 2020 01:24:14 +0000 (UTC) Received: from [10.72.12.249] (ovpn-12-249.pek2.redhat.com [10.72.12.249]) by smtp.corp.redhat.com (Postfix) with ESMTP id 1358110027A5; Fri, 30 Oct 2020 01:24:09 +0000 (UTC) Subject: Re: [PATCH 0/2] vdpasim: allow to set MAC address To: Laurent Vivier , linux-kernel@vger.kernel.org Cc: "Michael S. Tsirkin" , virtualization@lists.linux-foundation.org References: <20201029122050.776445-1-lvivier@redhat.com> From: Jason Wang Message-ID: <105012ef-7dd2-728d-0885-521c14ae7a9c@redhat.com> Date: Fri, 30 Oct 2020 09:24:08 +0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <20201029122050.776445-1-lvivier@redhat.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2020/10/29 下午8:20, Laurent Vivier wrote: > This series starts by fixing a bug: > vdpa_sim generates a MAC address that is never show to > upper layer, and thus virtio-net generates another random > MAC address, that changes each time virtio-net is loaded > (even if vdpa_sim is not unloaded). > > Then it adds a parameter to vpa_sim module to allow the user to > set the MAC address. With that we use vdpa_sim with a stable > MAC addres, that doesn't change between reboots. > > Laurent Vivier (2): > vdpasim: fix MAC address configuration > vdpasim: allow to assign a MAC address > > drivers/vdpa/vdpa_sim/vdpa_sim.c | 17 +++++++++++++++-- > 1 file changed, 15 insertions(+), 2 deletions(-) > Acked-by: Jason Wang