mirror of
https://github.com/openvswitch/ovs
synced 2025-08-30 13:58:14 +00:00
datapath: Use ETH_ALEN instead of VLAN_ETH_ALEN
VLAN_ETH_ALEN will be removed in version 3.5 of the Linux kernel. Signed-off-by: Simon Horman <horms@verge.net.au> Signed-off-by: Jesse Gross <jesse@nicira.com>
This commit is contained in:
committed by
Jesse Gross
parent
b9975b29e6
commit
3d192f8e56
@@ -31,7 +31,7 @@ static inline struct sk_buff *__vlan_put_tag(struct sk_buff *skb, u16 vlan_tci)
|
|||||||
veth = (struct vlan_ethhdr *)skb_push(skb, VLAN_HLEN);
|
veth = (struct vlan_ethhdr *)skb_push(skb, VLAN_HLEN);
|
||||||
|
|
||||||
/* Move the mac addresses to the beginning of the new header. */
|
/* Move the mac addresses to the beginning of the new header. */
|
||||||
memmove(skb->data, skb->data + VLAN_HLEN, 2 * VLAN_ETH_ALEN);
|
memmove(skb->data, skb->data + VLAN_HLEN, 2 * ETH_ALEN);
|
||||||
skb->mac_header -= VLAN_HLEN;
|
skb->mac_header -= VLAN_HLEN;
|
||||||
|
|
||||||
/* first, the ethernet type */
|
/* first, the ethernet type */
|
||||||
|
Reference in New Issue
Block a user