git://git.onelab.eu
/
sliver-openvswitch.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b9975b2
)
datapath: Use ETH_ALEN instead of VLAN_ETH_ALEN
author
Simon Horman
<horms@verge.net.au>
Thu, 19 Apr 2012 07:38:39 +0000
(16:38 +0900)
committer
Jesse Gross
<jesse@nicira.com>
Thu, 19 Apr 2012 15:24:21 +0000
(08:24 -0700)
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>
datapath/linux/compat/include/linux/if_vlan.h
patch
|
blob
|
history
diff --git
a/datapath/linux/compat/include/linux/if_vlan.h
b/datapath/linux/compat/include/linux/if_vlan.h
index
66ed058
..
dc4b15e
100644
(file)
--- 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 */