From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Ahern Subject: Re: [PATCH iproute2/net-next v3] tc_util: Add support for showing TCA_STATS_BASIC_HW statistics Date: Tue, 2 Oct 2018 15:50:16 -0600 Message-ID: <2e22873d-c03d-403c-3d7d-7b76a1259998@gmail.com> References: <20181002072658.56399.72523.stgit@wsfd-netdev20.ntdv.lab.eng.bos.redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Cc: davem@davemloft.net, stephen@networkplumber.org To: Eelco Chaudron , netdev@vger.kernel.org Return-path: Received: from mail-pg1-f195.google.com ([209.85.215.195]:40461 "EHLO mail-pg1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725832AbeJCEfq (ORCPT ); Wed, 3 Oct 2018 00:35:46 -0400 Received: by mail-pg1-f195.google.com with SMTP id n31-v6so559821pgm.7 for ; Tue, 02 Oct 2018 14:50:19 -0700 (PDT) In-Reply-To: <20181002072658.56399.72523.stgit@wsfd-netdev20.ntdv.lab.eng.bos.redhat.com> Content-Language: en-US Sender: netdev-owner@vger.kernel.org List-ID: On 10/2/18 1:27 AM, Eelco Chaudron wrote: > Add support for showing hardware specific counters to easy > troubleshooting hardware offload. > > $ tc -s filter show dev enp3s0np0 parent ffff: > filter protocol ip pref 1 flower chain 0 > filter protocol ip pref 1 flower chain 0 handle 0x1 > eth_type ipv4 > dst_ip 2.0.0.0 > src_ip 1.0.0.0 > ip_flags nofrag > in_hw > action order 1: mirred (Egress Redirect to device eth1) stolen > index 1 ref 1 bind 1 installed 0 sec used 0 sec > Action statistics: > Sent 534884742 bytes 8915697 pkt (dropped 0, overlimits 0 requeues 0) > Sent software 187542 bytes 4077 pkt > Sent hardware 534697200 bytes 8911620 pkt > backlog 0b 0p requeues 0 > cookie 89173e6a44447001becfd486bda17e29 > > > Signed-off-by: Eelco Chaudron > > --- > v3: > * Resent as kernel side is now in > * Rebased on latest iproute2-next branch > > v2: > * Removed unnecessary initialization > * Made not displaying of missing TCA_STATS_BASIC_HW more obvious > * Use _SL_ macro for single line output > > tc/tc_util.c | 41 +++++++++++++++++++++++++++++++++++++++++ > 1 file changed, 41 insertions(+) applied to iproute2-next. Thanks