ionic: Clean up BQL logic
authorBrett Creeley <brett.creeley@amd.com>
Thu, 29 Feb 2024 19:39:28 +0000 (11:39 -0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 4 Mar 2024 09:38:13 +0000 (09:38 +0000)
commitbc581273fead93ccc918b8c9a5b8a9f60b1ee836
tree686c386dad1c63fb71c4bdb6f8cc7500a52425f5
parent386e69865311044b576ff536c99c6ee9cc98a228
ionic: Clean up BQL logic

The driver currently calls netdev_tx_completed_queue() for every
Tx completion. However, this API is only meant to be called once
per NAPI if any Tx work is done.  Make the necessary changes to
support calling netdev_tx_completed_queue() only once per NAPI.

Also, use the __netdev_tx_sent_queue() API, which supports the
xmit_more functionality.

Signed-off-by: Brett Creeley <brett.creeley@amd.com>
Signed-off-by: Shannon Nelson <shannon.nelson@amd.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/pensando/ionic/ionic_txrx.c