Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5c659322 authored by Ayaz Abdulla's avatar Ayaz Abdulla Committed by David S. Miller
Browse files

forcedeth: fix tx limit2 flag check



This is a fix for bug 572201 @ bugs.debian.org

This patch fixes the TX_LIMIT feature flag. The previous logic check
for TX_LIMIT2 also took into account a device that only had TX_LIMIT
set.

Reported-by: default avatarStephen Mulcahu <stephen.mulcahy@deri.org>
Reported-by: default avatarBen Huchings <ben@decadent.org.uk>
Signed-off-by: default avatarAyaz Abdulla <aabdulla@nvidia.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>

parent a6d37024
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -5899,7 +5899,7 @@ static int __devinit nv_probe(struct pci_dev *pci_dev, const struct pci_device_i
	/* Limit the number of tx's outstanding for hw bug */
	if (id->driver_data & DEV_NEED_TX_LIMIT) {
		np->tx_limit = 1;
		if ((id->driver_data & DEV_NEED_TX_LIMIT2) &&
		if (((id->driver_data & DEV_NEED_TX_LIMIT2) == DEV_NEED_TX_LIMIT2) &&
		    pci_dev->revision >= 0xA2)
			np->tx_limit = 0;
	}