Skip to content
Snippets Groups Projects
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
No related branches found
No related tags found
No related merge requests found
...@@ -1796,7 +1796,7 @@ static void __rtl8169_set_features(struct net_device *dev, ...@@ -1796,7 +1796,7 @@ static void __rtl8169_set_features(struct net_device *dev,
else else
tp->cp_cmd &= ~RxChkSum; 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; tp->cp_cmd |= RxVlan;
else else
tp->cp_cmd &= ~RxVlan; tp->cp_cmd &= ~RxVlan;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment