Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp1525144ybl; Tue, 13 Aug 2019 14:16:49 -0700 (PDT) X-Google-Smtp-Source: APXvYqym9ILX874HiusvKNdWYiJH/HWLKlI0K576BN5I7rkVaDVkFjvnEH8cjRWlsC3yG8IB6G8/ X-Received: by 2002:a62:6c1:: with SMTP id 184mr41947505pfg.230.1565731009860; Tue, 13 Aug 2019 14:16:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565731009; cv=none; d=google.com; s=arc-20160816; b=Wag5jyPlcW2yzgwvdM5lv2iMLIS0msLF5kljB8JClOreOGCP/xTUSYbAT1Cw3eepDs ZiTwUR0ZIaeUopys+18F7+WlywVf+/Rm3iQYGi6WYnNAmNKeDiLtIt8qBOGN01YuZUEH sUNs3AGI5B8T7WRxlE3dFfDmmFdOXvwplP37bMGJBLsTBly8g4pBoi13BGHEqeDaQZeQ oXDBo/zH5xaoy9w7WEo3zVky8V5QuraXlF8x3GtwMEf+nHo41rDfMjF6fsHd/3O9eNoB WGJq0CimO4FLPSg9OmjZEsFaiYrAZ7RwQqZR/7yecxp7P5d0FYSTylG0HCiwTXoTBme3 GzWQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=j65bDlxrsRwqgU/7n2LgjyUACuh2TdzBUHf8ImD/K+Y=; b=ksdnTV+AMaYiVhjFgaryu92B2XRQ4agGjW/1sRHYXLuBSfS1l9ir3HojWAODRKWPR9 1W7u0LilncTIxK6JcA3syaHcD5F800Vxrte7VjO6wpPyFaoR529rF3GBQ3WT7Sl5Ih8F KNNvrlOQh5IPGYYrszqoDRo2+loK1YANkRwuQus8PfHNJsI4KxfjfmL00f+RFY674GEN EKetCCtkeqPyaVfJAxiIZs9wrAc24UMzVSUnAFsIULhKx2RB/IbPCGAp9b80Pig5pfV0 OTOXfvleesNDvB7M7jFMATgr6Mt3f1Ze32kSzcv6vHclg9avneAFZPqn8Ub74fOqDKJP Zs/A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p1si59185333plr.103.2019.08.13.14.16.32; Tue, 13 Aug 2019 14:16:49 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726749AbfHMVPf (ORCPT + 99 others); Tue, 13 Aug 2019 17:15:35 -0400 Received: from mga04.intel.com ([192.55.52.120]:64080 "EHLO mga04.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726188AbfHMVPf (ORCPT ); Tue, 13 Aug 2019 17:15:35 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga007.jf.intel.com ([10.7.209.58]) by fmsmga104.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 13 Aug 2019 14:15:34 -0700 X-IronPort-AV: E=Sophos;i="5.64,382,1559545200"; d="scan'208";a="167178710" Received: from tsduncan-ubuntu.jf.intel.com (HELO [10.7.169.130]) ([10.7.169.130]) by orsmga007-auth.jf.intel.com with ESMTP/TLS/AES256-SHA; 13 Aug 2019 14:15:34 -0700 Subject: Re: [PATCH net-next] net/ncsi: allow to customize BMC MAC Address offset To: Ben Wei , Tao Ren Cc: Andrew Lunn , Jakub Kicinski , "netdev@vger.kernel.org" , "openbmc@lists.ozlabs.org" , "linux-kernel@vger.kernel.org" , Samuel Mendoza-Jonas , "David S.Miller" , William Kennington References: <20190807002118.164360-1-taoren@fb.com> <20190807112518.644a21a2@cakuba.netronome.com> <20190807184143.GE26047@lunn.ch> <806a76a8-229a-7f24-33c7-2cf2094f3436@fb.com> <20190808133209.GB32706@lunn.ch> <77762b10-b8e7-b8a4-3fc0-e901707a1d54@fb.com> <20190808211629.GQ27917@lunn.ch> <20190808230312.GS27917@lunn.ch> <10079A1AC4244A41BC7939A794B72C238FCE0E03@fmsmsx104.amr.corp.intel.com> From: Terry Duncan Message-ID: <39309d92-742b-ca5f-dea5-b93ad003119d@linux.intel.com> Date: Tue, 13 Aug 2019 14:15:34 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.2 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 8/13/19 12:52 PM, Ben Wei wrote: >> On 8/13/19 9:31 AM, Terry Duncan wrote: >>> Tao, in your new patch will it be possible to disable the setting of the BMC MAC?  I would like to be able to send NCSI_OEM_GET_MAC perhaps with netlink (TBD) to get the system address without it affecting the BMC address. >>> >>> I was about to send patches to add support for the Intel adapters when I saw this thread. >>> Thanks, >>> Terry >> > Hi Terry, > Do you plan to monitor and configure NIC through use space programs via netlink? I'm curious if you have additional use cases. > I had planned to add some daemon in user space to monitor NIC through NC-SI, primarily to log AENs, check link status and retrieve NIC counters. > We can collaborate on these if they align with your needs as well. > > Also about Intel NIC, do you not plan to derive system address from BMC MAC? Is the BMC MAC independent of system address? > > Thanks, > -Ben > Hi Ben, Intel has in the past programmed BMC MACs with an offset from the system MAC address of the first shared interface. We have found this approach causes problems and adds complexity when system interfaces / OCP cards are added or removed or disabled in BIOS. Our approach in OpenBMC is to keep this simple - provide means for the BMC MAC addresses to be set in manufacturing and persist them. We do also have some of the same use cases you mention. Thanks, Terry