Bug 12425 - Add 64bit interface for netlink counters
Summary: Add 64bit interface for netlink counters
Status: CLOSED INVALID
Alias: None
Product: Networking
Classification: Unclassified
Component: Other (show other bugs)
Hardware: All Linux
: P1 normal
Assignee: Arnaldo Carvalho de Melo
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-01-11 03:06 UTC by Norman Rasmussen
Modified: 2012-05-24 14:14 UTC (History)
1 user (show)

See Also:
Kernel Version: 2.6.26
Subsystem:
Regression: No
Bisected commit-id:


Attachments

Description Norman Rasmussen 2009-01-11 03:06:28 UTC
This is more of a feature request tracker, than a bug, but here we go:

Problem Description:

Currently the netlink statistics are limited to 32bit, but there have been varied requests over the last few years to add a 64bit interface for statistics.

Additionally it would be useful if the 64bit counters would work correctly on both 32bit kernels (with magic locking required to make the double 32bit value increment safely), and 64bit kernels (easy).

refs:

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=199054
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=487543
http://marc.info/?l=linux-netdev&m=118415534518953
http://kerneltrap.org/mailarchive/linux-netdev/2008/2/13/844984/thread

Steps to reproduce:

Transfer more than 4gb on a 32bit machine.  Observe that ifconfig, iproute2 and pppstats show interface stats as < 4gb.

(note that the netfilter team already have 64bit counters on their rules, so this is not impractical)

Note You need to log in before you can comment on or make changes to this bug.