Blame include/uapi/linux/tc_act/tc_mpls.h

Packit Service 3880ab
/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
Packit Service 3880ab
/* Copyright (C) 2019 Netronome Systems, Inc. */
Packit Service 3880ab
Packit Service 3880ab
#ifndef __LINUX_TC_MPLS_H
Packit Service 3880ab
#define __LINUX_TC_MPLS_H
Packit Service 3880ab
Packit Service 3880ab
#include <linux/pkt_cls.h>
Packit Service 3880ab
Packit Service 3880ab
#define TCA_MPLS_ACT_POP	1
Packit Service 3880ab
#define TCA_MPLS_ACT_PUSH	2
Packit Service 3880ab
#define TCA_MPLS_ACT_MODIFY	3
Packit Service 3880ab
#define TCA_MPLS_ACT_DEC_TTL	4
Packit Service 3880ab
Packit Service 3880ab
struct tc_mpls {
Packit Service 3880ab
	tc_gen;		/* generic TC action fields. */
Packit Service 3880ab
	int m_action;	/* action of type TCA_MPLS_ACT_*. */
Packit Service 3880ab
};
Packit Service 3880ab
Packit Service 3880ab
enum {
Packit Service 3880ab
	TCA_MPLS_UNSPEC,
Packit Service 3880ab
	TCA_MPLS_TM,	/* struct tcf_t; time values associated with action. */
Packit Service 3880ab
	TCA_MPLS_PARMS,	/* struct tc_mpls; action type and general TC fields. */
Packit Service 3880ab
	TCA_MPLS_PAD,
Packit Service 3880ab
	TCA_MPLS_PROTO,	/* be16; eth_type of pushed or next (for pop) header. */
Packit Service 3880ab
	TCA_MPLS_LABEL,	/* u32; MPLS label. Lower 20 bits are used. */
Packit Service 3880ab
	TCA_MPLS_TC,	/* u8; MPLS TC field. Lower 3 bits are used. */
Packit Service 3880ab
	TCA_MPLS_TTL,	/* u8; MPLS TTL field. Must not be 0. */
Packit Service 3880ab
	TCA_MPLS_BOS,	/* u8; MPLS BOS field. Either 1 or 0. */
Packit Service 3880ab
	__TCA_MPLS_MAX,
Packit Service 3880ab
};
Packit Service 3880ab
#define TCA_MPLS_MAX (__TCA_MPLS_MAX - 1)
Packit Service 3880ab
Packit Service 3880ab
#endif