Eric Dumazet c1a8f1f1c8 net: restore gnet_stats_basic to previous definition
In 5e140dfc1fe87eae27846f193086724806b33c7d "net: reorder struct Qdisc
for better SMP performance" the definition of struct gnet_stats_basic
changed incompatibly, as copies of this struct are shipped to
userland via netlink.

Restoring old behavior is not welcome, for performance reason.

Fix is to use a private structure for kernel, and
teach gnet_stats_copy_basic() to convert from kernel to user land,
using legacy structure (struct gnet_stats_basic)

Based on a report and initial patch from Michael Spang.

Reported-by: Michael Spang <mspang@csclub.uwaterloo.ca>
Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2009-08-17 21:33:49 -07:00
..
2009-06-03 02:51:04 -07:00
2009-06-03 02:51:04 -07:00
2008-03-17 22:46:46 -07:00
2008-11-16 23:01:49 -08:00
2008-12-29 19:40:46 -08:00
2008-11-20 04:10:00 -08:00
2009-05-06 16:45:07 -07:00
2009-06-03 02:51:04 -07:00
2009-03-21 13:36:17 -07:00