Update kernel headers
Update kernel headers to commit
ef71037047b0 ("Merge branch 'act_ct-software-offload-of-established-flows-fixes'")
Signed-off-by: David Ahern <dsahern@gmail.com>
This commit is contained in:
parent
b6de0bf7db
commit
b6b8e40bf7
|
|
@ -73,7 +73,7 @@ struct bpf_insn {
|
||||||
/* Key of an a BPF_MAP_TYPE_LPM_TRIE entry */
|
/* Key of an a BPF_MAP_TYPE_LPM_TRIE entry */
|
||||||
struct bpf_lpm_trie_key {
|
struct bpf_lpm_trie_key {
|
||||||
__u32 prefixlen; /* up to 32 for AF_INET, 128 for AF_INET6 */
|
__u32 prefixlen; /* up to 32 for AF_INET, 128 for AF_INET6 */
|
||||||
__u8 data[0]; /* Arbitrary size */
|
__u8 data[]; /* Arbitrary size */
|
||||||
};
|
};
|
||||||
|
|
||||||
struct bpf_cgroup_storage_key {
|
struct bpf_cgroup_storage_key {
|
||||||
|
|
@ -2890,6 +2890,25 @@ union bpf_attr {
|
||||||
* Obtain the 64bit jiffies
|
* Obtain the 64bit jiffies
|
||||||
* Return
|
* Return
|
||||||
* The 64 bit jiffies
|
* The 64 bit jiffies
|
||||||
|
*
|
||||||
|
* int bpf_read_branch_records(struct bpf_perf_event_data *ctx, void *buf, u32 size, u64 flags)
|
||||||
|
* Description
|
||||||
|
* For an eBPF program attached to a perf event, retrieve the
|
||||||
|
* branch records (struct perf_branch_entry) associated to *ctx*
|
||||||
|
* and store it in the buffer pointed by *buf* up to size
|
||||||
|
* *size* bytes.
|
||||||
|
* Return
|
||||||
|
* On success, number of bytes written to *buf*. On error, a
|
||||||
|
* negative value.
|
||||||
|
*
|
||||||
|
* The *flags* can be set to **BPF_F_GET_BRANCH_RECORDS_SIZE** to
|
||||||
|
* instead return the number of bytes required to store all the
|
||||||
|
* branch entries. If this flag is set, *buf* may be NULL.
|
||||||
|
*
|
||||||
|
* **-EINVAL** if arguments invalid or **size** not a multiple
|
||||||
|
* of sizeof(struct perf_branch_entry).
|
||||||
|
*
|
||||||
|
* **-ENOENT** if architecture does not support branch records.
|
||||||
*/
|
*/
|
||||||
#define __BPF_FUNC_MAPPER(FN) \
|
#define __BPF_FUNC_MAPPER(FN) \
|
||||||
FN(unspec), \
|
FN(unspec), \
|
||||||
|
|
@ -3010,7 +3029,8 @@ union bpf_attr {
|
||||||
FN(probe_read_kernel_str), \
|
FN(probe_read_kernel_str), \
|
||||||
FN(tcp_send_ack), \
|
FN(tcp_send_ack), \
|
||||||
FN(send_signal_thread), \
|
FN(send_signal_thread), \
|
||||||
FN(jiffies64),
|
FN(jiffies64), \
|
||||||
|
FN(read_branch_records),
|
||||||
|
|
||||||
/* integer value in 'imm' field of BPF_CALL instruction selects which helper
|
/* integer value in 'imm' field of BPF_CALL instruction selects which helper
|
||||||
* function eBPF program intends to call
|
* function eBPF program intends to call
|
||||||
|
|
@ -3089,6 +3109,9 @@ enum bpf_func_id {
|
||||||
/* BPF_FUNC_sk_storage_get flags */
|
/* BPF_FUNC_sk_storage_get flags */
|
||||||
#define BPF_SK_STORAGE_GET_F_CREATE (1ULL << 0)
|
#define BPF_SK_STORAGE_GET_F_CREATE (1ULL << 0)
|
||||||
|
|
||||||
|
/* BPF_FUNC_read_branch_records flags. */
|
||||||
|
#define BPF_F_GET_BRANCH_RECORDS_SIZE (1ULL << 0)
|
||||||
|
|
||||||
/* Mode for BPF_FUNC_skb_adjust_room helper. */
|
/* Mode for BPF_FUNC_skb_adjust_room helper. */
|
||||||
enum bpf_adj_room_mode {
|
enum bpf_adj_room_mode {
|
||||||
BPF_ADJ_ROOM_NET,
|
BPF_ADJ_ROOM_NET,
|
||||||
|
|
|
||||||
|
|
@ -187,6 +187,7 @@ enum devlink_port_flavour {
|
||||||
* for the PCI VF. It is an internal
|
* for the PCI VF. It is an internal
|
||||||
* port that faces the PCI VF.
|
* port that faces the PCI VF.
|
||||||
*/
|
*/
|
||||||
|
DEVLINK_PORT_FLAVOUR_VIRTUAL, /* Any virtual port facing the user. */
|
||||||
};
|
};
|
||||||
|
|
||||||
enum devlink_param_cmode {
|
enum devlink_param_cmode {
|
||||||
|
|
@ -252,6 +253,8 @@ enum devlink_trap_type {
|
||||||
enum {
|
enum {
|
||||||
/* Trap can report input port as metadata */
|
/* Trap can report input port as metadata */
|
||||||
DEVLINK_ATTR_TRAP_METADATA_TYPE_IN_PORT,
|
DEVLINK_ATTR_TRAP_METADATA_TYPE_IN_PORT,
|
||||||
|
/* Trap can report flow action cookie as metadata */
|
||||||
|
DEVLINK_ATTR_TRAP_METADATA_TYPE_FA_COOKIE,
|
||||||
};
|
};
|
||||||
|
|
||||||
enum devlink_attr {
|
enum devlink_attr {
|
||||||
|
|
|
||||||
|
|
@ -588,6 +588,18 @@ enum ifla_geneve_df {
|
||||||
GENEVE_DF_MAX = __GENEVE_DF_END - 1,
|
GENEVE_DF_MAX = __GENEVE_DF_END - 1,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/* Bareudp section */
|
||||||
|
enum {
|
||||||
|
IFLA_BAREUDP_UNSPEC,
|
||||||
|
IFLA_BAREUDP_PORT,
|
||||||
|
IFLA_BAREUDP_ETHERTYPE,
|
||||||
|
IFLA_BAREUDP_SRCPORT_MIN,
|
||||||
|
IFLA_BAREUDP_MULTIPROTO_MODE,
|
||||||
|
__IFLA_BAREUDP_MAX
|
||||||
|
};
|
||||||
|
|
||||||
|
#define IFLA_BAREUDP_MAX (__IFLA_BAREUDP_MAX - 1)
|
||||||
|
|
||||||
/* PPP section */
|
/* PPP section */
|
||||||
enum {
|
enum {
|
||||||
IFLA_PPP_UNSPEC,
|
IFLA_PPP_UNSPEC,
|
||||||
|
|
|
||||||
|
|
@ -64,9 +64,11 @@ struct inet_diag_req_raw {
|
||||||
enum {
|
enum {
|
||||||
INET_DIAG_REQ_NONE,
|
INET_DIAG_REQ_NONE,
|
||||||
INET_DIAG_REQ_BYTECODE,
|
INET_DIAG_REQ_BYTECODE,
|
||||||
|
INET_DIAG_REQ_SK_BPF_STORAGES,
|
||||||
|
__INET_DIAG_REQ_MAX,
|
||||||
};
|
};
|
||||||
|
|
||||||
#define INET_DIAG_REQ_MAX INET_DIAG_REQ_BYTECODE
|
#define INET_DIAG_REQ_MAX (__INET_DIAG_REQ_MAX - 1)
|
||||||
|
|
||||||
/* Bytecode is sequence of 4 byte commands followed by variable arguments.
|
/* Bytecode is sequence of 4 byte commands followed by variable arguments.
|
||||||
* All the commands identified by "code" are conditional jumps forward:
|
* All the commands identified by "code" are conditional jumps forward:
|
||||||
|
|
@ -154,6 +156,7 @@ enum {
|
||||||
INET_DIAG_CLASS_ID, /* request as INET_DIAG_TCLASS */
|
INET_DIAG_CLASS_ID, /* request as INET_DIAG_TCLASS */
|
||||||
INET_DIAG_MD5SIG,
|
INET_DIAG_MD5SIG,
|
||||||
INET_DIAG_ULP_INFO,
|
INET_DIAG_ULP_INFO,
|
||||||
|
INET_DIAG_SK_BPF_STORAGES,
|
||||||
__INET_DIAG_MAX,
|
__INET_DIAG_MAX,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -36,4 +36,30 @@ enum sknetlink_groups {
|
||||||
};
|
};
|
||||||
#define SKNLGRP_MAX (__SKNLGRP_MAX - 1)
|
#define SKNLGRP_MAX (__SKNLGRP_MAX - 1)
|
||||||
|
|
||||||
|
enum {
|
||||||
|
SK_DIAG_BPF_STORAGE_REQ_NONE,
|
||||||
|
SK_DIAG_BPF_STORAGE_REQ_MAP_FD,
|
||||||
|
__SK_DIAG_BPF_STORAGE_REQ_MAX,
|
||||||
|
};
|
||||||
|
|
||||||
|
#define SK_DIAG_BPF_STORAGE_REQ_MAX (__SK_DIAG_BPF_STORAGE_REQ_MAX - 1)
|
||||||
|
|
||||||
|
enum {
|
||||||
|
SK_DIAG_BPF_STORAGE_REP_NONE,
|
||||||
|
SK_DIAG_BPF_STORAGE,
|
||||||
|
__SK_DIAG_BPF_STORAGE_REP_MAX,
|
||||||
|
};
|
||||||
|
|
||||||
|
#define SK_DIAB_BPF_STORAGE_REP_MAX (__SK_DIAG_BPF_STORAGE_REP_MAX - 1)
|
||||||
|
|
||||||
|
enum {
|
||||||
|
SK_DIAG_BPF_STORAGE_NONE,
|
||||||
|
SK_DIAG_BPF_STORAGE_PAD,
|
||||||
|
SK_DIAG_BPF_STORAGE_MAP_ID,
|
||||||
|
SK_DIAG_BPF_STORAGE_MAP_VALUE,
|
||||||
|
__SK_DIAG_BPF_STORAGE_MAX,
|
||||||
|
};
|
||||||
|
|
||||||
|
#define SK_DIAG_BPF_STORAGE_MAX (__SK_DIAG_BPF_STORAGE_MAX - 1)
|
||||||
|
|
||||||
#endif /* __SOCK_DIAG_H__ */
|
#endif /* __SOCK_DIAG_H__ */
|
||||||
|
|
|
||||||
|
|
@ -345,5 +345,7 @@ struct tcp_zerocopy_receive {
|
||||||
__u64 address; /* in: address of mapping */
|
__u64 address; /* in: address of mapping */
|
||||||
__u32 length; /* in/out: number of bytes to map/mapped */
|
__u32 length; /* in/out: number of bytes to map/mapped */
|
||||||
__u32 recv_skip_hint; /* out: amount of bytes to skip */
|
__u32 recv_skip_hint; /* out: amount of bytes to skip */
|
||||||
|
__u32 inq; /* out: amount of bytes in read queue */
|
||||||
|
__s32 err; /* out: socket error */
|
||||||
};
|
};
|
||||||
#endif /* _LINUX_TCP_H */
|
#endif /* _LINUX_TCP_H */
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue