mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-24 10:11:26 +03:00
nvethernet: use maximum transmit buffer size
1) Removes the limitation of 4KB per descriptor. 2) Adds maximum transmit buffer size as 0x3FFF. 3) Changes descripors threshold considering TSO/GSO. Bug 200542488 Change-Id: Ic32d5e1e49df48b0da057349f8300d029410d322 Signed-off-by: Bhadram Varka <vbhadram@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/2174519 Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
committed by
Revanth Kumar Uppala
parent
9c4438324c
commit
e4f82ebb78
@@ -311,7 +311,8 @@ void osd_transmit_complete(void *priv, void *buffer, unsigned long dmaaddr,
|
||||
txq = netdev_get_tx_queue(ndev, qinx);
|
||||
|
||||
if (netif_tx_queue_stopped(txq) &&
|
||||
ether_avail_txdesc_cnt(tx_ring) >= TX_DESC_THRESHOLD) {
|
||||
(ether_avail_txdesc_cnt(tx_ring) >
|
||||
ETHER_TX_DESC_THRESHOLD)) {
|
||||
netif_tx_wake_queue(txq);
|
||||
netdev_dbg(ndev, "Tx ring[%d] - waking Txq\n", chan);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user