Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp8133145imu; Tue, 4 Dec 2018 03:34:51 -0800 (PST) X-Google-Smtp-Source: AFSGD/XithdioaQUud4X3EIiQv/y0BEnAY3kvGtWjH7ci1vDYiz1G8bQgbrO6Kzte5UBzuwmgYgI X-Received: by 2002:a17:902:6113:: with SMTP id t19mr19021604plj.248.1543923291004; Tue, 04 Dec 2018 03:34:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543923290; cv=none; d=google.com; s=arc-20160816; b=S+euq7dF27N96Fq7i5XHR7rywNm8dZIG6AawyXZW/9g18jsdAyQoTFLzgGLcm7zIqd 7dZMwAQg69KSUusz6t3JnxddtNwClyK2o9AEanlG9kKsD6DK3kmjmW9A7gB6TE53ElG5 IsfIWKp/xNeZrqK5/3Xq/0eHLlfAxwh9bkQuXDb9BXnBVjMGklUYVTSEbNaAFM0fBRsU b74gtDonjzlcWf0CWvjxzZogRJDvP09L4qYC6wnKaWlNp+znmRlf4B9jHoE6+6CDB+o8 P2WH+E+I7tD6stTa0jVJxhOi83lShmsP5vo2CDBlkjVEhhML/LIs85C0675sa3bkJmn6 Q/gQ== 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=akao7bDqVnOLFAOjTa5OelMU9PLw3ZKO17jDS0SylgI=; b=FiFHcu/3EBU+UHNclWnEm0uOGW9OjHh0JAnoQ9gdHHPdHSMQ/jFxwyvFtyXgBocIZd cZdxdT2+Lc4VCgKQlh0K/QmtZWrCYXcFQT81RHUxGkh3Ai+0GEPlwLo4UPOJ6ODgcLGy Uw3S3U7anTlxAG5FyezDdOfbOzN3sqX/nZPCTZxdy/xbQ61SXGZfLME/D7uIKN3ctX/Q GMdIePV6ExLmPtzc796kOHnI1yKDmvqHTd5l4xHSlNZkgRZ1gW6fJyAbeldr368y6Pib wxOqxsKGxxz51ITyuNCOvKLo7eXhHidoCikybzDB5ahA/nlYCJ9X4/LWBAQ1oYl3UTl6 nqwQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b="alSOQM/m"; 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 b17si14067299pgk.581.2018.12.04.03.34.35; Tue, 04 Dec 2018 03:34:50 -0800 (PST) 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=pass header.i=@lunn.ch header.s=20171124 header.b="alSOQM/m"; 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 S1726762AbeLDLcj (ORCPT + 99 others); Tue, 4 Dec 2018 06:32:39 -0500 Received: from vps0.lunn.ch ([185.16.172.187]:60457 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726377AbeLDK4A (ORCPT ); Tue, 4 Dec 2018 05:56:00 -0500 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; bh=akao7bDqVnOLFAOjTa5OelMU9PLw3ZKO17jDS0SylgI=; b=alSOQM/mP2Hnu80S2eHan2WTuLJAlTUhMnT0G5AqeCMaCsb4K+w1oshPyumvj8n44n/rSaqG3K2jfZ8zuCGlvjrgqjkQXl9Cjv1ma6GpFGAf4uiJpftFmy1yrfQJHXg6f5hQZClUQGrSBfgP6Hx6k6A2ve/LHhKjMhJh857GS30=; Received: from andrew by vps0.lunn.ch with local (Exim 4.84_2) (envelope-from ) id 1gU8Ms-0000W0-CM; Tue, 04 Dec 2018 11:55:54 +0100 Date: Tue, 4 Dec 2018 11:55:54 +0100 From: Andrew Lunn To: Salil Mehta Cc: David Miller , "jakub.kicinski@netronome.com" , "Zhuangyuzeng (Yisen)" , "lipeng (Y)" , "mehta.salil@opnsrc.net" , "netdev@vger.kernel.org" , "linux-kernel@vger.kernel.org" , Linuxarm , Liuzhongzhu , "jiri@resnulli.us" , "f.fainelli@gmail.com" Subject: Re: [RFC net-next 3/9] net: hns3: Add "port vlan table" information query function Message-ID: <20181204105554.GD741@lunn.ch> References: <20181202230933.15560-1-salil.mehta@huawei.com> <20181202230933.15560-4-salil.mehta@huawei.com> <20181203151222.6e56efcd@cakuba.netronome.com> <20181203.151253.1348214769326219632.davem@davemloft.net> 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 > > > Adding debugfs files for basic switch concepts like MAC and VLAN tables > > > seems like a bit of a stretch to me. I wonder what others think. > > > > Agreed. > > > I was wondering how other vendors are solving this? One way I could > understand is to use "Switchdev" framework which in turn will expose > entries to the kernel using the switch driver. In our NIC we don't > have a proper switch and it cannot learn/age entries. Your hardware is there to accelerate what linux can do in software. How do we manage the software version of this feature? > Also, on-SoC NIC contains other tables which might not have any standard > user-space interface at all. What are your suggestions regarding that? How are these tables map to software features the Linux stack implements? Andrew