diff options
author | Thomas Falcon <tlfalcon@linux.vnet.ibm.com> | 2018-02-18 10:08:41 -0600 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-02-20 13:16:55 -0500 |
commit | ffc385b95adb0e601f6858b06401adabedf59f81 (patch) | |
tree | 1556f5daa6639b443a351772d55da6c816a3404a /drivers/net/ethernet/ibm/ibmvnic.h | |
parent | f5c0c6f4299f870f074235fbf552ecf957fc249c (diff) | |
download | linux-stable-ffc385b95adb0e601f6858b06401adabedf59f81.tar.gz linux-stable-ffc385b95adb0e601f6858b06401adabedf59f81.tar.bz2 linux-stable-ffc385b95adb0e601f6858b06401adabedf59f81.zip |
ibmvnic: Keep track of supplementary TX descriptors
Supplementary TX descriptors were not being accounted for, which
was resulting in an overflow of the hardware device's transmit
queue. Keep track of those descriptors now when determining
how many entries remain on the TX queue.
Signed-off-by: Thomas Falcon <tlfalcon@linux.vnet.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/ibm/ibmvnic.h')
-rw-r--r-- | drivers/net/ethernet/ibm/ibmvnic.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/ibm/ibmvnic.h b/drivers/net/ethernet/ibm/ibmvnic.h index fe21a6e2ddae..2f51458ccdc3 100644 --- a/drivers/net/ethernet/ibm/ibmvnic.h +++ b/drivers/net/ethernet/ibm/ibmvnic.h @@ -909,6 +909,7 @@ struct ibmvnic_tx_buff { union sub_crq indir_arr[6]; u8 hdr_data[140]; dma_addr_t indir_dma; + int num_entries; }; struct ibmvnic_tx_pool { |