.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
---|
1 | 2 | /**************************************************************************** |
---|
2 | 3 | * Driver for Solarflare network controllers and boards |
---|
3 | 4 | * Copyright 2005-2006 Fen Systems Ltd. |
---|
4 | 5 | * 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. |
---|
9 | 6 | */ |
---|
10 | 7 | |
---|
11 | 8 | #include <linux/pci.h> |
---|
.. | .. |
---|
321 | 318 | netdev_tx_sent_queue(tx_queue->core_txq, skb_len); |
---|
322 | 319 | |
---|
323 | 320 | /* 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)) { |
---|
325 | 322 | struct ef4_tx_queue *txq2 = ef4_tx_queue_partner(tx_queue); |
---|
326 | 323 | |
---|
327 | 324 | /* There could be packets left on the partner queue if those |
---|
.. | .. |
---|
333 | 330 | |
---|
334 | 331 | ef4_nic_push_buffers(tx_queue); |
---|
335 | 332 | } else { |
---|
336 | | - tx_queue->xmit_more_available = skb->xmit_more; |
---|
| 333 | + tx_queue->xmit_more_available = netdev_xmit_more(); |
---|
337 | 334 | } |
---|
338 | 335 | |
---|
339 | 336 | tx_queue->tx_packets++; |
---|