diff options
author | orivej <orivej@yandex-team.ru> | 2022-02-10 16:44:49 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:44:49 +0300 |
commit | 718c552901d703c502ccbefdfc3c9028d608b947 (patch) | |
tree | 46534a98bbefcd7b1f3faa5b52c138ab27db75b7 /contrib/libs/linux-headers/linux/tc_act | |
parent | e9656aae26e0358d5378e5b63dcac5c8dbe0e4d0 (diff) | |
download | ydb-718c552901d703c502ccbefdfc3c9028d608b947.tar.gz |
Restoring authorship annotation for <orivej@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'contrib/libs/linux-headers/linux/tc_act')
18 files changed, 673 insertions, 673 deletions
diff --git a/contrib/libs/linux-headers/linux/tc_act/tc_bpf.h b/contrib/libs/linux-headers/linux/tc_act/tc_bpf.h index 653c4f94f7..a00fe59b08 100644 --- a/contrib/libs/linux-headers/linux/tc_act/tc_bpf.h +++ b/contrib/libs/linux-headers/linux/tc_act/tc_bpf.h @@ -1,35 +1,35 @@ -/* SPDX-License-Identifier: GPL-2.0+ WITH Linux-syscall-note */ -/* - * Copyright (c) 2015 Jiri Pirko <jiri@resnulli.us> - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. - */ - -#ifndef __LINUX_TC_BPF_H -#define __LINUX_TC_BPF_H - -#include <linux/pkt_cls.h> - -struct tc_act_bpf { - tc_gen; -}; - -enum { - TCA_ACT_BPF_UNSPEC, - TCA_ACT_BPF_TM, - TCA_ACT_BPF_PARMS, - TCA_ACT_BPF_OPS_LEN, - TCA_ACT_BPF_OPS, - TCA_ACT_BPF_FD, - TCA_ACT_BPF_NAME, - TCA_ACT_BPF_PAD, - TCA_ACT_BPF_TAG, - TCA_ACT_BPF_ID, - __TCA_ACT_BPF_MAX, -}; -#define TCA_ACT_BPF_MAX (__TCA_ACT_BPF_MAX - 1) - -#endif +/* SPDX-License-Identifier: GPL-2.0+ WITH Linux-syscall-note */ +/* + * Copyright (c) 2015 Jiri Pirko <jiri@resnulli.us> + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + */ + +#ifndef __LINUX_TC_BPF_H +#define __LINUX_TC_BPF_H + +#include <linux/pkt_cls.h> + +struct tc_act_bpf { + tc_gen; +}; + +enum { + TCA_ACT_BPF_UNSPEC, + TCA_ACT_BPF_TM, + TCA_ACT_BPF_PARMS, + TCA_ACT_BPF_OPS_LEN, + TCA_ACT_BPF_OPS, + TCA_ACT_BPF_FD, + TCA_ACT_BPF_NAME, + TCA_ACT_BPF_PAD, + TCA_ACT_BPF_TAG, + TCA_ACT_BPF_ID, + __TCA_ACT_BPF_MAX, +}; +#define TCA_ACT_BPF_MAX (__TCA_ACT_BPF_MAX - 1) + +#endif diff --git a/contrib/libs/linux-headers/linux/tc_act/tc_connmark.h b/contrib/libs/linux-headers/linux/tc_act/tc_connmark.h index 9f8f6f709f..f652d74589 100644 --- a/contrib/libs/linux-headers/linux/tc_act/tc_connmark.h +++ b/contrib/libs/linux-headers/linux/tc_act/tc_connmark.h @@ -1,22 +1,22 @@ -/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ -#ifndef __UAPI_TC_CONNMARK_H -#define __UAPI_TC_CONNMARK_H - -#include <linux/types.h> -#include <linux/pkt_cls.h> - -struct tc_connmark { - tc_gen; - __u16 zone; -}; - -enum { - TCA_CONNMARK_UNSPEC, - TCA_CONNMARK_PARMS, - TCA_CONNMARK_TM, - TCA_CONNMARK_PAD, - __TCA_CONNMARK_MAX -}; -#define TCA_CONNMARK_MAX (__TCA_CONNMARK_MAX - 1) - -#endif +/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ +#ifndef __UAPI_TC_CONNMARK_H +#define __UAPI_TC_CONNMARK_H + +#include <linux/types.h> +#include <linux/pkt_cls.h> + +struct tc_connmark { + tc_gen; + __u16 zone; +}; + +enum { + TCA_CONNMARK_UNSPEC, + TCA_CONNMARK_PARMS, + TCA_CONNMARK_TM, + TCA_CONNMARK_PAD, + __TCA_CONNMARK_MAX +}; +#define TCA_CONNMARK_MAX (__TCA_CONNMARK_MAX - 1) + +#endif diff --git a/contrib/libs/linux-headers/linux/tc_act/tc_csum.h b/contrib/libs/linux-headers/linux/tc_act/tc_csum.h index 94b2044929..68bdd20c75 100644 --- a/contrib/libs/linux-headers/linux/tc_act/tc_csum.h +++ b/contrib/libs/linux-headers/linux/tc_act/tc_csum.h @@ -1,33 +1,33 @@ -/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ -#ifndef __LINUX_TC_CSUM_H -#define __LINUX_TC_CSUM_H - -#include <linux/types.h> -#include <linux/pkt_cls.h> - -enum { - TCA_CSUM_UNSPEC, - TCA_CSUM_PARMS, - TCA_CSUM_TM, - TCA_CSUM_PAD, - __TCA_CSUM_MAX -}; -#define TCA_CSUM_MAX (__TCA_CSUM_MAX - 1) - -enum { - TCA_CSUM_UPDATE_FLAG_IPV4HDR = 1, - TCA_CSUM_UPDATE_FLAG_ICMP = 2, - TCA_CSUM_UPDATE_FLAG_IGMP = 4, - TCA_CSUM_UPDATE_FLAG_TCP = 8, - TCA_CSUM_UPDATE_FLAG_UDP = 16, - TCA_CSUM_UPDATE_FLAG_UDPLITE = 32, - TCA_CSUM_UPDATE_FLAG_SCTP = 64, -}; - -struct tc_csum { - tc_gen; - - __u32 update_flags; -}; - -#endif /* __LINUX_TC_CSUM_H */ +/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ +#ifndef __LINUX_TC_CSUM_H +#define __LINUX_TC_CSUM_H + +#include <linux/types.h> +#include <linux/pkt_cls.h> + +enum { + TCA_CSUM_UNSPEC, + TCA_CSUM_PARMS, + TCA_CSUM_TM, + TCA_CSUM_PAD, + __TCA_CSUM_MAX +}; +#define TCA_CSUM_MAX (__TCA_CSUM_MAX - 1) + +enum { + TCA_CSUM_UPDATE_FLAG_IPV4HDR = 1, + TCA_CSUM_UPDATE_FLAG_ICMP = 2, + TCA_CSUM_UPDATE_FLAG_IGMP = 4, + TCA_CSUM_UPDATE_FLAG_TCP = 8, + TCA_CSUM_UPDATE_FLAG_UDP = 16, + TCA_CSUM_UPDATE_FLAG_UDPLITE = 32, + TCA_CSUM_UPDATE_FLAG_SCTP = 64, +}; + +struct tc_csum { + tc_gen; + + __u32 update_flags; +}; + +#endif /* __LINUX_TC_CSUM_H */ diff --git a/contrib/libs/linux-headers/linux/tc_act/tc_ct.h b/contrib/libs/linux-headers/linux/tc_act/tc_ct.h index 5fb1d7ac10..040cec9399 100644 --- a/contrib/libs/linux-headers/linux/tc_act/tc_ct.h +++ b/contrib/libs/linux-headers/linux/tc_act/tc_ct.h @@ -1,41 +1,41 @@ -/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ -#ifndef __UAPI_TC_CT_H -#define __UAPI_TC_CT_H - -#include <linux/types.h> -#include <linux/pkt_cls.h> - -enum { - TCA_CT_UNSPEC, - TCA_CT_PARMS, - TCA_CT_TM, - TCA_CT_ACTION, /* u16 */ - TCA_CT_ZONE, /* u16 */ - TCA_CT_MARK, /* u32 */ - TCA_CT_MARK_MASK, /* u32 */ - TCA_CT_LABELS, /* u128 */ - TCA_CT_LABELS_MASK, /* u128 */ - TCA_CT_NAT_IPV4_MIN, /* be32 */ - TCA_CT_NAT_IPV4_MAX, /* be32 */ - TCA_CT_NAT_IPV6_MIN, /* struct in6_addr */ - TCA_CT_NAT_IPV6_MAX, /* struct in6_addr */ - TCA_CT_NAT_PORT_MIN, /* be16 */ - TCA_CT_NAT_PORT_MAX, /* be16 */ - TCA_CT_PAD, - __TCA_CT_MAX -}; - -#define TCA_CT_MAX (__TCA_CT_MAX - 1) - -#define TCA_CT_ACT_COMMIT (1 << 0) -#define TCA_CT_ACT_FORCE (1 << 1) -#define TCA_CT_ACT_CLEAR (1 << 2) -#define TCA_CT_ACT_NAT (1 << 3) -#define TCA_CT_ACT_NAT_SRC (1 << 4) -#define TCA_CT_ACT_NAT_DST (1 << 5) - -struct tc_ct { - tc_gen; -}; - -#endif /* __UAPI_TC_CT_H */ +/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ +#ifndef __UAPI_TC_CT_H +#define __UAPI_TC_CT_H + +#include <linux/types.h> +#include <linux/pkt_cls.h> + +enum { + TCA_CT_UNSPEC, + TCA_CT_PARMS, + TCA_CT_TM, + TCA_CT_ACTION, /* u16 */ + TCA_CT_ZONE, /* u16 */ + TCA_CT_MARK, /* u32 */ + TCA_CT_MARK_MASK, /* u32 */ + TCA_CT_LABELS, /* u128 */ + TCA_CT_LABELS_MASK, /* u128 */ + TCA_CT_NAT_IPV4_MIN, /* be32 */ + TCA_CT_NAT_IPV4_MAX, /* be32 */ + TCA_CT_NAT_IPV6_MIN, /* struct in6_addr */ + TCA_CT_NAT_IPV6_MAX, /* struct in6_addr */ + TCA_CT_NAT_PORT_MIN, /* be16 */ + TCA_CT_NAT_PORT_MAX, /* be16 */ + TCA_CT_PAD, + __TCA_CT_MAX +}; + +#define TCA_CT_MAX (__TCA_CT_MAX - 1) + +#define TCA_CT_ACT_COMMIT (1 << 0) +#define TCA_CT_ACT_FORCE (1 << 1) +#define TCA_CT_ACT_CLEAR (1 << 2) +#define TCA_CT_ACT_NAT (1 << 3) +#define TCA_CT_ACT_NAT_SRC (1 << 4) +#define TCA_CT_ACT_NAT_DST (1 << 5) + +struct tc_ct { + tc_gen; +}; + +#endif /* __UAPI_TC_CT_H */ diff --git a/contrib/libs/linux-headers/linux/tc_act/tc_ctinfo.h b/contrib/libs/linux-headers/linux/tc_act/tc_ctinfo.h index f5f26d95d0..d9977c7448 100644 --- a/contrib/libs/linux-headers/linux/tc_act/tc_ctinfo.h +++ b/contrib/libs/linux-headers/linux/tc_act/tc_ctinfo.h @@ -1,29 +1,29 @@ -/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ -#ifndef __UAPI_TC_CTINFO_H -#define __UAPI_TC_CTINFO_H - -#include <linux/types.h> -#include <linux/pkt_cls.h> - -struct tc_ctinfo { - tc_gen; -}; - -enum { - TCA_CTINFO_UNSPEC, - TCA_CTINFO_PAD, - TCA_CTINFO_TM, - TCA_CTINFO_ACT, - TCA_CTINFO_ZONE, - TCA_CTINFO_PARMS_DSCP_MASK, - TCA_CTINFO_PARMS_DSCP_STATEMASK, - TCA_CTINFO_PARMS_CPMARK_MASK, - TCA_CTINFO_STATS_DSCP_SET, - TCA_CTINFO_STATS_DSCP_ERROR, - TCA_CTINFO_STATS_CPMARK_SET, - __TCA_CTINFO_MAX -}; - -#define TCA_CTINFO_MAX (__TCA_CTINFO_MAX - 1) - -#endif +/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ +#ifndef __UAPI_TC_CTINFO_H +#define __UAPI_TC_CTINFO_H + +#include <linux/types.h> +#include <linux/pkt_cls.h> + +struct tc_ctinfo { + tc_gen; +}; + +enum { + TCA_CTINFO_UNSPEC, + TCA_CTINFO_PAD, + TCA_CTINFO_TM, + TCA_CTINFO_ACT, + TCA_CTINFO_ZONE, + TCA_CTINFO_PARMS_DSCP_MASK, + TCA_CTINFO_PARMS_DSCP_STATEMASK, + TCA_CTINFO_PARMS_CPMARK_MASK, + TCA_CTINFO_STATS_DSCP_SET, + TCA_CTINFO_STATS_DSCP_ERROR, + TCA_CTINFO_STATS_CPMARK_SET, + __TCA_CTINFO_MAX +}; + +#define TCA_CTINFO_MAX (__TCA_CTINFO_MAX - 1) + +#endif diff --git a/contrib/libs/linux-headers/linux/tc_act/tc_defact.h b/contrib/libs/linux-headers/linux/tc_act/tc_defact.h index e3ecd8bf37..ec9d2eddc8 100644 --- a/contrib/libs/linux-headers/linux/tc_act/tc_defact.h +++ b/contrib/libs/linux-headers/linux/tc_act/tc_defact.h @@ -1,21 +1,21 @@ -/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ -#ifndef __LINUX_TC_DEF_H -#define __LINUX_TC_DEF_H - -#include <linux/pkt_cls.h> - -struct tc_defact { - tc_gen; -}; - -enum { - TCA_DEF_UNSPEC, - TCA_DEF_TM, - TCA_DEF_PARMS, - TCA_DEF_DATA, - TCA_DEF_PAD, - __TCA_DEF_MAX -}; -#define TCA_DEF_MAX (__TCA_DEF_MAX - 1) - -#endif +/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ +#ifndef __LINUX_TC_DEF_H +#define __LINUX_TC_DEF_H + +#include <linux/pkt_cls.h> + +struct tc_defact { + tc_gen; +}; + +enum { + TCA_DEF_UNSPEC, + TCA_DEF_TM, + TCA_DEF_PARMS, + TCA_DEF_DATA, + TCA_DEF_PAD, + __TCA_DEF_MAX +}; +#define TCA_DEF_MAX (__TCA_DEF_MAX - 1) + +#endif diff --git a/contrib/libs/linux-headers/linux/tc_act/tc_gact.h b/contrib/libs/linux-headers/linux/tc_act/tc_gact.h index 37e5392e02..75c6f819bd 100644 --- a/contrib/libs/linux-headers/linux/tc_act/tc_gact.h +++ b/contrib/libs/linux-headers/linux/tc_act/tc_gact.h @@ -1,33 +1,33 @@ -/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ -#ifndef __LINUX_TC_GACT_H -#define __LINUX_TC_GACT_H - -#include <linux/types.h> -#include <linux/pkt_cls.h> - -struct tc_gact { - tc_gen; - -}; - -struct tc_gact_p { -#define PGACT_NONE 0 -#define PGACT_NETRAND 1 -#define PGACT_DETERM 2 -#define MAX_RAND (PGACT_DETERM + 1 ) - __u16 ptype; - __u16 pval; - int paction; -}; +/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ +#ifndef __LINUX_TC_GACT_H +#define __LINUX_TC_GACT_H -enum { - TCA_GACT_UNSPEC, - TCA_GACT_TM, - TCA_GACT_PARMS, - TCA_GACT_PROB, - TCA_GACT_PAD, - __TCA_GACT_MAX -}; -#define TCA_GACT_MAX (__TCA_GACT_MAX - 1) +#include <linux/types.h> +#include <linux/pkt_cls.h> -#endif +struct tc_gact { + tc_gen; + +}; + +struct tc_gact_p { +#define PGACT_NONE 0 +#define PGACT_NETRAND 1 +#define PGACT_DETERM 2 +#define MAX_RAND (PGACT_DETERM + 1 ) + __u16 ptype; + __u16 pval; + int paction; +}; + +enum { + TCA_GACT_UNSPEC, + TCA_GACT_TM, + TCA_GACT_PARMS, + TCA_GACT_PROB, + TCA_GACT_PAD, + __TCA_GACT_MAX +}; +#define TCA_GACT_MAX (__TCA_GACT_MAX - 1) + +#endif diff --git a/contrib/libs/linux-headers/linux/tc_act/tc_ife.h b/contrib/libs/linux-headers/linux/tc_act/tc_ife.h index 8c401f1856..e2fbd99d3a 100644 --- a/contrib/libs/linux-headers/linux/tc_act/tc_ife.h +++ b/contrib/libs/linux-headers/linux/tc_act/tc_ife.h @@ -1,32 +1,32 @@ -/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ -#ifndef __UAPI_TC_IFE_H -#define __UAPI_TC_IFE_H - -#include <linux/types.h> -#include <linux/pkt_cls.h> -#include <linux/ife.h> - -/* Flag bits for now just encoding/decoding; mutually exclusive */ -#define IFE_ENCODE 1 -#define IFE_DECODE 0 - -struct tc_ife { - tc_gen; - __u16 flags; -}; - -/*XXX: We need to encode the total number of bytes consumed */ -enum { - TCA_IFE_UNSPEC, - TCA_IFE_PARMS, - TCA_IFE_TM, - TCA_IFE_DMAC, - TCA_IFE_SMAC, - TCA_IFE_TYPE, - TCA_IFE_METALST, - TCA_IFE_PAD, - __TCA_IFE_MAX -}; -#define TCA_IFE_MAX (__TCA_IFE_MAX - 1) - -#endif +/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ +#ifndef __UAPI_TC_IFE_H +#define __UAPI_TC_IFE_H + +#include <linux/types.h> +#include <linux/pkt_cls.h> +#include <linux/ife.h> + +/* Flag bits for now just encoding/decoding; mutually exclusive */ +#define IFE_ENCODE 1 +#define IFE_DECODE 0 + +struct tc_ife { + tc_gen; + __u16 flags; +}; + +/*XXX: We need to encode the total number of bytes consumed */ +enum { + TCA_IFE_UNSPEC, + TCA_IFE_PARMS, + TCA_IFE_TM, + TCA_IFE_DMAC, + TCA_IFE_SMAC, + TCA_IFE_TYPE, + TCA_IFE_METALST, + TCA_IFE_PAD, + __TCA_IFE_MAX +}; +#define TCA_IFE_MAX (__TCA_IFE_MAX - 1) + +#endif diff --git a/contrib/libs/linux-headers/linux/tc_act/tc_ipt.h b/contrib/libs/linux-headers/linux/tc_act/tc_ipt.h index c48d7da675..ae872c4f92 100644 --- a/contrib/libs/linux-headers/linux/tc_act/tc_ipt.h +++ b/contrib/libs/linux-headers/linux/tc_act/tc_ipt.h @@ -1,20 +1,20 @@ -/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ -#ifndef __LINUX_TC_IPT_H -#define __LINUX_TC_IPT_H - -#include <linux/pkt_cls.h> - -enum { - TCA_IPT_UNSPEC, - TCA_IPT_TABLE, - TCA_IPT_HOOK, - TCA_IPT_INDEX, - TCA_IPT_CNT, - TCA_IPT_TM, - TCA_IPT_TARG, - TCA_IPT_PAD, - __TCA_IPT_MAX -}; -#define TCA_IPT_MAX (__TCA_IPT_MAX - 1) - -#endif +/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ +#ifndef __LINUX_TC_IPT_H +#define __LINUX_TC_IPT_H + +#include <linux/pkt_cls.h> + +enum { + TCA_IPT_UNSPEC, + TCA_IPT_TABLE, + TCA_IPT_HOOK, + TCA_IPT_INDEX, + TCA_IPT_CNT, + TCA_IPT_TM, + TCA_IPT_TARG, + TCA_IPT_PAD, + __TCA_IPT_MAX +}; +#define TCA_IPT_MAX (__TCA_IPT_MAX - 1) + +#endif diff --git a/contrib/libs/linux-headers/linux/tc_act/tc_mirred.h b/contrib/libs/linux-headers/linux/tc_act/tc_mirred.h index 2500a0005d..02719ffa8b 100644 --- a/contrib/libs/linux-headers/linux/tc_act/tc_mirred.h +++ b/contrib/libs/linux-headers/linux/tc_act/tc_mirred.h @@ -1,28 +1,28 @@ -/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ -#ifndef __LINUX_TC_MIR_H -#define __LINUX_TC_MIR_H - -#include <linux/types.h> -#include <linux/pkt_cls.h> - -#define TCA_EGRESS_REDIR 1 /* packet redirect to EGRESS*/ -#define TCA_EGRESS_MIRROR 2 /* mirror packet to EGRESS */ -#define TCA_INGRESS_REDIR 3 /* packet redirect to INGRESS*/ -#define TCA_INGRESS_MIRROR 4 /* mirror packet to INGRESS */ - -struct tc_mirred { - tc_gen; - int eaction; /* one of IN/EGRESS_MIRROR/REDIR */ - __u32 ifindex; /* ifindex of egress port */ -}; - -enum { - TCA_MIRRED_UNSPEC, - TCA_MIRRED_TM, - TCA_MIRRED_PARMS, - TCA_MIRRED_PAD, - __TCA_MIRRED_MAX -}; -#define TCA_MIRRED_MAX (__TCA_MIRRED_MAX - 1) - -#endif +/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ +#ifndef __LINUX_TC_MIR_H +#define __LINUX_TC_MIR_H + +#include <linux/types.h> +#include <linux/pkt_cls.h> + +#define TCA_EGRESS_REDIR 1 /* packet redirect to EGRESS*/ +#define TCA_EGRESS_MIRROR 2 /* mirror packet to EGRESS */ +#define TCA_INGRESS_REDIR 3 /* packet redirect to INGRESS*/ +#define TCA_INGRESS_MIRROR 4 /* mirror packet to INGRESS */ + +struct tc_mirred { + tc_gen; + int eaction; /* one of IN/EGRESS_MIRROR/REDIR */ + __u32 ifindex; /* ifindex of egress port */ +}; + +enum { + TCA_MIRRED_UNSPEC, + TCA_MIRRED_TM, + TCA_MIRRED_PARMS, + TCA_MIRRED_PAD, + __TCA_MIRRED_MAX +}; +#define TCA_MIRRED_MAX (__TCA_MIRRED_MAX - 1) + +#endif diff --git a/contrib/libs/linux-headers/linux/tc_act/tc_mpls.h b/contrib/libs/linux-headers/linux/tc_act/tc_mpls.h index 9360e95273..ac77fbcd76 100644 --- a/contrib/libs/linux-headers/linux/tc_act/tc_mpls.h +++ b/contrib/libs/linux-headers/linux/tc_act/tc_mpls.h @@ -1,33 +1,33 @@ -/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ -/* Copyright (C) 2019 Netronome Systems, Inc. */ - -#ifndef __LINUX_TC_MPLS_H -#define __LINUX_TC_MPLS_H - -#include <linux/pkt_cls.h> - -#define TCA_MPLS_ACT_POP 1 -#define TCA_MPLS_ACT_PUSH 2 -#define TCA_MPLS_ACT_MODIFY 3 -#define TCA_MPLS_ACT_DEC_TTL 4 - -struct tc_mpls { - tc_gen; /* generic TC action fields. */ - int m_action; /* action of type TCA_MPLS_ACT_*. */ -}; - -enum { - TCA_MPLS_UNSPEC, - TCA_MPLS_TM, /* struct tcf_t; time values associated with action. */ - TCA_MPLS_PARMS, /* struct tc_mpls; action type and general TC fields. */ - TCA_MPLS_PAD, - TCA_MPLS_PROTO, /* be16; eth_type of pushed or next (for pop) header. */ - TCA_MPLS_LABEL, /* u32; MPLS label. Lower 20 bits are used. */ - TCA_MPLS_TC, /* u8; MPLS TC field. Lower 3 bits are used. */ - TCA_MPLS_TTL, /* u8; MPLS TTL field. Must not be 0. */ - TCA_MPLS_BOS, /* u8; MPLS BOS field. Either 1 or 0. */ - __TCA_MPLS_MAX, -}; -#define TCA_MPLS_MAX (__TCA_MPLS_MAX - 1) - -#endif +/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ +/* Copyright (C) 2019 Netronome Systems, Inc. */ + +#ifndef __LINUX_TC_MPLS_H +#define __LINUX_TC_MPLS_H + +#include <linux/pkt_cls.h> + +#define TCA_MPLS_ACT_POP 1 +#define TCA_MPLS_ACT_PUSH 2 +#define TCA_MPLS_ACT_MODIFY 3 +#define TCA_MPLS_ACT_DEC_TTL 4 + +struct tc_mpls { + tc_gen; /* generic TC action fields. */ + int m_action; /* action of type TCA_MPLS_ACT_*. */ +}; + +enum { + TCA_MPLS_UNSPEC, + TCA_MPLS_TM, /* struct tcf_t; time values associated with action. */ + TCA_MPLS_PARMS, /* struct tc_mpls; action type and general TC fields. */ + TCA_MPLS_PAD, + TCA_MPLS_PROTO, /* be16; eth_type of pushed or next (for pop) header. */ + TCA_MPLS_LABEL, /* u32; MPLS label. Lower 20 bits are used. */ + TCA_MPLS_TC, /* u8; MPLS TC field. Lower 3 bits are used. */ + TCA_MPLS_TTL, /* u8; MPLS TTL field. Must not be 0. */ + TCA_MPLS_BOS, /* u8; MPLS BOS field. Either 1 or 0. */ + __TCA_MPLS_MAX, +}; +#define TCA_MPLS_MAX (__TCA_MPLS_MAX - 1) + +#endif diff --git a/contrib/libs/linux-headers/linux/tc_act/tc_nat.h b/contrib/libs/linux-headers/linux/tc_act/tc_nat.h index 21399c2c61..eb98df964f 100644 --- a/contrib/libs/linux-headers/linux/tc_act/tc_nat.h +++ b/contrib/libs/linux-headers/linux/tc_act/tc_nat.h @@ -1,27 +1,27 @@ -/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ -#ifndef __LINUX_TC_NAT_H -#define __LINUX_TC_NAT_H - -#include <linux/pkt_cls.h> -#include <linux/types.h> - -enum { - TCA_NAT_UNSPEC, - TCA_NAT_PARMS, - TCA_NAT_TM, - TCA_NAT_PAD, - __TCA_NAT_MAX -}; -#define TCA_NAT_MAX (__TCA_NAT_MAX - 1) - -#define TCA_NAT_FLAG_EGRESS 1 - -struct tc_nat { - tc_gen; - __be32 old_addr; - __be32 new_addr; - __be32 mask; - __u32 flags; -}; - -#endif +/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ +#ifndef __LINUX_TC_NAT_H +#define __LINUX_TC_NAT_H + +#include <linux/pkt_cls.h> +#include <linux/types.h> + +enum { + TCA_NAT_UNSPEC, + TCA_NAT_PARMS, + TCA_NAT_TM, + TCA_NAT_PAD, + __TCA_NAT_MAX +}; +#define TCA_NAT_MAX (__TCA_NAT_MAX - 1) + +#define TCA_NAT_FLAG_EGRESS 1 + +struct tc_nat { + tc_gen; + __be32 old_addr; + __be32 new_addr; + __be32 mask; + __u32 flags; +}; + +#endif diff --git a/contrib/libs/linux-headers/linux/tc_act/tc_pedit.h b/contrib/libs/linux-headers/linux/tc_act/tc_pedit.h index f3e61b04fa..a238926fc0 100644 --- a/contrib/libs/linux-headers/linux/tc_act/tc_pedit.h +++ b/contrib/libs/linux-headers/linux/tc_act/tc_pedit.h @@ -1,70 +1,70 @@ -/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ -#ifndef __LINUX_TC_PED_H -#define __LINUX_TC_PED_H - -#include <linux/types.h> -#include <linux/pkt_cls.h> - -enum { - TCA_PEDIT_UNSPEC, - TCA_PEDIT_TM, - TCA_PEDIT_PARMS, - TCA_PEDIT_PAD, - TCA_PEDIT_PARMS_EX, - TCA_PEDIT_KEYS_EX, - TCA_PEDIT_KEY_EX, - __TCA_PEDIT_MAX -}; - -#define TCA_PEDIT_MAX (__TCA_PEDIT_MAX - 1) - -enum { - TCA_PEDIT_KEY_EX_HTYPE = 1, - TCA_PEDIT_KEY_EX_CMD = 2, - __TCA_PEDIT_KEY_EX_MAX -}; - -#define TCA_PEDIT_KEY_EX_MAX (__TCA_PEDIT_KEY_EX_MAX - 1) - - /* TCA_PEDIT_KEY_EX_HDR_TYPE_NETWROK is a special case for legacy users. It - * means no specific header type - offset is relative to the network layer - */ -enum pedit_header_type { - TCA_PEDIT_KEY_EX_HDR_TYPE_NETWORK = 0, - TCA_PEDIT_KEY_EX_HDR_TYPE_ETH = 1, - TCA_PEDIT_KEY_EX_HDR_TYPE_IP4 = 2, - TCA_PEDIT_KEY_EX_HDR_TYPE_IP6 = 3, - TCA_PEDIT_KEY_EX_HDR_TYPE_TCP = 4, - TCA_PEDIT_KEY_EX_HDR_TYPE_UDP = 5, - __PEDIT_HDR_TYPE_MAX, -}; - -#define TCA_PEDIT_HDR_TYPE_MAX (__PEDIT_HDR_TYPE_MAX - 1) - -enum pedit_cmd { - TCA_PEDIT_KEY_EX_CMD_SET = 0, - TCA_PEDIT_KEY_EX_CMD_ADD = 1, - __PEDIT_CMD_MAX, -}; - -#define TCA_PEDIT_CMD_MAX (__PEDIT_CMD_MAX - 1) - -struct tc_pedit_key { - __u32 mask; /* AND */ - __u32 val; /*XOR */ - __u32 off; /*offset */ - __u32 at; - __u32 offmask; - __u32 shift; -}; - -struct tc_pedit_sel { - tc_gen; - unsigned char nkeys; - unsigned char flags; - struct tc_pedit_key keys[0]; -}; - -#define tc_pedit tc_pedit_sel - -#endif +/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ +#ifndef __LINUX_TC_PED_H +#define __LINUX_TC_PED_H + +#include <linux/types.h> +#include <linux/pkt_cls.h> + +enum { + TCA_PEDIT_UNSPEC, + TCA_PEDIT_TM, + TCA_PEDIT_PARMS, + TCA_PEDIT_PAD, + TCA_PEDIT_PARMS_EX, + TCA_PEDIT_KEYS_EX, + TCA_PEDIT_KEY_EX, + __TCA_PEDIT_MAX +}; + +#define TCA_PEDIT_MAX (__TCA_PEDIT_MAX - 1) + +enum { + TCA_PEDIT_KEY_EX_HTYPE = 1, + TCA_PEDIT_KEY_EX_CMD = 2, + __TCA_PEDIT_KEY_EX_MAX +}; + +#define TCA_PEDIT_KEY_EX_MAX (__TCA_PEDIT_KEY_EX_MAX - 1) + + /* TCA_PEDIT_KEY_EX_HDR_TYPE_NETWROK is a special case for legacy users. It + * means no specific header type - offset is relative to the network layer + */ +enum pedit_header_type { + TCA_PEDIT_KEY_EX_HDR_TYPE_NETWORK = 0, + TCA_PEDIT_KEY_EX_HDR_TYPE_ETH = 1, + TCA_PEDIT_KEY_EX_HDR_TYPE_IP4 = 2, + TCA_PEDIT_KEY_EX_HDR_TYPE_IP6 = 3, + TCA_PEDIT_KEY_EX_HDR_TYPE_TCP = 4, + TCA_PEDIT_KEY_EX_HDR_TYPE_UDP = 5, + __PEDIT_HDR_TYPE_MAX, +}; + +#define TCA_PEDIT_HDR_TYPE_MAX (__PEDIT_HDR_TYPE_MAX - 1) + +enum pedit_cmd { + TCA_PEDIT_KEY_EX_CMD_SET = 0, + TCA_PEDIT_KEY_EX_CMD_ADD = 1, + __PEDIT_CMD_MAX, +}; + +#define TCA_PEDIT_CMD_MAX (__PEDIT_CMD_MAX - 1) + +struct tc_pedit_key { + __u32 mask; /* AND */ + __u32 val; /*XOR */ + __u32 off; /*offset */ + __u32 at; + __u32 offmask; + __u32 shift; +}; + +struct tc_pedit_sel { + tc_gen; + unsigned char nkeys; + unsigned char flags; + struct tc_pedit_key keys[0]; +}; + +#define tc_pedit tc_pedit_sel + +#endif diff --git a/contrib/libs/linux-headers/linux/tc_act/tc_sample.h b/contrib/libs/linux-headers/linux/tc_act/tc_sample.h index fee1bcc207..963dd789fb 100644 --- a/contrib/libs/linux-headers/linux/tc_act/tc_sample.h +++ b/contrib/libs/linux-headers/linux/tc_act/tc_sample.h @@ -1,25 +1,25 @@ -/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ -#ifndef __LINUX_TC_SAMPLE_H -#define __LINUX_TC_SAMPLE_H - -#include <linux/types.h> -#include <linux/pkt_cls.h> -#include <linux/if_ether.h> - -struct tc_sample { - tc_gen; -}; - -enum { - TCA_SAMPLE_UNSPEC, - TCA_SAMPLE_TM, - TCA_SAMPLE_PARMS, - TCA_SAMPLE_RATE, - TCA_SAMPLE_TRUNC_SIZE, - TCA_SAMPLE_PSAMPLE_GROUP, - TCA_SAMPLE_PAD, - __TCA_SAMPLE_MAX -}; -#define TCA_SAMPLE_MAX (__TCA_SAMPLE_MAX - 1) - -#endif +/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ +#ifndef __LINUX_TC_SAMPLE_H +#define __LINUX_TC_SAMPLE_H + +#include <linux/types.h> +#include <linux/pkt_cls.h> +#include <linux/if_ether.h> + +struct tc_sample { + tc_gen; +}; + +enum { + TCA_SAMPLE_UNSPEC, + TCA_SAMPLE_TM, + TCA_SAMPLE_PARMS, + TCA_SAMPLE_RATE, + TCA_SAMPLE_TRUNC_SIZE, + TCA_SAMPLE_PSAMPLE_GROUP, + TCA_SAMPLE_PAD, + __TCA_SAMPLE_MAX +}; +#define TCA_SAMPLE_MAX (__TCA_SAMPLE_MAX - 1) + +#endif diff --git a/contrib/libs/linux-headers/linux/tc_act/tc_skbedit.h b/contrib/libs/linux-headers/linux/tc_act/tc_skbedit.h index 800e933772..18776404b2 100644 --- a/contrib/libs/linux-headers/linux/tc_act/tc_skbedit.h +++ b/contrib/libs/linux-headers/linux/tc_act/tc_skbedit.h @@ -1,52 +1,52 @@ -/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ -/* - * Copyright (c) 2008, Intel Corporation. - * - * This program is free software; you can redistribute it and/or modify it - * under the terms and conditions of the GNU General Public License, - * version 2, as published by the Free Software Foundation. - * - * This program is distributed in the hope it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for - * more details. - * - * You should have received a copy of the GNU General Public License along with - * this program; if not, write to the Free Software Foundation, Inc., 59 Temple - * Place - Suite 330, Boston, MA 02111-1307 USA. - * - * Author: Alexander Duyck <alexander.h.duyck@intel.com> - */ - -#ifndef __LINUX_TC_SKBEDIT_H -#define __LINUX_TC_SKBEDIT_H - -#include <linux/pkt_cls.h> - -#define SKBEDIT_F_PRIORITY 0x1 -#define SKBEDIT_F_QUEUE_MAPPING 0x2 -#define SKBEDIT_F_MARK 0x4 -#define SKBEDIT_F_PTYPE 0x8 -#define SKBEDIT_F_MASK 0x10 -#define SKBEDIT_F_INHERITDSFIELD 0x20 - -struct tc_skbedit { - tc_gen; -}; - -enum { - TCA_SKBEDIT_UNSPEC, - TCA_SKBEDIT_TM, - TCA_SKBEDIT_PARMS, - TCA_SKBEDIT_PRIORITY, - TCA_SKBEDIT_QUEUE_MAPPING, - TCA_SKBEDIT_MARK, - TCA_SKBEDIT_PAD, - TCA_SKBEDIT_PTYPE, - TCA_SKBEDIT_MASK, - TCA_SKBEDIT_FLAGS, - __TCA_SKBEDIT_MAX -}; -#define TCA_SKBEDIT_MAX (__TCA_SKBEDIT_MAX - 1) - -#endif +/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ +/* + * Copyright (c) 2008, Intel Corporation. + * + * This program is free software; you can redistribute it and/or modify it + * under the terms and conditions of the GNU General Public License, + * version 2, as published by the Free Software Foundation. + * + * This program is distributed in the hope it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program; if not, write to the Free Software Foundation, Inc., 59 Temple + * Place - Suite 330, Boston, MA 02111-1307 USA. + * + * Author: Alexander Duyck <alexander.h.duyck@intel.com> + */ + +#ifndef __LINUX_TC_SKBEDIT_H +#define __LINUX_TC_SKBEDIT_H + +#include <linux/pkt_cls.h> + +#define SKBEDIT_F_PRIORITY 0x1 +#define SKBEDIT_F_QUEUE_MAPPING 0x2 +#define SKBEDIT_F_MARK 0x4 +#define SKBEDIT_F_PTYPE 0x8 +#define SKBEDIT_F_MASK 0x10 +#define SKBEDIT_F_INHERITDSFIELD 0x20 + +struct tc_skbedit { + tc_gen; +}; + +enum { + TCA_SKBEDIT_UNSPEC, + TCA_SKBEDIT_TM, + TCA_SKBEDIT_PARMS, + TCA_SKBEDIT_PRIORITY, + TCA_SKBEDIT_QUEUE_MAPPING, + TCA_SKBEDIT_MARK, + TCA_SKBEDIT_PAD, + TCA_SKBEDIT_PTYPE, + TCA_SKBEDIT_MASK, + TCA_SKBEDIT_FLAGS, + __TCA_SKBEDIT_MAX +}; +#define TCA_SKBEDIT_MAX (__TCA_SKBEDIT_MAX - 1) + +#endif diff --git a/contrib/libs/linux-headers/linux/tc_act/tc_skbmod.h b/contrib/libs/linux-headers/linux/tc_act/tc_skbmod.h index c525b35037..a81b7674e8 100644 --- a/contrib/libs/linux-headers/linux/tc_act/tc_skbmod.h +++ b/contrib/libs/linux-headers/linux/tc_act/tc_skbmod.h @@ -1,38 +1,38 @@ -/* SPDX-License-Identifier: GPL-2.0+ WITH Linux-syscall-note */ -/* - * Copyright (c) 2016, Jamal Hadi Salim - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. -*/ - -#ifndef __LINUX_TC_SKBMOD_H -#define __LINUX_TC_SKBMOD_H - -#include <linux/pkt_cls.h> - -#define SKBMOD_F_DMAC 0x1 -#define SKBMOD_F_SMAC 0x2 -#define SKBMOD_F_ETYPE 0x4 -#define SKBMOD_F_SWAPMAC 0x8 - -struct tc_skbmod { - tc_gen; - __u64 flags; -}; - -enum { - TCA_SKBMOD_UNSPEC, - TCA_SKBMOD_TM, - TCA_SKBMOD_PARMS, - TCA_SKBMOD_DMAC, - TCA_SKBMOD_SMAC, - TCA_SKBMOD_ETYPE, - TCA_SKBMOD_PAD, - __TCA_SKBMOD_MAX -}; -#define TCA_SKBMOD_MAX (__TCA_SKBMOD_MAX - 1) - -#endif +/* SPDX-License-Identifier: GPL-2.0+ WITH Linux-syscall-note */ +/* + * Copyright (c) 2016, Jamal Hadi Salim + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. +*/ + +#ifndef __LINUX_TC_SKBMOD_H +#define __LINUX_TC_SKBMOD_H + +#include <linux/pkt_cls.h> + +#define SKBMOD_F_DMAC 0x1 +#define SKBMOD_F_SMAC 0x2 +#define SKBMOD_F_ETYPE 0x4 +#define SKBMOD_F_SWAPMAC 0x8 + +struct tc_skbmod { + tc_gen; + __u64 flags; +}; + +enum { + TCA_SKBMOD_UNSPEC, + TCA_SKBMOD_TM, + TCA_SKBMOD_PARMS, + TCA_SKBMOD_DMAC, + TCA_SKBMOD_SMAC, + TCA_SKBMOD_ETYPE, + TCA_SKBMOD_PAD, + __TCA_SKBMOD_MAX +}; +#define TCA_SKBMOD_MAX (__TCA_SKBMOD_MAX - 1) + +#endif diff --git a/contrib/libs/linux-headers/linux/tc_act/tc_tunnel_key.h b/contrib/libs/linux-headers/linux/tc_act/tc_tunnel_key.h index 3f10dc4e7a..155921c49e 100644 --- a/contrib/libs/linux-headers/linux/tc_act/tc_tunnel_key.h +++ b/contrib/libs/linux-headers/linux/tc_act/tc_tunnel_key.h @@ -1,99 +1,99 @@ -/* SPDX-License-Identifier: GPL-2.0+ WITH Linux-syscall-note */ -/* - * Copyright (c) 2016, Amir Vadai <amir@vadai.me> - * Copyright (c) 2016, Mellanox Technologies. All rights reserved. - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. - */ - -#ifndef __LINUX_TC_TUNNEL_KEY_H -#define __LINUX_TC_TUNNEL_KEY_H - -#include <linux/pkt_cls.h> - -#define TCA_TUNNEL_KEY_ACT_SET 1 -#define TCA_TUNNEL_KEY_ACT_RELEASE 2 - -struct tc_tunnel_key { - tc_gen; - int t_action; -}; - -enum { - TCA_TUNNEL_KEY_UNSPEC, - TCA_TUNNEL_KEY_TM, - TCA_TUNNEL_KEY_PARMS, - TCA_TUNNEL_KEY_ENC_IPV4_SRC, /* be32 */ - TCA_TUNNEL_KEY_ENC_IPV4_DST, /* be32 */ - TCA_TUNNEL_KEY_ENC_IPV6_SRC, /* struct in6_addr */ - TCA_TUNNEL_KEY_ENC_IPV6_DST, /* struct in6_addr */ - TCA_TUNNEL_KEY_ENC_KEY_ID, /* be64 */ - TCA_TUNNEL_KEY_PAD, - TCA_TUNNEL_KEY_ENC_DST_PORT, /* be16 */ - TCA_TUNNEL_KEY_NO_CSUM, /* u8 */ - TCA_TUNNEL_KEY_ENC_OPTS, /* Nested TCA_TUNNEL_KEY_ENC_OPTS_ - * attributes - */ - TCA_TUNNEL_KEY_ENC_TOS, /* u8 */ - TCA_TUNNEL_KEY_ENC_TTL, /* u8 */ - __TCA_TUNNEL_KEY_MAX, -}; - -#define TCA_TUNNEL_KEY_MAX (__TCA_TUNNEL_KEY_MAX - 1) - -enum { - TCA_TUNNEL_KEY_ENC_OPTS_UNSPEC, - TCA_TUNNEL_KEY_ENC_OPTS_GENEVE, /* Nested - * TCA_TUNNEL_KEY_ENC_OPTS_ - * attributes - */ - TCA_TUNNEL_KEY_ENC_OPTS_VXLAN, /* Nested - * TCA_TUNNEL_KEY_ENC_OPTS_ - * attributes - */ - TCA_TUNNEL_KEY_ENC_OPTS_ERSPAN, /* Nested - * TCA_TUNNEL_KEY_ENC_OPTS_ - * attributes - */ - __TCA_TUNNEL_KEY_ENC_OPTS_MAX, -}; - -#define TCA_TUNNEL_KEY_ENC_OPTS_MAX (__TCA_TUNNEL_KEY_ENC_OPTS_MAX - 1) - -enum { - TCA_TUNNEL_KEY_ENC_OPT_GENEVE_UNSPEC, - TCA_TUNNEL_KEY_ENC_OPT_GENEVE_CLASS, /* be16 */ - TCA_TUNNEL_KEY_ENC_OPT_GENEVE_TYPE, /* u8 */ - TCA_TUNNEL_KEY_ENC_OPT_GENEVE_DATA, /* 4 to 128 bytes */ - - __TCA_TUNNEL_KEY_ENC_OPT_GENEVE_MAX, -}; - -#define TCA_TUNNEL_KEY_ENC_OPT_GENEVE_MAX \ - (__TCA_TUNNEL_KEY_ENC_OPT_GENEVE_MAX - 1) - -enum { - TCA_TUNNEL_KEY_ENC_OPT_VXLAN_UNSPEC, - TCA_TUNNEL_KEY_ENC_OPT_VXLAN_GBP, /* u32 */ - __TCA_TUNNEL_KEY_ENC_OPT_VXLAN_MAX, -}; - -#define TCA_TUNNEL_KEY_ENC_OPT_VXLAN_MAX \ - (__TCA_TUNNEL_KEY_ENC_OPT_VXLAN_MAX - 1) - -enum { - TCA_TUNNEL_KEY_ENC_OPT_ERSPAN_UNSPEC, - TCA_TUNNEL_KEY_ENC_OPT_ERSPAN_VER, /* u8 */ - TCA_TUNNEL_KEY_ENC_OPT_ERSPAN_INDEX, /* be32 */ - TCA_TUNNEL_KEY_ENC_OPT_ERSPAN_DIR, /* u8 */ - TCA_TUNNEL_KEY_ENC_OPT_ERSPAN_HWID, /* u8 */ - __TCA_TUNNEL_KEY_ENC_OPT_ERSPAN_MAX, -}; - -#define TCA_TUNNEL_KEY_ENC_OPT_ERSPAN_MAX \ - (__TCA_TUNNEL_KEY_ENC_OPT_ERSPAN_MAX - 1) - -#endif +/* SPDX-License-Identifier: GPL-2.0+ WITH Linux-syscall-note */ +/* + * Copyright (c) 2016, Amir Vadai <amir@vadai.me> + * Copyright (c) 2016, Mellanox Technologies. All rights reserved. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + */ + +#ifndef __LINUX_TC_TUNNEL_KEY_H +#define __LINUX_TC_TUNNEL_KEY_H + +#include <linux/pkt_cls.h> + +#define TCA_TUNNEL_KEY_ACT_SET 1 +#define TCA_TUNNEL_KEY_ACT_RELEASE 2 + +struct tc_tunnel_key { + tc_gen; + int t_action; +}; + +enum { + TCA_TUNNEL_KEY_UNSPEC, + TCA_TUNNEL_KEY_TM, + TCA_TUNNEL_KEY_PARMS, + TCA_TUNNEL_KEY_ENC_IPV4_SRC, /* be32 */ + TCA_TUNNEL_KEY_ENC_IPV4_DST, /* be32 */ + TCA_TUNNEL_KEY_ENC_IPV6_SRC, /* struct in6_addr */ + TCA_TUNNEL_KEY_ENC_IPV6_DST, /* struct in6_addr */ + TCA_TUNNEL_KEY_ENC_KEY_ID, /* be64 */ + TCA_TUNNEL_KEY_PAD, + TCA_TUNNEL_KEY_ENC_DST_PORT, /* be16 */ + TCA_TUNNEL_KEY_NO_CSUM, /* u8 */ + TCA_TUNNEL_KEY_ENC_OPTS, /* Nested TCA_TUNNEL_KEY_ENC_OPTS_ + * attributes + */ + TCA_TUNNEL_KEY_ENC_TOS, /* u8 */ + TCA_TUNNEL_KEY_ENC_TTL, /* u8 */ + __TCA_TUNNEL_KEY_MAX, +}; + +#define TCA_TUNNEL_KEY_MAX (__TCA_TUNNEL_KEY_MAX - 1) + +enum { + TCA_TUNNEL_KEY_ENC_OPTS_UNSPEC, + TCA_TUNNEL_KEY_ENC_OPTS_GENEVE, /* Nested + * TCA_TUNNEL_KEY_ENC_OPTS_ + * attributes + */ + TCA_TUNNEL_KEY_ENC_OPTS_VXLAN, /* Nested + * TCA_TUNNEL_KEY_ENC_OPTS_ + * attributes + */ + TCA_TUNNEL_KEY_ENC_OPTS_ERSPAN, /* Nested + * TCA_TUNNEL_KEY_ENC_OPTS_ + * attributes + */ + __TCA_TUNNEL_KEY_ENC_OPTS_MAX, +}; + +#define TCA_TUNNEL_KEY_ENC_OPTS_MAX (__TCA_TUNNEL_KEY_ENC_OPTS_MAX - 1) + +enum { + TCA_TUNNEL_KEY_ENC_OPT_GENEVE_UNSPEC, + TCA_TUNNEL_KEY_ENC_OPT_GENEVE_CLASS, /* be16 */ + TCA_TUNNEL_KEY_ENC_OPT_GENEVE_TYPE, /* u8 */ + TCA_TUNNEL_KEY_ENC_OPT_GENEVE_DATA, /* 4 to 128 bytes */ + + __TCA_TUNNEL_KEY_ENC_OPT_GENEVE_MAX, +}; + +#define TCA_TUNNEL_KEY_ENC_OPT_GENEVE_MAX \ + (__TCA_TUNNEL_KEY_ENC_OPT_GENEVE_MAX - 1) + +enum { + TCA_TUNNEL_KEY_ENC_OPT_VXLAN_UNSPEC, + TCA_TUNNEL_KEY_ENC_OPT_VXLAN_GBP, /* u32 */ + __TCA_TUNNEL_KEY_ENC_OPT_VXLAN_MAX, +}; + +#define TCA_TUNNEL_KEY_ENC_OPT_VXLAN_MAX \ + (__TCA_TUNNEL_KEY_ENC_OPT_VXLAN_MAX - 1) + +enum { + TCA_TUNNEL_KEY_ENC_OPT_ERSPAN_UNSPEC, + TCA_TUNNEL_KEY_ENC_OPT_ERSPAN_VER, /* u8 */ + TCA_TUNNEL_KEY_ENC_OPT_ERSPAN_INDEX, /* be32 */ + TCA_TUNNEL_KEY_ENC_OPT_ERSPAN_DIR, /* u8 */ + TCA_TUNNEL_KEY_ENC_OPT_ERSPAN_HWID, /* u8 */ + __TCA_TUNNEL_KEY_ENC_OPT_ERSPAN_MAX, +}; + +#define TCA_TUNNEL_KEY_ENC_OPT_ERSPAN_MAX \ + (__TCA_TUNNEL_KEY_ENC_OPT_ERSPAN_MAX - 1) + +#endif diff --git a/contrib/libs/linux-headers/linux/tc_act/tc_vlan.h b/contrib/libs/linux-headers/linux/tc_act/tc_vlan.h index 168995b54a..46d856d12b 100644 --- a/contrib/libs/linux-headers/linux/tc_act/tc_vlan.h +++ b/contrib/libs/linux-headers/linux/tc_act/tc_vlan.h @@ -1,37 +1,37 @@ -/* SPDX-License-Identifier: GPL-2.0+ WITH Linux-syscall-note */ -/* - * Copyright (c) 2014 Jiri Pirko <jiri@resnulli.us> - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. - */ - -#ifndef __LINUX_TC_VLAN_H -#define __LINUX_TC_VLAN_H - -#include <linux/pkt_cls.h> - -#define TCA_VLAN_ACT_POP 1 -#define TCA_VLAN_ACT_PUSH 2 -#define TCA_VLAN_ACT_MODIFY 3 - -struct tc_vlan { - tc_gen; - int v_action; -}; - -enum { - TCA_VLAN_UNSPEC, - TCA_VLAN_TM, - TCA_VLAN_PARMS, - TCA_VLAN_PUSH_VLAN_ID, - TCA_VLAN_PUSH_VLAN_PROTOCOL, - TCA_VLAN_PAD, - TCA_VLAN_PUSH_VLAN_PRIORITY, - __TCA_VLAN_MAX, -}; -#define TCA_VLAN_MAX (__TCA_VLAN_MAX - 1) - -#endif +/* SPDX-License-Identifier: GPL-2.0+ WITH Linux-syscall-note */ +/* + * Copyright (c) 2014 Jiri Pirko <jiri@resnulli.us> + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + */ + +#ifndef __LINUX_TC_VLAN_H +#define __LINUX_TC_VLAN_H + +#include <linux/pkt_cls.h> + +#define TCA_VLAN_ACT_POP 1 +#define TCA_VLAN_ACT_PUSH 2 +#define TCA_VLAN_ACT_MODIFY 3 + +struct tc_vlan { + tc_gen; + int v_action; +}; + +enum { + TCA_VLAN_UNSPEC, + TCA_VLAN_TM, + TCA_VLAN_PARMS, + TCA_VLAN_PUSH_VLAN_ID, + TCA_VLAN_PUSH_VLAN_PROTOCOL, + TCA_VLAN_PAD, + TCA_VLAN_PUSH_VLAN_PRIORITY, + __TCA_VLAN_MAX, +}; +#define TCA_VLAN_MAX (__TCA_VLAN_MAX - 1) + +#endif |