igb: Fix position of assignment to *ring
Subsystems (2)
PATCH 1/1 igb: Fix position of assignment to *ring
Assignment to *ring should be done after correctness check of the argument queue.
Fixes 91db364236c8 ("igb: Refactor igb_configure_cbs()")
Signed-off-by Jedrzej Jagielski <[email protected]>
--- drivers/net/ethernet/intel/igb/igb_main.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/net/ethernet/intel/igb/igb_main.c +2 -1
@@ -1683,14 +1683,15 @@ static bool is_any_txtime_enabled(struct igb_adapter *adapter)**/ static void igb_config_tx_modes (struct igb_adapter *adapter,int queue) { -struct igb_ring *ring = adapter->tx_ring[queue];struct net_device *netdev = adapter->netdev;struct e1000_hw *hw = &adapter->hw; +struct igb_ring *ring;u32 tqavcc, tqavctrl;u16 value;WARN_ON (hw->mac.type != e1000_i210);WARN_ON (queue <0 || queue >1 ); + ring = adapter->tx_ring[queue];/* If any of the Qav features is enabled, configure queues as SR and * with HIGH PRIO. If none is, then configure them with LOW PRIO and
Signature · 1 line
2.27.0
PATCH 1/1 igb: Fix position of assignment to *ring
Hi,
Quoted 6 lines · J?drzej Jagielski
Assignment to *ring should be done after correctness check of the argument queue.
Fixes 91db364236c8 ("igb: Refactor igb_configure_cbs()")Signed-off-by Jedrzej Jagielski <[email protected]>---
Signature · 1 line
Vinicius
Brelinski
PATCH 1/1 igb: Fix position of assignment to *ring
In reply to Jędrzej JagielskiQuoted 9 lines
-----Original Message-----
From: Intel-wired-lan <[email protected]> On Behalf Of Jedrzej Jagielski
Sent: Friday, June 11, 2021 3:42 PM
To: intel-wired-lan at lists.osuosl.org
Cc: Jagielski, Jedrzej <[email protected]>
Subject: [Intel-wired-lan] [PATCH net v1] igb: Fix position of assignment to *ring
Quoted 8 lines
Assignment to *ring should be done after correctness check of the argument queue.
Fixes 91db364236c8 ("igb: Refactor igb_configure_cbs()")Signed-off-by Jedrzej Jagielski <[email protected]>--- drivers/net/ethernet/intel/igb/igb_main.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)