b2cb56d4b9a42398684dd0e9ef12710b804ea563
[cascardo/ovs.git] / datapath / linux / compat / include / linux / if_ether.h
1 #ifndef __LINUX_IF_ETHER_WRAPPER_H
2 #define __LINUX_IF_ETHER_WRAPPER_H 1
3
4 #include_next <linux/if_ether.h>
5
6 #ifndef ETH_P_802_3_MIN
7 #define ETH_P_802_3_MIN        0x0600
8 #endif
9
10 #ifndef ETH_P_8021AD
11 #define ETH_P_8021AD    0x88A8          /* 802.1ad Service VLAN         */
12 #endif
13
14 #ifndef HAVE_INNER_ETH_HDR
15 static inline struct ethhdr *inner_eth_hdr(const struct sk_buff *skb)
16 {
17         return (struct ethhdr *)skb_inner_mac_header(skb);
18 }
19 #endif
20 #endif