From 3d192f8e5655cbffe50356f46bd8fd8c3e8875b0 Mon Sep 17 00:00:00 2001 From: Simon Horman Date: Thu, 19 Apr 2012 16:38:39 +0900 Subject: [PATCH] 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 Signed-off-by: Jesse Gross --- datapath/linux/compat/include/linux/if_vlan.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datapath/linux/compat/include/linux/if_vlan.h b/datapath/linux/compat/include/linux/if_vlan.h index 66ed05832..dc4b15e36 100644 --- a/datapath/linux/compat/include/linux/if_vlan.h +++ b/datapath/linux/compat/include/linux/if_vlan.h @@ -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); /* 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; /* first, the ethernet type */ -- 2.43.0