diff options
author | Alexander Duyck <alexander.h.duyck@intel.com> | 2010-11-16 22:27:02 -0500 |
---|---|---|
committer | Jeff Kirsher <jeffrey.t.kirsher@intel.com> | 2010-11-16 22:27:02 -0500 |
commit | aa80175a539a47fd11e2fbf1696a29f7a2652930 (patch) | |
tree | ad7d4a339c154bc79beea411174ad86b222c7e4d /drivers/net/ixgbe/ixgbe.h | |
parent | ee9e0f0b40c4fb4ad71d677c094d518db42f7076 (diff) |
ixgbe: cleanup use of ixgbe_rsc_count and RSC_CB
This change cleans up the use of rsc_count and changes it to a boolean since
the actual numerical value is used nowhere in the Rx cleanup path. I am
also moving the skb count into the RSC_CB path since it is much easier to
track it there than when it is passed as a parameter to various function
calls.
Signed-off-by: Alexander Duyck <alexander.h.duyck@intel.com>
Tested-by: Ross Brattain <ross.b.brattain@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Diffstat (limited to 'drivers/net/ixgbe/ixgbe.h')
-rw-r--r-- | drivers/net/ixgbe/ixgbe.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/net/ixgbe/ixgbe.h b/drivers/net/ixgbe/ixgbe.h index 160ce9234546..6d9fcb4e0854 100644 --- a/drivers/net/ixgbe/ixgbe.h +++ b/drivers/net/ixgbe/ixgbe.h | |||
@@ -467,6 +467,13 @@ enum ixbge_state_t { | |||
467 | __IXGBE_SFP_MODULE_NOT_FOUND | 467 | __IXGBE_SFP_MODULE_NOT_FOUND |
468 | }; | 468 | }; |
469 | 469 | ||
470 | struct ixgbe_rsc_cb { | ||
471 | dma_addr_t dma; | ||
472 | u16 skb_cnt; | ||
473 | bool delay_unmap; | ||
474 | }; | ||
475 | #define IXGBE_RSC_CB(skb) ((struct ixgbe_rsc_cb *)(skb)->cb) | ||
476 | |||
470 | enum ixgbe_boards { | 477 | enum ixgbe_boards { |
471 | board_82598, | 478 | board_82598, |
472 | board_82599, | 479 | board_82599, |