Commit 335a69eb authored by Matthew Natalier's avatar Matthew Natalier Committed by Jeff Garzik

[netdrvr 8139cp] fix h/w vlan offload

It wants big endian vlan tags.  IEEE, or just weird?
parent 654f4201
...@@ -468,7 +468,7 @@ static inline void cp_rx_skb (struct cp_private *cp, struct sk_buff *skb, ...@@ -468,7 +468,7 @@ static inline void cp_rx_skb (struct cp_private *cp, struct sk_buff *skb,
#if CP_VLAN_TAG_USED #if CP_VLAN_TAG_USED
if (cp->vlgrp && (desc->opts2 & RxVlanTagged)) { if (cp->vlgrp && (desc->opts2 & RxVlanTagged)) {
vlan_hwaccel_rx(skb, cp->vlgrp, desc->opts2 & 0xffff); vlan_hwaccel_rx(skb, cp->vlgrp, be16_to_cpu(desc->opts2 & 0xffff));
} else } else
#endif #endif
netif_rx(skb); netif_rx(skb);
...@@ -776,7 +776,7 @@ static int cp_start_xmit (struct sk_buff *skb, struct net_device *dev) ...@@ -776,7 +776,7 @@ static int cp_start_xmit (struct sk_buff *skb, struct net_device *dev)
#if CP_VLAN_TAG_USED #if CP_VLAN_TAG_USED
if (cp->vlgrp && vlan_tx_tag_present(skb)) if (cp->vlgrp && vlan_tx_tag_present(skb))
vlan_tag = TxVlanTag | vlan_tx_tag_get(skb); vlan_tag = TxVlanTag | cpu_to_be16(vlan_tx_tag_get(skb));
#endif #endif
entry = cp->tx_head; entry = cp->tx_head;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment