All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] netdev: re-expose net_device_stats to user headers
@ 2010-08-23 15:32 Stephen Hemminger
  2010-08-23 15:43 ` Ben Hutchings
  0 siblings, 1 reply; 9+ messages in thread
From: Stephen Hemminger @ 2010-08-23 15:32 UTC (permalink / raw)
  To: David Miller; +Cc: Ben Hutchings, netdev

This commit broke iproute2 build:

commit be1f3c2c027cc5ad735df6a45a542ed1db7ec48b
Author: Ben Hutchings <bhutchings@solarflare.com>
Date:   Tue Jun 8 07:19:54 2010 +0000

    net: Enable 64-bit net device statistics on 32-bit architectures
    
    Use struct rtnl_link_stats64 as the statistics structure.

Iproute2 uses a the kernel exported headers, and the structure
net_device_stats which is part of the netlink IFLA_STATS message
was no longer exposed.

Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
---
This patch needs to be applied to net-2.6 (2.6.36)
    

--- a/include/linux/netdevice.h	2010-08-23 08:22:17.801906612 -0700
+++ b/include/linux/netdevice.h	2010-08-23 08:25:23.502078638 -0700
@@ -165,6 +165,8 @@ static inline bool dev_xmit_complete(int
 #define MAX_HEADER (LL_MAX_HEADER + 48)
 #endif
 
+#endif  /*  __KERNEL__  */
+
 /*
  *	Old network device statistics. Fields are native words
  *	(unsigned long) so they can be read and written atomically.
@@ -196,9 +198,6 @@ struct net_device_stats {
 	unsigned long	tx_compressed;
 };
 
-#endif  /*  __KERNEL__  */
-
-
 /* Media selection options. */
 enum {
         IF_PORT_UNKNOWN = 0,

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2010-08-23 20:39 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-08-23 15:32 [PATCH] netdev: re-expose net_device_stats to user headers Stephen Hemminger
2010-08-23 15:43 ` Ben Hutchings
2010-08-23 16:17   ` Stephen Hemminger
2010-08-23 16:54     ` [PATCH] iproute2: add 64bit support to ifstat Eric Dumazet
2010-08-23 17:33       ` Stephen Hemminger
2010-08-23 19:44         ` Eric Dumazet
2010-08-23 20:06           ` Stephen Hemminger
2010-08-23 20:28             ` Eric Dumazet
2010-08-23 20:39               ` Stephen Hemminger

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.