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)
commit0d8c122907d96448495700fa2c6229ab519f3252
treeff4777fc77920b07aa94d2ca71992e5abc57edef
parent5374d6024cd47e028f96a382104b2653f010b430
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