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

Commit 36d8e825 authored by hayeswang's avatar hayeswang Committed by David S. Miller
Browse files

r8169: fix setting rx vlan



The setting should depend on the new features not the current one.

Signed-off-by: default avatarHayes Wang <hayeswang@realtek.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 48c20407
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1796,7 +1796,7 @@ static void __rtl8169_set_features(struct net_device *dev,
		else
			tp->cp_cmd &= ~RxChkSum;

		if (dev->features & NETIF_F_HW_VLAN_CTAG_RX)
		if (features & NETIF_F_HW_VLAN_CTAG_RX)
			tp->cp_cmd |= RxVlan;
		else
			tp->cp_cmd &= ~RxVlan;