Thread (4 messages) flat view 4 messages, 2 authors, 2014-09-13

Re: [PATCH net-next] r8152: support VLAN

From: David Miller <davem@davemloft.net>
Date: 2014-09-11 13:30:09
Also in: lkml

From: Hayes Wang <redacted>
Date: Thu, 11 Sep 2014 20:16:24 +0800
-	ocp_data = ocp_read_word(tp, MCU_TYPE_PLA, PLA_CPCR);
-	ocp_data &= ~CPCR_RX_VLAN;
-	ocp_write_word(tp, MCU_TYPE_PLA, PLA_CPCR, ocp_data);
+	if (tp->netdev->features & NETIF_F_HW_VLAN_CTAG_RX)
+		rtl_rx_vlan_en(tp, true);
+	else
+		rtl_rx_vlan_en(tp, false);
	rtl_rx_vlan_en(tp, tp->netdev->features & NETIF_F_HW_VLAN_CTAG_RX);
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help