mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-17 23:36:49 +07:00
6f52b16c5b
Many user space API headers are missing licensing information, which makes it hard for compliance tools to determine the correct license. By default are files without license information under the default license of the kernel, which is GPLV2. Marking them GPLV2 would exclude them from being included in non GPLV2 code, which is obviously not intended. The user space API headers fall under the syscall exception which is in the kernels COPYING file: NOTE! This copyright does *not* cover user programs that use kernel services by normal system calls - this is merely considered normal use of the kernel, and does *not* fall under the heading of "derived work". otherwise syscall usage would not be possible. Update the files which contain no license information with an SPDX license identifier. The chosen identifier is 'GPL-2.0 WITH Linux-syscall-note' which is the officially assigned identifier for the Linux syscall exception. SPDX license identifiers are a legally binding shorthand, which can be used instead of the full boiler plate text. This patch is based on work done by Thomas Gleixner and Kate Stewart and Philippe Ombredanne. See the previous patch in this series for the methodology of how this patch was researched. Reviewed-by: Kate Stewart <kstewart@linuxfoundation.org> Reviewed-by: Philippe Ombredanne <pombredanne@nexb.com> Reviewed-by: Thomas Gleixner <tglx@linutronix.de> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
68 lines
1.7 KiB
C
68 lines
1.7 KiB
C
/* 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>
|
|
|
|
#define TCA_ACT_PEDIT 7
|
|
|
|
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
|