]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
bnxt_en: Implement xmit_more.
authorMichael Chan <michael.chan@broadcom.com>
Mon, 29 May 2017 23:06:09 +0000 (19:06 -0400)
committerSomasundaram Krishnasamy <somasundaram.krishnasamy@oracle.com>
Tue, 11 Jul 2017 00:04:09 +0000 (17:04 -0700)
Orabug: 264025332632559926366387

Do not write the TX doorbell if skb->xmit_more is set unless the TX
queue is full.

Signed-off-by: Michael Chan <michael.chan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
(cherry picked from commit 4d172f21cefe896df8477940269b8d52129f8c87)
Signed-off-by: Brian Maly <brian.maly@oracle.com>
Signed-off-by: Somasundaram Krishnasamy <somasundaram.krishnasamy@oracle.com>
drivers/net/ethernet/broadcom/bnxt/bnxt.c

index 66900368a774666e1e7277aa43f53f89b2e93493..ff6b2a1958d96498b9dfe580fddf61689e652b31 100644 (file)
@@ -480,13 +480,17 @@ normal_tx:
        prod = NEXT_TX(prod);
        txr->tx_prod = prod;
 
-       bnxt_db_write(bp, txr->tx_doorbell, DB_KEY_TX | prod);
+       if (!skb->xmit_more)
+               bnxt_db_write(bp, txr->tx_doorbell, DB_KEY_TX | prod);
 
 tx_done:
 
        mmiowb();
 
        if (unlikely(bnxt_tx_avail(bp, txr) <= MAX_SKB_FRAGS + 1)) {
+               if (skb->xmit_more && !tx_buf->is_push)
+                       bnxt_db_write(bp, txr->tx_doorbell, DB_KEY_TX | prod);
+
                netif_tx_stop_queue(txq);
 
                /* netif_tx_stop_queue() must be done before checking