Update kernel headers
Update kernel headers to commit
2aa4a3378ad0 ("Merge git://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-next")
Signed-off-by: David Ahern <dsahern@gmail.com>
This commit is contained in:
parent
5910422d21
commit
3eebc1d4f4
|
|
@ -1826,7 +1826,7 @@ union bpf_attr {
|
|||
* A non-negative value equal to or less than *size* on success,
|
||||
* or a negative error in case of failure.
|
||||
*
|
||||
* int skb_load_bytes_relative(const struct sk_buff *skb, u32 offset, void *to, u32 len, u32 start_header)
|
||||
* int bpf_skb_load_bytes_relative(const struct sk_buff *skb, u32 offset, void *to, u32 len, u32 start_header)
|
||||
* Description
|
||||
* This helper is similar to **bpf_skb_load_bytes**\ () in that
|
||||
* it provides an easy way to load *len* bytes from *offset*
|
||||
|
|
@ -1877,7 +1877,7 @@ union bpf_attr {
|
|||
* * < 0 if any input argument is invalid
|
||||
* * 0 on success (packet is forwarded, nexthop neighbor exists)
|
||||
* * > 0 one of **BPF_FIB_LKUP_RET_** codes explaining why the
|
||||
* * packet is not forwarded or needs assist from full stack
|
||||
* packet is not forwarded or needs assist from full stack
|
||||
*
|
||||
* int bpf_sock_hash_update(struct bpf_sock_ops_kern *skops, struct bpf_map *map, void *key, u64 flags)
|
||||
* Description
|
||||
|
|
@ -2033,7 +2033,6 @@ union bpf_attr {
|
|||
* This helper is only available is the kernel was compiled with
|
||||
* the **CONFIG_BPF_LIRC_MODE2** configuration option set to
|
||||
* "**y**".
|
||||
*
|
||||
* Return
|
||||
* 0
|
||||
*
|
||||
|
|
@ -2053,7 +2052,6 @@ union bpf_attr {
|
|||
* This helper is only available is the kernel was compiled with
|
||||
* the **CONFIG_BPF_LIRC_MODE2** configuration option set to
|
||||
* "**y**".
|
||||
*
|
||||
* Return
|
||||
* 0
|
||||
*
|
||||
|
|
@ -2557,6 +2555,9 @@ enum {
|
|||
* Arg1: old_state
|
||||
* Arg2: new_state
|
||||
*/
|
||||
BPF_SOCK_OPS_TCP_LISTEN_CB, /* Called on listen(2), right after
|
||||
* socket transition to LISTEN state.
|
||||
*/
|
||||
};
|
||||
|
||||
/* List of TCP states. There is a build check in net/ipv4/tcp.c to detect
|
||||
|
|
|
|||
|
|
@ -83,6 +83,12 @@ enum devlink_command {
|
|||
DEVLINK_CMD_PARAM_NEW,
|
||||
DEVLINK_CMD_PARAM_DEL,
|
||||
|
||||
DEVLINK_CMD_REGION_GET,
|
||||
DEVLINK_CMD_REGION_SET,
|
||||
DEVLINK_CMD_REGION_NEW,
|
||||
DEVLINK_CMD_REGION_DEL,
|
||||
DEVLINK_CMD_REGION_READ,
|
||||
|
||||
/* add new commands above here */
|
||||
__DEVLINK_CMD_MAX,
|
||||
DEVLINK_CMD_MAX = __DEVLINK_CMD_MAX - 1
|
||||
|
|
@ -262,6 +268,18 @@ enum devlink_attr {
|
|||
DEVLINK_ATTR_PARAM_VALUE_DATA, /* dynamic */
|
||||
DEVLINK_ATTR_PARAM_VALUE_CMODE, /* u8 */
|
||||
|
||||
DEVLINK_ATTR_REGION_NAME, /* string */
|
||||
DEVLINK_ATTR_REGION_SIZE, /* u64 */
|
||||
DEVLINK_ATTR_REGION_SNAPSHOTS, /* nested */
|
||||
DEVLINK_ATTR_REGION_SNAPSHOT, /* nested */
|
||||
DEVLINK_ATTR_REGION_SNAPSHOT_ID, /* u32 */
|
||||
|
||||
DEVLINK_ATTR_REGION_CHUNKS, /* nested */
|
||||
DEVLINK_ATTR_REGION_CHUNK, /* nested */
|
||||
DEVLINK_ATTR_REGION_CHUNK_DATA, /* binary */
|
||||
DEVLINK_ATTR_REGION_CHUNK_ADDR, /* u64 */
|
||||
DEVLINK_ATTR_REGION_CHUNK_LEN, /* u64 */
|
||||
|
||||
/* add new attributes above here, update the policy in devlink.c */
|
||||
|
||||
__DEVLINK_ATTR_MAX,
|
||||
|
|
|
|||
|
|
@ -918,6 +918,7 @@ enum {
|
|||
XDP_ATTACHED_DRV,
|
||||
XDP_ATTACHED_SKB,
|
||||
XDP_ATTACHED_HW,
|
||||
XDP_ATTACHED_MULTI,
|
||||
};
|
||||
|
||||
enum {
|
||||
|
|
@ -926,6 +927,9 @@ enum {
|
|||
IFLA_XDP_ATTACHED,
|
||||
IFLA_XDP_FLAGS,
|
||||
IFLA_XDP_PROG_ID,
|
||||
IFLA_XDP_DRV_PROG_ID,
|
||||
IFLA_XDP_SKB_PROG_ID,
|
||||
IFLA_XDP_HW_PROG_ID,
|
||||
__IFLA_XDP_MAX,
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -469,6 +469,10 @@ enum {
|
|||
TCA_FLOWER_KEY_IP_TTL, /* u8 */
|
||||
TCA_FLOWER_KEY_IP_TTL_MASK, /* u8 */
|
||||
|
||||
TCA_FLOWER_KEY_CVLAN_ID, /* be16 */
|
||||
TCA_FLOWER_KEY_CVLAN_PRIO, /* u8 */
|
||||
TCA_FLOWER_KEY_CVLAN_ETH_TYPE, /* be16 */
|
||||
|
||||
__TCA_FLOWER_MAX,
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -955,4 +955,118 @@ enum {
|
|||
|
||||
#define TCA_ETF_MAX (__TCA_ETF_MAX - 1)
|
||||
|
||||
|
||||
/* CAKE */
|
||||
enum {
|
||||
TCA_CAKE_UNSPEC,
|
||||
TCA_CAKE_PAD,
|
||||
TCA_CAKE_BASE_RATE64,
|
||||
TCA_CAKE_DIFFSERV_MODE,
|
||||
TCA_CAKE_ATM,
|
||||
TCA_CAKE_FLOW_MODE,
|
||||
TCA_CAKE_OVERHEAD,
|
||||
TCA_CAKE_RTT,
|
||||
TCA_CAKE_TARGET,
|
||||
TCA_CAKE_AUTORATE,
|
||||
TCA_CAKE_MEMORY,
|
||||
TCA_CAKE_NAT,
|
||||
TCA_CAKE_RAW,
|
||||
TCA_CAKE_WASH,
|
||||
TCA_CAKE_MPU,
|
||||
TCA_CAKE_INGRESS,
|
||||
TCA_CAKE_ACK_FILTER,
|
||||
TCA_CAKE_SPLIT_GSO,
|
||||
__TCA_CAKE_MAX
|
||||
};
|
||||
#define TCA_CAKE_MAX (__TCA_CAKE_MAX - 1)
|
||||
|
||||
enum {
|
||||
__TCA_CAKE_STATS_INVALID,
|
||||
TCA_CAKE_STATS_PAD,
|
||||
TCA_CAKE_STATS_CAPACITY_ESTIMATE64,
|
||||
TCA_CAKE_STATS_MEMORY_LIMIT,
|
||||
TCA_CAKE_STATS_MEMORY_USED,
|
||||
TCA_CAKE_STATS_AVG_NETOFF,
|
||||
TCA_CAKE_STATS_MIN_NETLEN,
|
||||
TCA_CAKE_STATS_MAX_NETLEN,
|
||||
TCA_CAKE_STATS_MIN_ADJLEN,
|
||||
TCA_CAKE_STATS_MAX_ADJLEN,
|
||||
TCA_CAKE_STATS_TIN_STATS,
|
||||
TCA_CAKE_STATS_DEFICIT,
|
||||
TCA_CAKE_STATS_COBALT_COUNT,
|
||||
TCA_CAKE_STATS_DROPPING,
|
||||
TCA_CAKE_STATS_DROP_NEXT_US,
|
||||
TCA_CAKE_STATS_P_DROP,
|
||||
TCA_CAKE_STATS_BLUE_TIMER_US,
|
||||
__TCA_CAKE_STATS_MAX
|
||||
};
|
||||
#define TCA_CAKE_STATS_MAX (__TCA_CAKE_STATS_MAX - 1)
|
||||
|
||||
enum {
|
||||
__TCA_CAKE_TIN_STATS_INVALID,
|
||||
TCA_CAKE_TIN_STATS_PAD,
|
||||
TCA_CAKE_TIN_STATS_SENT_PACKETS,
|
||||
TCA_CAKE_TIN_STATS_SENT_BYTES64,
|
||||
TCA_CAKE_TIN_STATS_DROPPED_PACKETS,
|
||||
TCA_CAKE_TIN_STATS_DROPPED_BYTES64,
|
||||
TCA_CAKE_TIN_STATS_ACKS_DROPPED_PACKETS,
|
||||
TCA_CAKE_TIN_STATS_ACKS_DROPPED_BYTES64,
|
||||
TCA_CAKE_TIN_STATS_ECN_MARKED_PACKETS,
|
||||
TCA_CAKE_TIN_STATS_ECN_MARKED_BYTES64,
|
||||
TCA_CAKE_TIN_STATS_BACKLOG_PACKETS,
|
||||
TCA_CAKE_TIN_STATS_BACKLOG_BYTES,
|
||||
TCA_CAKE_TIN_STATS_THRESHOLD_RATE64,
|
||||
TCA_CAKE_TIN_STATS_TARGET_US,
|
||||
TCA_CAKE_TIN_STATS_INTERVAL_US,
|
||||
TCA_CAKE_TIN_STATS_WAY_INDIRECT_HITS,
|
||||
TCA_CAKE_TIN_STATS_WAY_MISSES,
|
||||
TCA_CAKE_TIN_STATS_WAY_COLLISIONS,
|
||||
TCA_CAKE_TIN_STATS_PEAK_DELAY_US,
|
||||
TCA_CAKE_TIN_STATS_AVG_DELAY_US,
|
||||
TCA_CAKE_TIN_STATS_BASE_DELAY_US,
|
||||
TCA_CAKE_TIN_STATS_SPARSE_FLOWS,
|
||||
TCA_CAKE_TIN_STATS_BULK_FLOWS,
|
||||
TCA_CAKE_TIN_STATS_UNRESPONSIVE_FLOWS,
|
||||
TCA_CAKE_TIN_STATS_MAX_SKBLEN,
|
||||
TCA_CAKE_TIN_STATS_FLOW_QUANTUM,
|
||||
__TCA_CAKE_TIN_STATS_MAX
|
||||
};
|
||||
#define TCA_CAKE_TIN_STATS_MAX (__TCA_CAKE_TIN_STATS_MAX - 1)
|
||||
#define TC_CAKE_MAX_TINS (8)
|
||||
|
||||
enum {
|
||||
CAKE_FLOW_NONE = 0,
|
||||
CAKE_FLOW_SRC_IP,
|
||||
CAKE_FLOW_DST_IP,
|
||||
CAKE_FLOW_HOSTS, /* = CAKE_FLOW_SRC_IP | CAKE_FLOW_DST_IP */
|
||||
CAKE_FLOW_FLOWS,
|
||||
CAKE_FLOW_DUAL_SRC, /* = CAKE_FLOW_SRC_IP | CAKE_FLOW_FLOWS */
|
||||
CAKE_FLOW_DUAL_DST, /* = CAKE_FLOW_DST_IP | CAKE_FLOW_FLOWS */
|
||||
CAKE_FLOW_TRIPLE, /* = CAKE_FLOW_HOSTS | CAKE_FLOW_FLOWS */
|
||||
CAKE_FLOW_MAX,
|
||||
};
|
||||
|
||||
enum {
|
||||
CAKE_DIFFSERV_DIFFSERV3 = 0,
|
||||
CAKE_DIFFSERV_DIFFSERV4,
|
||||
CAKE_DIFFSERV_DIFFSERV8,
|
||||
CAKE_DIFFSERV_BESTEFFORT,
|
||||
CAKE_DIFFSERV_PRECEDENCE,
|
||||
CAKE_DIFFSERV_MAX
|
||||
};
|
||||
|
||||
enum {
|
||||
CAKE_ACK_NONE = 0,
|
||||
CAKE_ACK_FILTER,
|
||||
CAKE_ACK_AGGRESSIVE,
|
||||
CAKE_ACK_MAX
|
||||
};
|
||||
|
||||
enum {
|
||||
CAKE_ATM_NONE = 0,
|
||||
CAKE_ATM_ATM,
|
||||
CAKE_ATM_PTM,
|
||||
CAKE_ATM_MAX
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Reference in New Issue