git://ftp.safe.ca
/
safe
/
jmp
/
linux-2.6
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
igb: Implement reading of reg RQDPC (Receive Queue Drop Packet Count)
[safe/jmp/linux-2.6]
/
drivers
/
net
/
igb
/
igb.h
diff --git
a/drivers/net/igb/igb.h
b/drivers/net/igb/igb.h
index
154c5ac
..
b2c98de
100644
(file)
--- a/
drivers/net/igb/igb.h
+++ b/
drivers/net/igb/igb.h
@@
-137,11
+137,17
@@
struct igb_buffer {
};
};
};
};
-struct igb_queue_stats {
+struct igb_
tx_
queue_stats {
u64 packets;
u64 bytes;
};
u64 packets;
u64 bytes;
};
+struct igb_rx_queue_stats {
+ u64 packets;
+ u64 bytes;
+ u64 drops;
+};
+
struct igb_ring {
struct igb_adapter *adapter; /* backlink */
void *desc; /* descriptor ring memory */
struct igb_ring {
struct igb_adapter *adapter; /* backlink */
void *desc; /* descriptor ring memory */
@@
-167,12
+173,13
@@
struct igb_ring {
union {
/* TX */
struct {
union {
/* TX */
struct {
- struct igb_queue_stats tx_stats;
+ struct igb_
tx_
queue_stats tx_stats;
bool detect_tx_hung;
};
/* RX */
struct {
bool detect_tx_hung;
};
/* RX */
struct {
- struct igb_queue_stats rx_stats;
+ struct igb_rx_queue_stats rx_stats;
+ u64 rx_queue_drops;
struct napi_struct napi;
int set_itr;
struct igb_ring *buddy;
struct napi_struct napi;
int set_itr;
struct igb_ring *buddy;