diff options
author | Edward Cree <ecree@solarflare.com> | 2020-09-03 22:35:13 +0100 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2020-09-05 12:21:40 -0700 |
commit | 0d8c122907d96448495700fa2c6229ab519f3252 (patch) | |
tree | ff4777fc77920b07aa94d2ca71992e5abc57edef /drivers/net/ethernet/sfc/net_driver.h | |
parent | 5374d6024cd47e028f96a382104b2653f010b430 (diff) | |
download | linux-0d8c122907d96448495700fa2c6229ab519f3252.tar.bz2 |
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>
Diffstat (limited to 'drivers/net/ethernet/sfc/net_driver.h')
-rw-r--r-- | drivers/net/ethernet/sfc/net_driver.h | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/net/ethernet/sfc/net_driver.h b/drivers/net/ethernet/sfc/net_driver.h index 366e649fa869..fc7ba51e555a 100644 --- a/drivers/net/ethernet/sfc/net_driver.h +++ b/drivers/net/ethernet/sfc/net_driver.h @@ -1681,10 +1681,6 @@ efx_channel_tx_fill_level(struct efx_channel *channel) struct efx_tx_queue *tx_queue; unsigned int fill_level = 0; - /* This function is currently only used by EF100, which maybe - * could do something simpler and just compute the fill level - * of the single TXQ that's really in use. - */ efx_for_each_channel_tx_queue(tx_queue, channel) fill_level = max(fill_level, tx_queue->insert_count - tx_queue->read_count); |