Received: by 2002:a25:b794:0:0:0:0:0 with SMTP id n20csp7441802ybh; Thu, 8 Aug 2019 16:06:05 -0700 (PDT) X-Google-Smtp-Source: APXvYqze/kZPnxJoeCS88WY4i101qk647Zhz6psoYmFyFtoEyAM+w6Rx5avMCK0zfPwO/OvPuDk2 X-Received: by 2002:a63:48c:: with SMTP id 134mr14932684pge.386.1565305565087; Thu, 08 Aug 2019 16:06:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565305565; cv=none; d=google.com; s=arc-20160816; b=SJMGSIux5V9gm2t79ZGfl11XBkamf2TbIgoYVLOEuWyvmm7aUBaQMWCYXITd2E/AaL B0/XtXOuL/XhpudQ9m/XodY0vs+oCMzH5AXp/JVyPeJmvNmBw2mBt4CQnBBf7NN01kKv Wjx+rZi9alSotSGGJnVAC7/BGUoRBI8AndD7cFWuY8MTI4bf4xUKIlPrsFOpPNX+QW3s r2AFWrnTTTIEplifeZyuVdcKw5EEs+28Ng6npDguneonUG1vG2MDDBFBiJana2MY4N8W BuXNgeiBSlYNs00sa/aA6OkjnaYrYWXOAFFT7KQBJShn3GWPq2heTVgO54/nbY7dkB0Z 0lhA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=0qysza0t5x4YnR1J1GnXkteIKUHwo96QeVpN+I6T7gg=; b=XO1ch8sBqUPmgbm2oq8saszhrf5aPINe5Qh/TQt1vqWQjElhJCEF9t7uEsR4ZQH3Ir MHBNKtGzA2YTo2+4ZafELDLneBHsy1raj4w+DjIjapNpzdmrAUNAGMjWVh0ppk/45+vm iktE/etGs9fZ9h9Llaf0wm7zljbDdWMfvHlQ/eh7euToonqc/OYTBL7WQXcEhs8py84K zpKJka3cjEtatJboCYa+YuDp1LTUH7HtCJmDPzdnqly3zsORdDconwGPcU2PFTz7g3Gc qVRsUdNOvMPurFAe3bTQi8Sd8/982eR7g9pAWjA7T+Pn9ZuToPkhlX4Jg0n1ChwHLxXt GnsQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@lunn.ch header.s=20171124 header.b=o0rmPI6a; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m17si54683188pgg.539.2019.08.08.16.05.49; Thu, 08 Aug 2019 16:06:05 -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; dkim=fail header.i=@lunn.ch header.s=20171124 header.b=o0rmPI6a; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2404766AbfHHXD0 (ORCPT + 99 others); Thu, 8 Aug 2019 19:03:26 -0400 Received: from vps0.lunn.ch ([185.16.172.187]:45982 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731914AbfHHXDZ (ORCPT ); Thu, 8 Aug 2019 19:03:25 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Type:MIME-Version:References:Message-ID: Subject:Cc:To:From:Date:Sender:Reply-To:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=0qysza0t5x4YnR1J1GnXkteIKUHwo96QeVpN+I6T7gg=; b=o0rmPI6ayeZn/8BYyfgQ7TOORf f1n13nWBm6NtHgZsZnaqWz2QwjG8/qqWGYrbUOmoUcIcTjc8at5i+H3MC9LaRnHzI1ffi7xx1HW6R wi0JRvV9m6/A05EApxOHCp6klE5322C0XdtsRr9Q9dSPZ4S6o1+My1Tu6v/W+BwGugec=; Received: from andrew by vps0.lunn.ch with local (Exim 4.89) (envelope-from ) id 1hvrRA-0006fc-TS; Fri, 09 Aug 2019 01:03:12 +0200 Date: Fri, 9 Aug 2019 01:03:12 +0200 From: Andrew Lunn To: Tao Ren Cc: Jakub Kicinski , "netdev@vger.kernel.org" , "openbmc@lists.ozlabs.org" , "linux-kernel@vger.kernel.org" , Samuel Mendoza-Jonas , "David S . Miller" , William Kennington Subject: Re: [PATCH net-next] net/ncsi: allow to customize BMC MAC Address offset Message-ID: <20190808230312.GS27917@lunn.ch> 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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > 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? > 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. > 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. Andrew