diff options
Diffstat (limited to 'drivers/net/ixgbe/ixgbe.h')
-rw-r--r-- | drivers/net/ixgbe/ixgbe.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/net/ixgbe/ixgbe.h b/drivers/net/ixgbe/ixgbe.h index d98113472a89..956914a5028d 100644 --- a/drivers/net/ixgbe/ixgbe.h +++ b/drivers/net/ixgbe/ixgbe.h | |||
@@ -32,6 +32,7 @@ | |||
32 | #include <linux/types.h> | 32 | #include <linux/types.h> |
33 | #include <linux/pci.h> | 33 | #include <linux/pci.h> |
34 | #include <linux/netdevice.h> | 34 | #include <linux/netdevice.h> |
35 | #include <linux/inet_lro.h> | ||
35 | 36 | ||
36 | #include "ixgbe_type.h" | 37 | #include "ixgbe_type.h" |
37 | #include "ixgbe_common.h" | 38 | #include "ixgbe_common.h" |
@@ -100,6 +101,9 @@ | |||
100 | #define IXGBE_TX_FLAGS_VLAN_MASK 0xffff0000 | 101 | #define IXGBE_TX_FLAGS_VLAN_MASK 0xffff0000 |
101 | #define IXGBE_TX_FLAGS_VLAN_SHIFT 16 | 102 | #define IXGBE_TX_FLAGS_VLAN_SHIFT 16 |
102 | 103 | ||
104 | #define IXGBE_MAX_LRO_DESCRIPTORS 8 | ||
105 | #define IXGBE_MAX_LRO_AGGREGATE 32 | ||
106 | |||
103 | /* wrapper around a pointer to a socket buffer, | 107 | /* wrapper around a pointer to a socket buffer, |
104 | * so a DMA handle can be stored along with the buffer */ | 108 | * so a DMA handle can be stored along with the buffer */ |
105 | struct ixgbe_tx_buffer { | 109 | struct ixgbe_tx_buffer { |
@@ -150,6 +154,8 @@ struct ixgbe_ring { | |||
150 | /* cpu for tx queue */ | 154 | /* cpu for tx queue */ |
151 | int cpu; | 155 | int cpu; |
152 | #endif | 156 | #endif |
157 | struct net_lro_mgr lro_mgr; | ||
158 | bool lro_used; | ||
153 | struct ixgbe_queue_stats stats; | 159 | struct ixgbe_queue_stats stats; |
154 | u8 v_idx; /* maps directly to the index for this ring in the hardware | 160 | u8 v_idx; /* maps directly to the index for this ring in the hardware |
155 | * vector array, can also be used for finding the bit in EICR | 161 | * vector array, can also be used for finding the bit in EICR |
@@ -287,6 +293,9 @@ struct ixgbe_adapter { | |||
287 | 293 | ||
288 | unsigned long state; | 294 | unsigned long state; |
289 | u64 tx_busy; | 295 | u64 tx_busy; |
296 | u64 lro_aggregated; | ||
297 | u64 lro_flushed; | ||
298 | u64 lro_no_desc; | ||
290 | }; | 299 | }; |
291 | 300 | ||
292 | enum ixbge_state_t { | 301 | enum ixbge_state_t { |