Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3157995imu; Sun, 11 Nov 2018 08:46:22 -0800 (PST) X-Google-Smtp-Source: AJdET5dsOIx15I0QFUp/GSBA9bFDCokVqhgK8bz9ZJaV8PGKfvcLjCaGWMFvPGInjE8jyuHp87b7 X-Received: by 2002:a63:5a57:: with SMTP id k23mr14372960pgm.5.1541954782297; Sun, 11 Nov 2018 08:46:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541954782; cv=none; d=google.com; s=arc-20160816; b=cLQooZbtKA1grYMIBAa5IFKCCsk9V4gNXC4mjMICtxsh8LP2zJLxvDxTCizDCPeRUz ZZmvWWxexPIIpg7jCPihvUAKjgItoPm6mqekfEhZnP2D9+3BQioD9+OcgHaQRUsQC5n5 Qst5NaP+j246ST2Ksa7bftLKJJHIRuRGkUVSj+arUyupqwUyQaPffHtUWN4XndBeDjbF YgFu1wMox87WvgkesUTm9H9A+TOsZLrVY3PU98Ad+JlyIzISR1vyJrMBENbrjabsS4yn mH8ams/50EZVGz50lIftQBA4WaqYkO3ydKXlWdU7JhuM4tewdTV2AYiITd1oCRn65dAZ a9Gw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from; bh=SwFch2oah+7/F93dB6NRlBDoPlT0KTk0dJaZPfV9ri4=; b=EUTY/G9d4FRUEtTwrduF/8jZXxH/4TJp8v5sTiHJ78ChbafVqNUF/bg1sIwmCEmSys f+jWKmRP2Xa7Yn+KLUUqc2XKnId6SdkF53KibUuElEz8ernOg1DWjthDmId49qlcD8df 0Lr4Vi7OeY1YET/qvb5Hr3gcAkMBUC+HTlyDWHWS/DG038L+8shdSGCoH68EQSqE4GN8 PKLY7gQsVr2IbWdvxRDhwlP+TULOOjl2FDSaKWAhjgOZZFhql7fdZ0VnyYpY+pCGlw+L tGoRRFCDJyy8i4K0BberBfajq+NChkCipO7uH85QvuO5zFr61Fr61m4K991j2hpXLJpk snRQ== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j6-v6si13620868pgb.62.2018.11.11.08.46.06; Sun, 11 Nov 2018 08:46:22 -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; 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 S1729209AbeKLCen convert rfc822-to-8bit (ORCPT + 99 others); Sun, 11 Nov 2018 21:34:43 -0500 Received: from lhrrgout.huawei.com ([185.176.76.210]:32732 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728378AbeKLCen (ORCPT ); Sun, 11 Nov 2018 21:34:43 -0500 Received: from lhreml702-cah.china.huawei.com (unknown [172.18.7.107]) by Forcepoint Email with ESMTP id 1F69DEECE421F; Sun, 11 Nov 2018 16:45:39 +0000 (GMT) Received: from FRAEMA701-CHM.china.huawei.com (10.206.14.50) by lhreml702-cah.china.huawei.com (10.201.108.43) with Microsoft SMTP Server (TLS) id 14.3.408.0; Sun, 11 Nov 2018 16:45:40 +0000 Received: from FRAEML521-MBS.china.huawei.com ([169.254.2.209]) by FRAEMA701-CHM.china.huawei.com ([169.254.1.146]) with mapi id 14.03.0415.000; Sun, 11 Nov 2018 17:45:32 +0100 From: Salil Mehta To: Andrew Lunn CC: "davem@davemloft.net" , "yuvalm@mellanox.com" , "leon@kernel.org" , "Zhuangyuzeng (Yisen)" , "lipeng (Y)" , "mehta.salil@opnsrc.net" , "netdev@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "linux-rdma@vger.kernel.org" , Linuxarm , Liuzhongzhu Subject: RE: [RFC PATCH 04/10] net: hns3: Add "promisc mode" config info query function Thread-Topic: [RFC PATCH 04/10] net: hns3: Add "promisc mode" config info query function Thread-Index: AQHUeHjSxcb8HNenB0mGsMs0JKMavKVH+x2AgALPj/A= Date: Sun, 11 Nov 2018 16:45:32 +0000 Message-ID: References: <20181109220743.10264-1-salil.mehta@huawei.com> <20181109220743.10264-5-salil.mehta@huawei.com> <20181109224903.GE5259@lunn.ch> In-Reply-To: <20181109224903.GE5259@lunn.ch> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.47.88.183] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > From: Andrew Lunn [mailto:andrew@lunn.ch] > Sent: Friday, November 9, 2018 10:49 PM > To: Salil Mehta > Cc: davem@davemloft.net; yuvalm@mellanox.com; leon@kernel.org; > Zhuangyuzeng (Yisen) ; lipeng (Y) > ; mehta.salil@opnsrc.net; netdev@vger.kernel.org; > linux-kernel@vger.kernel.org; linux-rdma@vger.kernel.org; Linuxarm > ; Liuzhongzhu > Subject: Re: [RFC PATCH 04/10] net: hns3: Add "promisc mode" config info > query function > > On Fri, Nov 09, 2018 at 10:07:37PM +0000, Salil Mehta wrote: > > From: liuzhongzhu > > > > This patch prints promiscuous mode status. > > netstat -i > > Iface MTU RX-OK RX-ERR RX-DRP RX-OVR TX-OK TX-ERR TX-DRP TX- > OVR Flg > lo 65536 871698 0 0 0 871698 0 0 > 0 LRU > tun0 1500 1052639 0 0 0 1013998 0 0 > 0 MOPRU > > The flag P means promisc. sure, got the point. Anything which is available in the tools should be avoided in the debugfs? Many thanks