/* SPDX-License-Identifier: GPL-2.0-only */ /* * Copyright (c) 2014 Nicira, Inc. */ #ifndef _NET_MPLS_H #define _NET_MPLS_H … #include <linux/if_ether.h> #include <linux/netdevice.h> #include <linux/mpls.h> #define MPLS_HLEN … struct mpls_shim_hdr { … }; static inline bool eth_p_mpls(__be16 eth_type) { … } static inline struct mpls_shim_hdr *mpls_hdr(const struct sk_buff *skb) { … } static inline struct mpls_shim_hdr mpls_entry_encode(u32 label, unsigned int ttl, unsigned int tc, bool bos) { … } #endif