Skip to content

Commit 36d8e82

Browse files
hayesorzdavem330
authored andcommitted
r8169: fix setting rx vlan
The setting should depend on the new features not the current one. Signed-off-by: Hayes Wang <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 48c2040 commit 36d8e82

File tree

1 file changed

+1
-1
lines changed
  • drivers/net/ethernet/realtek

1 file changed

+1
-1
lines changed

drivers/net/ethernet/realtek/r8169.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1796,7 +1796,7 @@ static void __rtl8169_set_features(struct net_device *dev,
17961796
else
17971797
tp->cp_cmd &= ~RxChkSum;
17981798

1799-
if (dev->features & NETIF_F_HW_VLAN_CTAG_RX)
1799+
if (features & NETIF_F_HW_VLAN_CTAG_RX)
18001800
tp->cp_cmd |= RxVlan;
18011801
else
18021802
tp->cp_cmd &= ~RxVlan;

0 commit comments

Comments
 (0)