Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp45861pxu; Thu, 3 Dec 2020 18:58:52 -0800 (PST) X-Google-Smtp-Source: ABdhPJykbDc9gwofiMnfr+TyEbILyl0MJ5FKSAcJMFOU90Ucmrz3rrHBBNtcduGzS6sCBIin1dH1 X-Received: by 2002:a50:d888:: with SMTP id p8mr5647346edj.147.1607050732078; Thu, 03 Dec 2020 18:58:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607050732; cv=none; d=google.com; s=arc-20160816; b=WqXJCZc9rtud/0km4kP62jeMtH3L3MmvnTQGsN8pDxyBNV5KwWBRxKPCa74p50jFOS GSQwQFIvwAxnMvWRftpY1e7p7hWrkBTmZXl36K7G8RezXS/95IFpPm+TyOkgWLbC15YB Iy3de5FFoPSb3SWHsjYzKCWciREJc1S4FWwkmrPqeUqSb/UDsJFQLyZq+UIhyOkWiKxW 44jhe4wBtmk9NC1UI0Of65HyBY+fMPhecI8BmYelypaeCcRviedJOr/XdJuGf7rFuU73 XtxhCMdCO9xYDv4BwLGwE+Snf2tH/4q5NGvDKKzve29rgsS/HE5593Lqa048PBg06NXc B+Hw== 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=aYyPItDtofx2TMiKK9YfkgNw2PWQqyYSINgpGlu4IEI=; b=Ys2XKnxAEFMWbjKY0cOThguNX30chd+bWgFyJwDYnT7ceU33ruOEI1HG88yZ/rjrfa RF9+zuWZlB6yghQ9rzxL4LWFTAjUYAHUBYmcO3OrQVQyvXCdEJUtd2EeLOiuPL8qzlgg v8HI78h/wq7Mk9LwKB9fH1mNlmWwztA2mCazJ/3/BPkkwqEQqchkyoA3LBJqMNdu4Bi1 8UiUnlEtcolPSFMzcBs8Vv8qAZeg2usSbLPPRC6o52vRxmhe6xueIddnROZxX9y3N5a5 JgQnAIpr2/LwQzKCYLM4MhtNKifYnckkaKVAz3jCqfO6kro1wPwbByPJHYcARU3jHbSD O5cw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="gUSA/Sjx"; 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 b4si554818ejc.589.2020.12.03.18.58.28; Thu, 03 Dec 2020 18:58:52 -0800 (PST) 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="gUSA/Sjx"; 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 S1726898AbgLDCzG (ORCPT + 99 others); Thu, 3 Dec 2020 21:55:06 -0500 Received: from us-smtp-delivery-124.mimecast.com ([216.205.24.124]:49108 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726316AbgLDCzG (ORCPT ); Thu, 3 Dec 2020 21:55:06 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1607050419; 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=aYyPItDtofx2TMiKK9YfkgNw2PWQqyYSINgpGlu4IEI=; b=gUSA/SjxoCxI9x3FN6DifIdoNA154nK6SLocmpA8Tvkbn0+AF/W0BVI+u6IG4CIlrgnVt6 Gz3adV/PoGwHcHEW2wLBfiYmKwEzmC1KRCYpepqswdv1wR4lHtUt6amaYTe6I8XSboGOSz V4BcWWSfvL7krLK9hcROp7lpMrbI/hs= 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-509-9UnpziFBPRC6VoqCTN-m8A-1; Thu, 03 Dec 2020 21:53:36 -0500 X-MC-Unique: 9UnpziFBPRC6VoqCTN-m8A-1 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id EC12F8049C1; Fri, 4 Dec 2020 02:53:34 +0000 (UTC) Received: from [10.72.12.116] (ovpn-12-116.pek2.redhat.com [10.72.12.116]) by smtp.corp.redhat.com (Postfix) with ESMTP id 3EBC41A4D0; Fri, 4 Dec 2020 02:53:29 +0000 (UTC) Subject: Re: [PATCH] vdpa/mlx5: Use random MAC for the vdpa net instance To: Eli Cohen , "Michael S. Tsirkin" Cc: Cindy Lu , virtualization@lists.linux-foundation.org, linux-kernel@vger.kernel.org References: <20201202055714.GA224423@mtl-vdi-166.wap.labs.mlnx> <20201202041518-mutt-send-email-mst@kernel.org> <3e32ef6d-83c9-5866-30e5-f6eeacd5044d@redhat.com> <20201202165932-mutt-send-email-mst@kernel.org> <20201203064928.GA27404@mtl-vdi-166.wap.labs.mlnx> <20201203054330-mutt-send-email-mst@kernel.org> <20201203120929.GA38007@mtl-vdi-166.wap.labs.mlnx> <20201203071414-mutt-send-email-mst@kernel.org> <20201203122421.GB38007@mtl-vdi-166.wap.labs.mlnx> From: Jason Wang Message-ID: Date: Fri, 4 Dec 2020 10:53:28 +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: <20201203122421.GB38007@mtl-vdi-166.wap.labs.mlnx> 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.23 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2020/12/3 下午8:24, Eli Cohen wrote: >>> It is mentioned in Parav's patchset that this will be coming in a >>> subsequent patch to his vdpa tool. >> So I think kernel has two options: >> - require a mac when device is created, we supply it to guest > Yes, the driver should always set VIRTIO_NET_F_MAC and provide a MAC - > either random or whatever configured using the vdpa too. A questions here, I think current mlx5 vdpa works for VF only. So I think the VF should have a given MAC? If yes, can we use that MAC? Thanks >