hc
2023-12-09 b22da3d8526a935aa31e086e63f60ff3246cb61c
kernel/drivers/net/ethernet/sfc/falcon/tx.c
....@@ -1,11 +1,8 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /****************************************************************************
23 * Driver for Solarflare network controllers and boards
34 * Copyright 2005-2006 Fen Systems Ltd.
45 * Copyright 2005-2013 Solarflare Communications Inc.
5
- *
6
- * This program is free software; you can redistribute it and/or modify it
7
- * under the terms of the GNU General Public License version 2 as published
8
- * by the Free Software Foundation, incorporated herein by reference.
96 */
107
118 #include <linux/pci.h>
....@@ -321,7 +318,7 @@
321318 netdev_tx_sent_queue(tx_queue->core_txq, skb_len);
322319
323320 /* Pass off to hardware */
324
- if (!skb->xmit_more || netif_xmit_stopped(tx_queue->core_txq)) {
321
+ if (!netdev_xmit_more() || netif_xmit_stopped(tx_queue->core_txq)) {
325322 struct ef4_tx_queue *txq2 = ef4_tx_queue_partner(tx_queue);
326323
327324 /* There could be packets left on the partner queue if those
....@@ -333,7 +330,7 @@
333330
334331 ef4_nic_push_buffers(tx_queue);
335332 } else {
336
- tx_queue->xmit_more_available = skb->xmit_more;
333
+ tx_queue->xmit_more_available = netdev_xmit_more();
337334 }
338335
339336 tx_queue->tx_packets++;