]> git.baikalelectronics.ru Git - kernel.git/commit
igc: Use num_tx_queues when iterating over tx_ring queue
authorToshiki Nishioka <toshiki.nishioka@intel.com>
Thu, 22 Jul 2021 00:34:03 +0000 (17:34 -0700)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Fri, 20 Aug 2021 15:37:49 +0000 (08:37 -0700)
commit691bd4d7761992914a0e83c27a4ce57d01474cda
tree8dcbd39ebf786e023854f1f5183de046a088db53
parent4b79959510e6612d80f8d86022e0cb44eee6f4a2
igc: Use num_tx_queues when iterating over tx_ring queue

Use num_tx_queues rather than the IGC_MAX_TX_QUEUES fixed number 4 when
iterating over tx_ring queue since instantiated queue count could be
less than 4 where on-line cpu count is less than 4.

Fixes: ec50a9d437f0 ("igc: Add support for taprio offloading")
Signed-off-by: Toshiki Nishioka <toshiki.nishioka@intel.com>
Signed-off-by: Muhammad Husaini Zulkifli <muhammad.husaini.zulkifli@intel.com>
Tested-by: Muhammad Husaini Zulkifli <muhammad.husaini.zulkifli@intel.com>
Acked-by: Sasha Neftin <sasha.neftin@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
drivers/net/ethernet/intel/igc/igc_main.c