diff options
| -rw-r--r-- | drivers/net/ethernet/realtek/r8169.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/drivers/net/ethernet/realtek/r8169.c b/drivers/net/ethernet/realtek/r8169.c index 91652e7235e4..7a7860a17f69 100644 --- a/drivers/net/ethernet/realtek/r8169.c +++ b/drivers/net/ethernet/realtek/r8169.c | |||
| @@ -1796,7 +1796,7 @@ static void __rtl8169_set_features(struct net_device *dev, | |||
| 1796 | else | 1796 | else |
| 1797 | tp->cp_cmd &= ~RxChkSum; | 1797 | tp->cp_cmd &= ~RxChkSum; |
| 1798 | 1798 | ||
| 1799 | if (dev->features & NETIF_F_HW_VLAN_CTAG_RX) | 1799 | if (features & NETIF_F_HW_VLAN_CTAG_RX) |
| 1800 | tp->cp_cmd |= RxVlan; | 1800 | tp->cp_cmd |= RxVlan; |
| 1801 | else | 1801 | else |
| 1802 | tp->cp_cmd &= ~RxVlan; | 1802 | tp->cp_cmd &= ~RxVlan; |
| @@ -6707,7 +6707,12 @@ static int rtl_open(struct net_device *dev) | |||
| 6707 | 6707 | ||
| 6708 | rtl8169_init_phy(dev, tp); | 6708 | rtl8169_init_phy(dev, tp); |
| 6709 | 6709 | ||
| 6710 | __rtl8169_set_features(dev, dev->features); | 6710 | if (dev->features & NETIF_F_HW_VLAN_CTAG_RX) |
| 6711 | tp->cp_cmd |= RxVlan; | ||
| 6712 | else | ||
| 6713 | tp->cp_cmd &= ~RxVlan; | ||
| 6714 | |||
| 6715 | RTL_W16(CPlusCmd, tp->cp_cmd); | ||
| 6711 | 6716 | ||
| 6712 | rtl_pll_power_up(tp); | 6717 | rtl_pll_power_up(tp); |
| 6713 | 6718 | ||
