]> 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)
commit07b9aca769819c0e0dde6cfed521dd14435a67fa
treeff4777fc77920b07aa94d2ca71992e5abc57edef
parent61d863ea8b59b9bb693ec2a066a007eaa23e8704
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