diff options
author | Mark Rustad <mark.d.rustad@intel.com> | 2014-03-03 22:02:23 -0500 |
---|---|---|
committer | Jeff Kirsher <jeffrey.t.kirsher@intel.com> | 2014-03-21 04:59:48 -0400 |
commit | 06380db6fc08713682bf210c0ee3ef19b457bc14 (patch) | |
tree | 8b02e91cff58c3ee2ec47a0fac80f56b7eebdd63 /drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c | |
parent | 19458bd425c0ee21bb35958c60d3682f9c42f274 (diff) |
ixgbevf: Use static inlines instead of macros
Kernel coding standard prefers static inline functions instead
of macros, so use them for register accessors. This is to prepare
for adding LER, Live Error Recovery, checks to those accessors.
Signed-off-by: Mark Rustad <mark.d.rustad@intel.com>
Tested-by: Phil Schmitt <phillip.j.schmitt@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Diffstat (limited to 'drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c')
-rw-r--r-- | drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c b/drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c index 592d8a6baabc..74df8bf8619d 100644 --- a/drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c +++ b/drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c | |||
@@ -111,7 +111,7 @@ static inline void ixgbevf_release_rx_desc(struct ixgbevf_ring *rx_ring, | |||
111 | * such as IA-64). | 111 | * such as IA-64). |
112 | */ | 112 | */ |
113 | wmb(); | 113 | wmb(); |
114 | writel(val, rx_ring->tail); | 114 | ixgbevf_write_tail(rx_ring, val); |
115 | } | 115 | } |
116 | 116 | ||
117 | /** | 117 | /** |
@@ -3060,7 +3060,7 @@ static void ixgbevf_tx_map(struct ixgbevf_ring *tx_ring, | |||
3060 | tx_ring->next_to_use = i; | 3060 | tx_ring->next_to_use = i; |
3061 | 3061 | ||
3062 | /* notify HW of packet */ | 3062 | /* notify HW of packet */ |
3063 | writel(i, tx_ring->tail); | 3063 | ixgbevf_write_tail(tx_ring, i); |
3064 | 3064 | ||
3065 | return; | 3065 | return; |
3066 | dma_error: | 3066 | dma_error: |