aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/intel/igb/igb.h
diff options
context:
space:
mode:
authorAlexander Duyck <alexander.h.duyck@intel.com>2011-08-26 03:44:05 -0400
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>2011-09-20 02:59:14 -0400
commit6013690699dd8316f4018324a6c2d90377d50d2c (patch)
tree231af400a337c7025cc19ffcb353697aa38ce88e /drivers/net/ethernet/intel/igb/igb.h
parentcd392f5ca976b5ad166acc368c239cce2f0df58a (diff)
igb: Replace E1000_XX_DESC_ADV with IGB_XX_DESC
Since igb only uses advanced descriptors we might as well just use an IGB specific define and drop the _ADV suffix for the descriptor declarations. In addition this can be further reduced by assuming that it will be working on pointers since that is normally how the Tx descriptors are handled. Signed-off-by: Alexander Duyck <alexander.h.duyck@intel.com> Tested-by: Aaron Brown <aaron.f.brown@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Diffstat (limited to 'drivers/net/ethernet/intel/igb/igb.h')
-rw-r--r--drivers/net/ethernet/intel/igb/igb.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/net/ethernet/intel/igb/igb.h b/drivers/net/ethernet/intel/igb/igb.h
index b1ca8ea385eb..8607a1d6aa80 100644
--- a/drivers/net/ethernet/intel/igb/igb.h
+++ b/drivers/net/ethernet/intel/igb/igb.h
@@ -232,12 +232,12 @@ struct igb_ring {
232 232
233#define IGB_ADVTXD_DCMD (E1000_TXD_CMD_EOP | E1000_TXD_CMD_RS) 233#define IGB_ADVTXD_DCMD (E1000_TXD_CMD_EOP | E1000_TXD_CMD_RS)
234 234
235#define E1000_RX_DESC_ADV(R, i) \ 235#define IGB_RX_DESC(R, i) \
236 (&(((union e1000_adv_rx_desc *)((R).desc))[i])) 236 (&(((union e1000_adv_rx_desc *)((R)->desc))[i]))
237#define E1000_TX_DESC_ADV(R, i) \ 237#define IGB_TX_DESC(R, i) \
238 (&(((union e1000_adv_tx_desc *)((R).desc))[i])) 238 (&(((union e1000_adv_tx_desc *)((R)->desc))[i]))
239#define E1000_TX_CTXTDESC_ADV(R, i) \ 239#define IGB_TX_CTXTDESC(R, i) \
240 (&(((struct e1000_adv_tx_context_desc *)((R).desc))[i])) 240 (&(((struct e1000_adv_tx_context_desc *)((R)->desc))[i]))
241 241
242/* igb_desc_unused - calculate if we have unused descriptors */ 242/* igb_desc_unused - calculate if we have unused descriptors */
243static inline int igb_desc_unused(struct igb_ring *ring) 243static inline int igb_desc_unused(struct igb_ring *ring)