![]() |
|
|||
0001 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 0002 /* Copyright (C) 2019 Netronome Systems, Inc. */ 0003 0004 #ifndef __LINUX_TC_MPLS_H 0005 #define __LINUX_TC_MPLS_H 0006 0007 #include <linux/pkt_cls.h> 0008 0009 #define TCA_MPLS_ACT_POP 1 0010 #define TCA_MPLS_ACT_PUSH 2 0011 #define TCA_MPLS_ACT_MODIFY 3 0012 #define TCA_MPLS_ACT_DEC_TTL 4 0013 #define TCA_MPLS_ACT_MAC_PUSH 5 0014 0015 struct tc_mpls { 0016 tc_gen; /* generic TC action fields. */ 0017 int m_action; /* action of type TCA_MPLS_ACT_*. */ 0018 }; 0019 0020 enum { 0021 TCA_MPLS_UNSPEC, 0022 TCA_MPLS_TM, /* struct tcf_t; time values associated with action. */ 0023 TCA_MPLS_PARMS, /* struct tc_mpls; action type and general TC fields. */ 0024 TCA_MPLS_PAD, 0025 TCA_MPLS_PROTO, /* be16; eth_type of pushed or next (for pop) header. */ 0026 TCA_MPLS_LABEL, /* u32; MPLS label. Lower 20 bits are used. */ 0027 TCA_MPLS_TC, /* u8; MPLS TC field. Lower 3 bits are used. */ 0028 TCA_MPLS_TTL, /* u8; MPLS TTL field. Must not be 0. */ 0029 TCA_MPLS_BOS, /* u8; MPLS BOS field. Either 1 or 0. */ 0030 __TCA_MPLS_MAX, 0031 }; 0032 #define TCA_MPLS_MAX (__TCA_MPLS_MAX - 1) 0033 0034 #endif
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.1.0 LXR engine. The LXR team |
![]() ![]() |