From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stephen Hemminger Subject: Re: [PATCH iproute2/net-next v2] tc_util: Add support for showing TCA_STATS_BASIC_HW statistics Date: Fri, 10 Aug 2018 07:44:54 -0700 Message-ID: <20180810074454.4af9e5cd@xeon-e3> References: <20180810115846.15762.3693.stgit@wsfd-netdev20.ntdv.lab.eng.bos.redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: netdev@vger.kernel.org, davem@davemloft.net To: Eelco Chaudron Return-path: Received: from mail-pg1-f194.google.com ([209.85.215.194]:44251 "EHLO mail-pg1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727477AbeHJRPN (ORCPT ); Fri, 10 Aug 2018 13:15:13 -0400 Received: by mail-pg1-f194.google.com with SMTP id r1-v6so4497480pgp.11 for ; Fri, 10 Aug 2018 07:45:02 -0700 (PDT) In-Reply-To: <20180810115846.15762.3693.stgit@wsfd-netdev20.ntdv.lab.eng.bos.redhat.com> Sender: netdev-owner@vger.kernel.org List-ID: On Fri, 10 Aug 2018 07:59:30 -0400 Eelco Chaudron wrote: > + if (bs.bytes >= bs_hw.bytes && bs.packets >= bs_hw.packets) { > + print_string(PRINT_FP, NULL, "%s", _SL_); > + print_string(PRINT_FP, NULL, "%s", prefix); > + print_lluint(PRINT_ANY, "sw_bytes", > + "Sent software %llu bytes", > + bs.bytes - bs_hw.bytes); > + print_uint(PRINT_ANY, "sw_packets", " %u pkt", > + bs.packets - bs_hw.packets); > + } > + } > + > + print_string(PRINT_FP, NULL, "%s", _SL_); > + print_string(PRINT_FP, NULL, "%s", prefix); > + print_lluint(PRINT_ANY, "hw_bytes", "Sent hardware %llu bytes", > + bs_hw.bytes); What does the output look like?