summaryrefslogtreecommitdiffstats
path: root/firmware/myricom
diff options
context:
space:
mode:
authorIdo Shamay <idos@mellanox.com>2015-06-25 11:29:42 +0300
committerDavid S. Miller <davem@davemloft.net>2015-06-25 02:06:27 -0700
commit488a9b48e398b157703766e2cd91ea45ac6997c5 (patch)
treee79ffb95deedbad3a6154309d40a9a9082e94030 /firmware/myricom
parent0eb08514fdbdcd16fd6870680cd638f203662e9d (diff)
downloadtalos-op-linux-488a9b48e398b157703766e2cd91ea45ac6997c5.tar.gz
talos-op-linux-488a9b48e398b157703766e2cd91ea45ac6997c5.zip
net/mlx4_en: Wake TX queues only when there's enough room
Indication of a single completed packet, marked by txbbs_skipped being bigger then zero, in not enough in order to wake up a stopped TX queue. The completed packet may contain a single TXBB, while next packet to be sent (after the wake up) may have multiple TXBBs (LSO/TSO packets for example), causing overflow in queue followed by WQE corruption and TX queue timeout. Instead, wake the stopped queue only when there's enough room for the worst case (maximum sized WQE) packet that we should need to handle after the queue is opened again. Also created an helper routine - mlx4_en_is_tx_ring_full, which checks if the current TX ring is full or not. It provides better code readability and removes code duplication. Signed-off-by: Ido Shamay <idos@mellanox.com> Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'firmware/myricom')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud