Bug 76849
Summary: | Wrong transmit data on /proc/net/dev with isdn (ippp0) | ||
---|---|---|---|
Product: | [Retired] Red Hat Linux | Reporter: | Eddy Nigg <webmaster> |
Component: | kernel | Assignee: | Arjan van de Ven <arjanv> |
Status: | CLOSED CURRENTRELEASE | QA Contact: | Brian Brock <bbrock> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 7.0 | CC: | znmeb |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | i386 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2004-09-30 15:40:08 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Eddy Nigg
2002-10-28 06:50:25 UTC
Notified also fritz and keil authors of isdn and hisax driver I have seen cases where the byte counts (both transmit and receive)
in /proc/dev/net go up to 2^32-1 (over 4 gig) then stop counting. I'm not sure
whether this is coming from the driver or not; the code that prints this is
in /usr/src/linux/net/core/dev.c:
#ifdef CONFIG_PROC_FS
static int sprintf_stats(char *buffer, struct net_device *dev)
{
struct net_device_stats *stats = (dev->get_stats ? dev->get_stats(dev):
NULL)
;
int size;
if (stats)
size = sprintf(buffer, "%6s:%8lu %7lu %4lu %4lu %4lu %5lu %10lu
%9lu
%8lu %7lu %4lu %4lu %4lu %5lu %7lu %10lu\n",
dev->name,
stats->rx_bytes,
stats->rx_packets, stats->rx_errors,
stats->rx_dropped + stats->rx_missed_errors,
stats->rx_fifo_errors,
stats->rx_length_errors + stats->rx_over_errors
+ stats->rx_crc_errors + stats->rx_frame_errors,
stats->rx_compressed, stats->multicast,
stats->tx_bytes,
stats->tx_packets, stats->tx_errors, stats->tx_dropped,
stats->tx_fifo_errors, stats->collisions,
stats->tx_carrier_errors + stats->tx_aborted_errors
+ stats->tx_window_errors + stats->tx_heartbeat_errors,
stats->tx_compressed);
else
size = sprintf(buffer, "%6s: No statistics available.\n", dev-
>name);
return size;
}
I'm suspicious of the "%8lu" format. I looked at a few of the drivers and the
stats do appear to be 64 bits.
The bug I reported concerns only ISDN connections with slave configuration. However the comment from znmeb is interesting too... I did not get any answers until today. I have some ISDN backup connection with a master channel and many slave channels. However the transmit (UP) is reporting only the bytes of the master channel, even so the line is actually transmitting much more. Maybe the designers of isdn4linux never thought of this possibility?? Thanks for the bug report. However, Red Hat no longer maintains this version of the product. Please upgrade to the latest version and open a new bug if the problem persists. The Fedora Legacy project (http://fedoralegacy.org/) maintains some older releases, and if you believe this bug is interesting to them, please report the problem in the bug tracker at: http://bugzilla.fedora.us/ |