datapath: Add basic MPLS support to kernel
[cascardo/ovs.git] / datapath / mpls.h
1 #ifndef MPLS_H
2 #define MPLS_H 1
3
4 #include <linux/if_ether.h>
5
6 #define MPLS_BOS_MASK   0x00000100
7 #define MPLS_HLEN 4
8
9 static inline bool eth_p_mpls(__be16 eth_type)
10 {
11         return eth_type == htons(ETH_P_MPLS_UC) ||
12                 eth_type == htons(ETH_P_MPLS_MC);
13 }
14
15 #endif