]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
hinic3: use netif_subqueue_sent api
authorGur Stavi <gur.stavi@huawei.com>
Mon, 9 Jun 2025 15:07:53 +0000 (18:07 +0300)
committerJakub Kicinski <kuba@kernel.org>
Tue, 10 Jun 2025 22:27:19 +0000 (15:27 -0700)
Improve consistency of code by using only netif_subqueue variant apis

Signed-off-by: Gur Stavi <gur.stavi@huawei.com>
Link: https://patch.msgid.link/5fd897b75729cf078385aacd9ed40091314ea63d.1749038081.git.gur.stavi@huawei.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/huawei/hinic3/hinic3_tx.c

index ae08257dd1d2333e6e869977cc21926bb65c3ad0..7b6f101da31395b8db36426aa83a50a3ff1b2618 100644 (file)
@@ -542,8 +542,7 @@ static netdev_tx_t hinic3_send_one_skb(struct sk_buff *skb,
                goto err_drop_pkt;
        }
 
-       netdev_tx_sent_queue(netdev_get_tx_queue(netdev, txq->sq->q_id),
-                            skb->len);
+       netif_subqueue_sent(netdev, txq->sq->q_id, skb->len);
        netif_subqueue_maybe_stop(netdev, tx_q->sq->q_id,
                                  hinic3_wq_free_wqebbs(&tx_q->sq->wq),
                                  tx_q->tx_stop_thrs,