From patchwork Tue May 23 21:10:57 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrew Lunn X-Patchwork-Id: 766223 X-Patchwork-Delegate: davem@davemloft.net Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 3wXSrb1kWdz9s8D for ; Wed, 24 May 2017 07:11:43 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1162377AbdEWVLl (ORCPT ); Tue, 23 May 2017 17:11:41 -0400 Received: from vps0.lunn.ch ([178.209.37.122]:42164 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1162002AbdEWVLi (ORCPT ); Tue, 23 May 2017 17:11:38 -0400 Received: from andrew by vps0.lunn.ch with local (Exim 4.80) (envelope-from ) id 1dDH5B-0008QJ-Qw; Tue, 23 May 2017 23:11:09 +0200 From: Andrew Lunn To: David Miller Cc: Florian Fainelli , hayeswang , netdev , Andrew Lunn Subject: [PATCH v2 net-next 1/2] Documentation: sysfs-class-net-statistics: Clarify rx_bytes and tx_bytes Date: Tue, 23 May 2017 23:10:57 +0200 Message-Id: <1495573858-32346-2-git-send-email-andrew@lunn.ch> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1495573858-32346-1-git-send-email-andrew@lunn.ch> References: <1495573858-32346-1-git-send-email-andrew@lunn.ch> Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org Document what is expected for the rx_bytes and tx_bytes statistics in /sys/class/net//statistics. The FCS should be included in the statistics. However, since this has been unclear until now, it is expected a number of drivers don't. But maybe with time they will. Signed-off-by: Andrew Lunn --- Documentation/ABI/testing/sysfs-class-net-statistics | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Documentation/ABI/testing/sysfs-class-net-statistics b/Documentation/ABI/testing/sysfs-class-net-statistics index 397118de7b5e..a487cbb79458 100644 --- a/Documentation/ABI/testing/sysfs-class-net-statistics +++ b/Documentation/ABI/testing/sysfs-class-net-statistics @@ -21,7 +21,8 @@ Contact: netdev@vger.kernel.org Description: Indicates the number of bytes received by this network device. See the network driver for the exact meaning of when this - value is incremented. + value is incremented. However, for an Ethernet frame, it should + include the Ethernet header, data, and frame check sum. What: /sys/class//statistics/rx_compressed Date: April 2005 @@ -125,7 +126,8 @@ Description: device. See the network driver for the exact meaning of this value, in particular whether this accounts for all successfully transmitted packets or all packets that have been queued for - transmission. + transmission. For an Ethernet frame, it should include the + Ethernet header, data, and frame check sum. What: /sys/class//statistics/tx_carrier_errors Date: April 2005