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

Commit 9331db4f authored by Jiri Pirko's avatar Jiri Pirko Committed by David S. Miller
Browse files

forcedeth: call vlan_mode only if hw supports vlans



If hw does not support vlans, dont call nv_vlan_mode because it has no point.
I believe that this should fix issues on older non-vlan supportive
chips (like Ingo has).

Reported-ty: Ingo Molnar <mingo@elte.hu>
Signed-off-by: default avatarJiri Pirko <jpirko@redhat.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 9a75a972
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -5615,6 +5615,7 @@ static int __devinit nv_probe(struct pci_dev *pci_dev, const struct pci_device_i
		goto out_error;
	}

	if (id->driver_data & DEV_HAS_VLAN)
		nv_vlan_mode(dev, dev->features);

	netif_carrier_off(dev);