From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Ahern Subject: Re: [PATCH iproute2-next] ip: Add violation counters to VF statisctics Date: Wed, 25 Jul 2018 11:00:58 -0600 Message-ID: References: <1532255472-30759-1-git-send-email-eranbe@mellanox.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Cc: netdev@vger.kernel.org To: Eran Ben Elisha , Stephen Hemminger Return-path: Received: from mail-pg1-f194.google.com ([209.85.215.194]:46703 "EHLO mail-pg1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728634AbeGYSNe (ORCPT ); Wed, 25 Jul 2018 14:13:34 -0400 Received: by mail-pg1-f194.google.com with SMTP id p23-v6so5698132pgv.13 for ; Wed, 25 Jul 2018 10:01:01 -0700 (PDT) In-Reply-To: <1532255472-30759-1-git-send-email-eranbe@mellanox.com> Content-Language: en-US Sender: netdev-owner@vger.kernel.org List-ID: On 7/22/18 4:31 AM, Eran Ben Elisha wrote: > Extend VFs statistics by receive and transmit violation counters. > > Example: "ip -s link show dev enp5s0f0" > > 6: enp5s0f0: mtu 1500 qdisc mq state UP mode DEFAULT group default qlen 1000 > link/ether 24:8a:07:a5:28:f0 brd ff:ff:ff:ff:ff:ff > RX: bytes packets errors dropped overrun mcast > 0 0 0 0 0 2 > TX: bytes packets errors dropped carrier collsns > 1406 17 0 0 0 0 > vf 0 MAC 00:00:ca:fe:ca:fe, vlan 5, spoof checking off, link-state auto, trust off, query_rss off > RX: bytes packets mcast bcast dropped > 1666 29 14 32 0 > TX: bytes packets dropped > 2880 44 2412 > > Signed-off-by: Eran Ben Elisha > --- > ip/ipaddress.c | 20 ++++++++++++++++++-- > 1 file changed, 18 insertions(+), 2 deletions(-) > applied to iproute2-next. Thanks