Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp1248044ybl; Tue, 13 Aug 2019 09:32:26 -0700 (PDT) X-Google-Smtp-Source: APXvYqzLHpmcnTj++zV4LrVcPeqoHA6O9eVD1kw+TBnLNA/DYYsb7TXMT55UQ4qFxJMkkXBDnpBD X-Received: by 2002:a17:90a:d814:: with SMTP id a20mr3027983pjv.48.1565713945913; Tue, 13 Aug 2019 09:32:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565713945; cv=none; d=google.com; s=arc-20160816; b=tbtilkguy1rC0r+J4n5b6eYGaRxtYAcnJI1C7McjWoVHcGpngMOg0n1hTJ0uot0KBo cIgNHJq3euC8LBDncPu8/DKENTSh2hXaqzJ3p3ca+AdtAmmBG7PeBZs8zA6lFHY7YD5b AV+JPtSKuP0b62VKXA5Qe0rjRklY0Ng9/CPMUeM53DMjyl5NFpUUwhRuNV2ZUcutj2sF sKVWs8H9nAMTWWUncaOtoHc53CVp5/ULK6UBYV4mO8uJXRK8CuhFVhQnCNsf/G7uI4PF 7H20HqeAqa5RMpMx00glr466y60gDoswndheXdhtGJcVXkKZLf2bstGOwJzxMOpSBcqi N27w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:to:references:cc:from:subject; bh=UrItnFcsbmDAcHAWRBZy/6eau6+FbthbwedsvtTs8lk=; b=TWRBR0csaobOBl9D+uyciRn6lO9Ki1i4sBL60eXGU+AbDh8w0cAGgmigRJGH6EGFpp 4IzeAzQFbTjEsSfrGjDaEzp04ySePQDE989mtk6puJf4KzVP1KntSZSBVSEDO9Xad9wO KAMu/g0Y2RlYVzV4ChyWnw42VYuncMibeYD7bxqsR0jGv02dZRDdZI9UzPS1fmbl/QEA s1zB4LjI0lxZtkz+kQJ6LeaVo+0ly8fT5y+USLdcKRggSO/jiVmh1lchCvgF0Yqqlk42 XjuluWIcTC92ryaPOMxJ5+nY0vUrvpy+/CWVeV/jNDjmjqmPY9TSc7VLTH17Msih7458 oKQg== 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 gn16si132218plb.97.2019.08.13.09.32.09; Tue, 13 Aug 2019 09:32:25 -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 S1727144AbfHMQbX (ORCPT + 99 others); Tue, 13 Aug 2019 12:31:23 -0400 Received: from mga11.intel.com ([192.55.52.93]:49367 "EHLO mga11.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726298AbfHMQbX (ORCPT ); Tue, 13 Aug 2019 12:31:23 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga102.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 13 Aug 2019 09:31:22 -0700 X-IronPort-AV: E=Sophos;i="5.64,382,1559545200"; d="scan'208";a="170447589" Received: from tsduncan-ubuntu.jf.intel.com (HELO [10.7.169.130]) ([10.7.169.130]) by orsmga008-auth.jf.intel.com with ESMTP/TLS/AES256-SHA; 13 Aug 2019 09:31:22 -0700 Subject: Re: [PATCH net-next] net/ncsi: allow to customize BMC MAC Address offset From: Terry Duncan Cc: Jakub Kicinski , Andrew Lunn , 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> To: Tao Ren Message-ID: Date: Tue, 13 Aug 2019 09:31:21 -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-Transfer-Encoding: 8bit Content-Language: en-US Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 >>> After giving it more thought, I'm thinking about adding ncsi dt node >>> with following structure (mac/ncsi similar to mac/mdio/phy): >>> >>> &mac0 { >>> /* MAC properties... */ >>> >>> use-ncsi; >> This property seems to be specific to Faraday FTGMAC100. Are you going >> to make it more generic? > I'm also using ftgmac100 on my platform, and I don't have plan to change this property. > >>> ncsi { >>> /* ncsi level properties if any */ >>> >>> package@0 { >> You should get Rob Herring involved. This is not really describing >> hardware, so it might get rejected by the device tree maintainer. > Got it. Thank you for the sharing, and let me think it over :-) > >>> 1) mac driver doesn't need to parse "mac-offset" stuff: these >>> ncsi-network-controller specific settings should be parsed in ncsi >>> stack. >>> 2) get_bmc_mac_address command is a channel specific command, and >>> technically people can configure different offset/formula for >>> different channels. >> Does that mean the NCSA code puts the interface into promiscuous mode? >> Or at least adds these unicast MAC addresses to the MAC receive >> filter? Humm, ftgmac100 only seems to support multicast address >> filtering, not unicast filters, so it must be using promisc mode, if >> you expect to receive frames using this MAC address. > Uhh, I actually didn't think too much about this: basically it's how to configure frame filtering when there are multiple packages/channels active: single BMC MAC or multiple BMC MAC is also allowed? > I don't have the answer yet, but will talk to NCSI expert and figure it out. > > > Thanks, > > Tao > >