Commit 04a9fc0a authored by Stephen Hemminger's avatar Stephen Hemminger

Update kernel headers to 2.6.36-rc2

parent daa10c8a
...@@ -73,6 +73,8 @@ ...@@ -73,6 +73,8 @@
#define IFF_DONT_BRIDGE 0x800 /* disallow bridging this ether dev */ #define IFF_DONT_BRIDGE 0x800 /* disallow bridging this ether dev */
#define IFF_IN_NETPOLL 0x1000 /* whether we are processing netpoll */ #define IFF_IN_NETPOLL 0x1000 /* whether we are processing netpoll */
#define IFF_DISABLE_NETPOLL 0x2000 /* disable netpoll at run-time */ #define IFF_DISABLE_NETPOLL 0x2000 /* disable netpoll at run-time */
#define IFF_MACVLAN_PORT 0x4000 /* device used as macvlan port */
#define IFF_BRIDGE_PORT 0x8000 /* device used as bridge port */
#define IF_GET_IFACE 0x0001 /* for querying only */ #define IF_GET_IFACE 0x0001 /* for querying only */
#define IF_GET_PROTO 0x0002 #define IF_GET_PROTO 0x0002
......
...@@ -119,7 +119,7 @@ struct ethhdr { ...@@ -119,7 +119,7 @@ struct ethhdr {
unsigned char h_dest[ETH_ALEN]; /* destination eth addr */ unsigned char h_dest[ETH_ALEN]; /* destination eth addr */
unsigned char h_source[ETH_ALEN]; /* source ether addr */ unsigned char h_source[ETH_ALEN]; /* source ether addr */
__be16 h_proto; /* packet type ID field */ __be16 h_proto; /* packet type ID field */
} __attribute__((packed)); } __packed;
#endif /* _LINUX_IF_ETHER_H */ #endif /* _LINUX_IF_ETHER_H */
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
#include <linux/types.h> #include <linux/types.h>
#include <linux/netlink.h> #include <linux/netlink.h>
/* The struct should be in sync with struct net_device_stats */ /* This struct should be in sync with struct rtnl_link_stats64 */
struct rtnl_link_stats { struct rtnl_link_stats {
__u32 rx_packets; /* total packets received */ __u32 rx_packets; /* total packets received */
__u32 tx_packets; /* total packets transmitted */ __u32 tx_packets; /* total packets transmitted */
...@@ -37,6 +37,7 @@ struct rtnl_link_stats { ...@@ -37,6 +37,7 @@ struct rtnl_link_stats {
__u32 tx_compressed; __u32 tx_compressed;
}; };
/* The main device statistics structure */
struct rtnl_link_stats64 { struct rtnl_link_stats64 {
__u64 rx_packets; /* total packets received */ __u64 rx_packets; /* total packets received */
__u64 tx_packets; /* total packets transmitted */ __u64 tx_packets; /* total packets transmitted */
...@@ -231,7 +232,7 @@ enum macvlan_mode { ...@@ -231,7 +232,7 @@ enum macvlan_mode {
MACVLAN_MODE_BRIDGE = 4, /* talk to bridge ports directly */ MACVLAN_MODE_BRIDGE = 4, /* talk to bridge ports directly */
}; };
/* SR-IOV virtual function managment section */ /* SR-IOV virtual function management section */
enum { enum {
IFLA_VF_INFO_UNSPEC, IFLA_VF_INFO_UNSPEC,
......
...@@ -35,43 +35,36 @@ ...@@ -35,43 +35,36 @@
/* /*
* Network device statistics. Akin to the 2.0 ether stats but * Old network device statistics. Fields are native words
* with byte counters. * (unsigned long) so they can be read and written atomically.
*/ */
struct net_device_stats { struct net_device_stats {
unsigned long rx_packets; /* total packets received */ unsigned long rx_packets;
unsigned long tx_packets; /* total packets transmitted */ unsigned long tx_packets;
unsigned long rx_bytes; /* total bytes received */ unsigned long rx_bytes;
unsigned long tx_bytes; /* total bytes transmitted */ unsigned long tx_bytes;
unsigned long rx_errors; /* bad packets received */ unsigned long rx_errors;
unsigned long tx_errors; /* packet transmit problems */ unsigned long tx_errors;
unsigned long rx_dropped; /* no space in linux buffers */ unsigned long rx_dropped;
unsigned long tx_dropped; /* no space available in linux */ unsigned long tx_dropped;
unsigned long multicast; /* multicast packets received */ unsigned long multicast;
unsigned long collisions; unsigned long collisions;
/* detailed rx_errors: */
unsigned long rx_length_errors; unsigned long rx_length_errors;
unsigned long rx_over_errors; /* receiver ring buff overflow */ unsigned long rx_over_errors;
unsigned long rx_crc_errors; /* recved pkt with crc error */ unsigned long rx_crc_errors;
unsigned long rx_frame_errors; /* recv'd frame alignment error */ unsigned long rx_frame_errors;
unsigned long rx_fifo_errors; /* recv'r fifo overrun */ unsigned long rx_fifo_errors;
unsigned long rx_missed_errors; /* receiver missed packet */ unsigned long rx_missed_errors;
/* detailed tx_errors */
unsigned long tx_aborted_errors; unsigned long tx_aborted_errors;
unsigned long tx_carrier_errors; unsigned long tx_carrier_errors;
unsigned long tx_fifo_errors; unsigned long tx_fifo_errors;
unsigned long tx_heartbeat_errors; unsigned long tx_heartbeat_errors;
unsigned long tx_window_errors; unsigned long tx_window_errors;
/* for cslip etc */
unsigned long rx_compressed; unsigned long rx_compressed;
unsigned long tx_compressed; unsigned long tx_compressed;
}; };
/* Media selection options. */ /* Media selection options. */
enum { enum {
IF_PORT_UNKNOWN = 0, IF_PORT_UNKNOWN = 0,
......
...@@ -282,6 +282,7 @@ enum rtattr_type_t { ...@@ -282,6 +282,7 @@ enum rtattr_type_t {
RTA_SESSION, /* no longer used */ RTA_SESSION, /* no longer used */
RTA_MP_ALGO, /* no longer used */ RTA_MP_ALGO, /* no longer used */
RTA_TABLE, RTA_TABLE,
RTA_MARK,
__RTA_MAX __RTA_MAX
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment