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>
This commit is contained in:
parent
ba4865027c
commit
49a45a0686
@ -3917,8 +3917,7 @@ static bool e1000_clean_tx_irq(struct e1000_adapter *adapter,
|
||||
" next_to_watch <%x>\n"
|
||||
" jiffies <%lx>\n"
|
||||
" next_to_watch.status <%x>\n",
|
||||
(unsigned long)((tx_ring - adapter->tx_ring) /
|
||||
sizeof(struct e1000_tx_ring)),
|
||||
(unsigned long)(tx_ring - adapter->tx_ring),
|
||||
readl(hw->hw_addr + tx_ring->tdh),
|
||||
readl(hw->hw_addr + tx_ring->tdt),
|
||||
tx_ring->next_to_use,
|
||||
|
Loading…
Reference in New Issue
Block a user