]> git.baikalelectronics.ru Git - kernel.git/commit
sfc: use efx_channel_tx_[old_]fill_level() in Siena/EF10 TX datapath
authorEdward Cree <ecree@solarflare.com>
Thu, 3 Sep 2020 21:35:13 +0000 (22:35 +0100)
committerJakub Kicinski <kuba@kernel.org>
Sat, 5 Sep 2020 19:21:40 +0000 (12:21 -0700)
commit3e9c85b0bf452ba346b99e73cb446e5f8680780a
treeff4777fc77920b07aa94d2ca71992e5abc57edef
parentb10a0a06d51ca53f81db2eee840e0673929113b5
sfc: use efx_channel_tx_[old_]fill_level() in Siena/EF10 TX datapath

Instead of open-coding the calculation with efx_tx_queue_partner(), use
 the functions that iterate over numbers of queues other than 2 with
 efx_for_each_channel_tx_queue().

Signed-off-by: Edward Cree <ecree@solarflare.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/sfc/net_driver.h
drivers/net/ethernet/sfc/tx.c
drivers/net/ethernet/sfc/tx_common.c