From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.9 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 06059C2D0A3 for ; Thu, 29 Oct 2020 12:25:04 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 7F42020796 for ; Thu, 29 Oct 2020 12:25:03 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="Ta27j+18" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725785AbgJ2MXD (ORCPT ); Thu, 29 Oct 2020 08:23:03 -0400 Received: from us-smtp-delivery-124.mimecast.com ([216.205.24.124]:41896 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725613AbgJ2MXD (ORCPT ); Thu, 29 Oct 2020 08:23:03 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1603974182; 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; bh=VsGY64wc+hD5SlzcuKwVLp8jJY3JLUIdMZBJzQEsGWE=; b=Ta27j+18LFVnROEpLty3cRXG4umLKl1tu+bjT+/bGCXfO/Y0ET1CwTIhbyzAjCMquDUKLW QKQ8/ggJPa8wiqK7GBwmXSWRrFifnC2WS+OUK7fdTRdGcSNj9YPM0aki8jaMadxW9jVYB5 8lr1qTXFaVXqNiqSSfYU4Gq+BLlnSBk= 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-130-Z7O9eMgDMRWqA0HNr7kjlg-1; Thu, 29 Oct 2020 08:20:53 -0400 X-MC-Unique: Z7O9eMgDMRWqA0HNr7kjlg-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 C5E78879525; Thu, 29 Oct 2020 12:20:52 +0000 (UTC) Received: from thinkpad.redhat.com (ovpn-113-197.ams2.redhat.com [10.36.113.197]) by smtp.corp.redhat.com (Postfix) with ESMTP id 63BA155764; Thu, 29 Oct 2020 12:20:51 +0000 (UTC) From: Laurent Vivier To: linux-kernel@vger.kernel.org Cc: "Michael S. Tsirkin" , virtualization@lists.linux-foundation.org, Jason Wang , Laurent Vivier Subject: [PATCH 0/2] vdpasim: allow to set MAC address Date: Thu, 29 Oct 2020 13:20:48 +0100 Message-Id: <20201029122050.776445-1-lvivier@redhat.com> Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This series starts by fixing a bug:=0D vdpa_sim generates a MAC address that is never show to=0D upper layer, and thus virtio-net generates another random=0D MAC address, that changes each time virtio-net is loaded=0D (even if vdpa_sim is not unloaded).=0D =0D Then it adds a parameter to vpa_sim module to allow the user to=0D set the MAC address. With that we use vdpa_sim with a stable=0D MAC addres, that doesn't change between reboots.=0D =0D Laurent Vivier (2):=0D vdpasim: fix MAC address configuration=0D vdpasim: allow to assign a MAC address=0D =0D drivers/vdpa/vdpa_sim/vdpa_sim.c | 17 +++++++++++++++--=0D 1 file changed, 15 insertions(+), 2 deletions(-)=0D =0D -- =0D 2.26.2=0D =0D