aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/intel/ixgbe/ixgbe.h
diff options
context:
space:
mode:
authorAlexander Duyck <alexander.h.duyck@intel.com>2012-01-30 21:59:49 -0500
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>2012-02-10 18:56:31 -0500
commit8a0da21be84019d605af2c9a92b20a084db77de1 (patch)
treeaf839a73bafaccc65bfb35fc5ed5b15b17d6050f /drivers/net/ethernet/intel/ixgbe/ixgbe.h
parente4f740287fbfdc7b68634e93c098c8ea8de691f1 (diff)
ixgbe: Combine post-DMA processing of sk_buff fields into single function
This change combines a number of post-DMA Rx packet processing functions into a single function. The advantage of this is that it combines most of the Rx descriptor processing into one spot so it should all be warm in the cache. Signed-off-by: Alexander Duyck <alexander.h.duyck@intel.com> Tested-by: Stephen Ko <stephen.s.ko@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Diffstat (limited to 'drivers/net/ethernet/intel/ixgbe/ixgbe.h')
-rw-r--r--drivers/net/ethernet/intel/ixgbe/ixgbe.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/ethernet/intel/ixgbe/ixgbe.h b/drivers/net/ethernet/intel/ixgbe/ixgbe.h
index 882a58051a1f..2807a25e04e6 100644
--- a/drivers/net/ethernet/intel/ixgbe/ixgbe.h
+++ b/drivers/net/ethernet/intel/ixgbe/ixgbe.h
@@ -190,6 +190,7 @@ struct ixgbe_rx_queue_stats {
190 u64 non_eop_descs; 190 u64 non_eop_descs;
191 u64 alloc_rx_page_failed; 191 u64 alloc_rx_page_failed;
192 u64 alloc_rx_buff_failed; 192 u64 alloc_rx_buff_failed;
193 u64 csum_err;
193}; 194};
194 195
195enum ixbge_ring_state_t { 196enum ixbge_ring_state_t {
@@ -198,6 +199,7 @@ enum ixbge_ring_state_t {
198 __IXGBE_HANG_CHECK_ARMED, 199 __IXGBE_HANG_CHECK_ARMED,
199 __IXGBE_RX_PS_ENABLED, 200 __IXGBE_RX_PS_ENABLED,
200 __IXGBE_RX_RSC_ENABLED, 201 __IXGBE_RX_RSC_ENABLED,
202 __IXGBE_RX_CSUM_UDP_ZERO_ERR,
201}; 203};
202 204
203#define ring_is_ps_enabled(ring) \ 205#define ring_is_ps_enabled(ring) \
@@ -379,7 +381,6 @@ struct ixgbe_adapter {
379 * thus the additional *_CAPABLE flags. 381 * thus the additional *_CAPABLE flags.
380 */ 382 */
381 u32 flags; 383 u32 flags;
382#define IXGBE_FLAG_RX_CSUM_ENABLED (u32)(1)
383#define IXGBE_FLAG_MSI_CAPABLE (u32)(1 << 1) 384#define IXGBE_FLAG_MSI_CAPABLE (u32)(1 << 1)
384#define IXGBE_FLAG_MSI_ENABLED (u32)(1 << 2) 385#define IXGBE_FLAG_MSI_ENABLED (u32)(1 << 2)
385#define IXGBE_FLAG_MSIX_CAPABLE (u32)(1 << 3) 386#define IXGBE_FLAG_MSIX_CAPABLE (u32)(1 << 3)