summaryrefslogtreecommitdiffstats
path: root/drivers/net/ixgbe/ixgbe.h
diff options
context:
space:
mode:
authorAlexander Duyck2010-11-17 04:27:02 +0100
committerJeff Kirsher2010-11-17 04:27:02 +0100
commitaa80175a539a47fd11e2fbf1696a29f7a2652930 (patch)
treead7d4a339c154bc79beea411174ad86b222c7e4d /drivers/net/ixgbe/ixgbe.h
parentixgbe: cleanup ATR filter setup function (diff)
downloadkernel-qcow2-linux-aa80175a539a47fd11e2fbf1696a29f7a2652930.tar.gz
kernel-qcow2-linux-aa80175a539a47fd11e2fbf1696a29f7a2652930.tar.xz
kernel-qcow2-linux-aa80175a539a47fd11e2fbf1696a29f7a2652930.zip
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.h7
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 {
__IXGBE_SFP_MODULE_NOT_FOUND
};
+struct ixgbe_rsc_cb {
+ dma_addr_t dma;
+ u16 skb_cnt;
+ bool delay_unmap;
+};
+#define IXGBE_RSC_CB(skb) ((struct ixgbe_rsc_cb *)(skb)->cb)
+
enum ixgbe_boards {
board_82598,
board_82599,