diff options
| author | Hong Zhiguo <zhiguohong@tencent.com> | 2013-10-22 14:32:56 -0400 |
|---|---|---|
| committer | Jeff Kirsher <jeffrey.t.kirsher@intel.com> | 2013-11-01 08:45:29 -0400 |
| commit | 49a45a0686cc2b43bcb3834a68416a201475dc77 (patch) | |
| tree | 29c91baa900bfc736f0a19b878bcaaa199752b85 | |
| parent | ba4865027c11d7ac8e5a33e0624dd415caab2027 (diff) | |
e1000: fix wrong queue idx calculation
tx_ring and adapter->tx_ring are already of type "struct
e1000_tx_ring *"
Signed-off-by: Hong Zhiguo <zhiguohong@tencent.com>
Tested-by: Aaron Brown <aaron.f.brown@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
| -rw-r--r-- | drivers/net/ethernet/intel/e1000/e1000_main.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/net/ethernet/intel/e1000/e1000_main.c b/drivers/net/ethernet/intel/e1000/e1000_main.c index 59ad007dd5aa..ad6800ad1bfc 100644 --- a/drivers/net/ethernet/intel/e1000/e1000_main.c +++ b/drivers/net/ethernet/intel/e1000/e1000_main.c | |||
| @@ -3917,8 +3917,7 @@ static bool e1000_clean_tx_irq(struct e1000_adapter *adapter, | |||
| 3917 | " next_to_watch <%x>\n" | 3917 | " next_to_watch <%x>\n" |
| 3918 | " jiffies <%lx>\n" | 3918 | " jiffies <%lx>\n" |
| 3919 | " next_to_watch.status <%x>\n", | 3919 | " next_to_watch.status <%x>\n", |
| 3920 | (unsigned long)((tx_ring - adapter->tx_ring) / | 3920 | (unsigned long)(tx_ring - adapter->tx_ring), |
| 3921 | sizeof(struct e1000_tx_ring)), | ||
| 3922 | readl(hw->hw_addr + tx_ring->tdh), | 3921 | readl(hw->hw_addr + tx_ring->tdh), |
| 3923 | readl(hw->hw_addr + tx_ring->tdt), | 3922 | readl(hw->hw_addr + tx_ring->tdt), |
| 3924 | tx_ring->next_to_use, | 3923 | tx_ring->next_to_use, |
