From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 52AD6A04B7; Tue, 13 Oct 2020 17:00:10 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 294141DCC4; Tue, 13 Oct 2020 17:00:09 +0200 (CEST) Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by dpdk.org (Postfix) with ESMTP id B76091DBC3 for ; Tue, 13 Oct 2020 17:00:06 +0200 (CEST) IronPort-SDR: ClLgsAwQEpFTRXXrQPBwXJ+arrH+6lQzTDsaHfRMLdtrpvxOqWPafC4GikVh2hSGEfAa5kmsGr TCIAXiIDOAHA== X-IronPort-AV: E=McAfee;i="6000,8403,9772"; a="145785754" X-IronPort-AV: E=Sophos;i="5.77,371,1596524400"; d="scan'208";a="145785754" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga005.jf.intel.com ([10.7.209.41]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Oct 2020 08:00:03 -0700 IronPort-SDR: LxnBx6DK07HUKCMCQVgMDuBMMqTaIBaaMXehHtSRYYg3qA9bJ4cTpKqik0TiswD4B8zuL5GO2h Ww7/49CabCdQ== X-IronPort-AV: E=Sophos;i="5.77,371,1596524400"; d="scan'208";a="530421873" Received: from fyigit-mobl1.ger.corp.intel.com (HELO [10.213.214.64]) ([10.213.214.64]) by orsmga005-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Oct 2020 08:00:00 -0700 To: Kiran KN , "dev@dpdk.org" Cc: "chas3@att.com" , David Marchand , Thomas Monjalon , "Min Hu (Connor)" References: <96073106-5E60-4CBC-8885-B2A6CDDD40B8@juniper.net> From: Ferruh Yigit Message-ID: <00b4bc65-4ec6-4808-e638-38c454fc6576@intel.com> Date: Tue, 13 Oct 2020 15:59:57 +0100 MIME-Version: 1.0 In-Reply-To: <96073106-5E60-4CBC-8885-B2A6CDDD40B8@juniper.net> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit Subject: Re: [dpdk-dev] [PATCH] net/bonding: LACP Packet statistics support X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On 10/10/2020 11:20 AM, Kiran KN wrote: > net/bonding: LACP Packet statistics support > > Store the LACP packets sent and received for each slave. > This can be used for debug purposes from any DPDK application. > > Signed-Off-By: Kiran K N > > Change-Id: Iae82bd7d0879a4c4333a292c96d431798c56e301 No change id in the upstream patches please. <...> > @@ -1715,3 +1726,31 @@ rte_eth_bond_8023ad_dedicated_queues_disable(uint16_t port) > > return retval; > } > + > +uint64_t > +rte_eth_bond_8023ad_lacp_tx_count(uint16_t port_id, uint8_t clear) > +{ > +if(port_id > BOND_MODE_8023AD_MAX_SLAVES) > +return -1; > + > +if(clear) { > +lacpdu_tx_count[port_id] = 0; > +return 0; > +} > + > + return lacpdu_tx_count[port_id]; > +} > + > +uint64_t > +rte_eth_bond_8023ad_lacp_rx_count(uint16_t port_id, uint8_t clear) > +{ > +if(port_id > BOND_MODE_8023AD_MAX_SLAVES) > +return -1; > + > +if(clear) { > +lacpdu_rx_count[port_id] = 0; > +return 0; > +} > + Hi Kiran, Something seems went wrong with the formatting, can you please send a new version? Also can you please cc all bonding maintainers in next version?