Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
14802d8
man: devlink-port: fix the devlink port add synopsis
atenart Oct 6, 2021
04ee8e6
man: devlink-port: fix style
atenart Oct 6, 2021
7c032ca
man: devlink-port: remove extra .br
atenart Oct 6, 2021
a500c5a
lib/bpf: fix map-in-map creation without prepopulation
pchaigno Oct 13, 2021
229eaba
uapi: pickup fix for xfrm ABI breakage
shemminger Oct 16, 2021
76b3080
xfrm: enable to manage default policies
NicolasDichtel Oct 25, 2021
c76a384
ip, neigh: Fix up spacing in netlink dump
borkmann Oct 25, 2021
040e525
ip, neigh: Add missing NTF_USE support
borkmann Oct 25, 2021
9e009e7
ip, neigh: Add NTF_EXT_MANAGED support
borkmann Oct 25, 2021
e2947f6
Merge branch 'managed-neighbor' into next
dsahern Oct 28, 2021
7a235a1
man: devlink-port: fix pfnum for devlink port add
atenart Oct 18, 2021
ad3a118
rdma: Fix SRQ resource tracking information json
NetaOstrovsky Oct 25, 2021
7a8b757
v5.15.0
shemminger Nov 1, 2021
047e9ae
devlink: Fix cmd_dev_param_set() to check configuration mode
mosheshemesh2 Oct 31, 2021
258e350
Update kernel headers
dsahern Nov 3, 2021
9cae1de
Import amt.h
dsahern Nov 3, 2021
6e15d27
ip: add AMT support
TaeheeYoo Oct 30, 2021
8316df6
iplink_can: fix configuration ranges in print_usage() and add unit
vincent-mailhol Nov 3, 2021
fd5e958
iplink_can: code refactoring of print_ctrlmode()
vincent-mailhol Nov 3, 2021
67f3c7a
iplink_can: use PRINT_ANY to factorize code and fix signedness
vincent-mailhol Nov 3, 2021
0f7bb8d
iplink_can: print brp and dbrp bittiming variables
vincent-mailhol Nov 3, 2021
0c263d7
iplink_can: add new CAN FD bittiming parameters: Transmitter Delay Co…
vincent-mailhol Nov 3, 2021
9c56d69
Merge branch 'can-tdc-plus-cleanups' into next
dsahern Nov 4, 2021
50b668b
Merge branch 'main' into next
dsahern Nov 4, 2021
a21458f
vdpa: Remove duplicate vdpa UAPI header file
paravmellanox Nov 6, 2021
821b349
Update kernel headers
alobakin Oct 22, 2021
a5db7c5
ip: add 'xdpstats' command to print generic XDP stats
alobakin Oct 7, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions devlink/devlink.c
Original file line number Diff line number Diff line change
Expand Up @@ -3036,6 +3036,7 @@ static int cmd_dev_param_show_cb(const struct nlmsghdr *nlh, void *data)
struct param_ctx {
struct dl *dl;
int nla_type;
bool cmode_found;
union {
uint8_t vu8;
uint16_t vu16;
Expand Down Expand Up @@ -3088,6 +3089,7 @@ static int cmd_dev_param_set_cb(const struct nlmsghdr *nlh, void *data)

cmode = mnl_attr_get_u8(nla_value[DEVLINK_ATTR_PARAM_VALUE_CMODE]);
if (cmode == dl->opts.cmode) {
ctx->cmode_found = true;
val_attr = nla_value[DEVLINK_ATTR_PARAM_VALUE_DATA];
switch (nla_type) {
case MNL_TYPE_U8:
Expand Down Expand Up @@ -3140,6 +3142,10 @@ static int cmd_dev_param_set(struct dl *dl)
err = mnlu_gen_socket_sndrcv(&dl->nlg, nlh, cmd_dev_param_set_cb, &ctx);
if (err)
return err;
if (!ctx.cmode_found) {
pr_err("Configuration mode not supported\n");
return -ENOTSUP;
}

nlh = mnlu_gen_socket_cmd_prepare(&dl->nlg, DEVLINK_CMD_PARAM_SET,
NLM_F_REQUEST | NLM_F_ACK);
Expand Down
62 changes: 62 additions & 0 deletions include/uapi/linux/amt.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
/* SPDX-License-Identifier: GPL-2.0-only WITH Linux-syscall-note */
/*
* Copyright (c) 2021 Taehee Yoo <ap420073@gmail.com>
*/
#ifndef _AMT_H_
#define _AMT_H_

enum ifla_amt_mode {
/* AMT interface works as Gateway mode.
* The Gateway mode encapsulates IGMP/MLD traffic and decapsulates
* multicast traffic.
*/
AMT_MODE_GATEWAY = 0,
/* AMT interface works as Relay mode.
* The Relay mode encapsulates multicast traffic and decapsulates
* IGMP/MLD traffic.
*/
AMT_MODE_RELAY,
__AMT_MODE_MAX,
};

#define AMT_MODE_MAX (__AMT_MODE_MAX - 1)

enum {
IFLA_AMT_UNSPEC,
/* This attribute specify mode etier Gateway or Relay. */
IFLA_AMT_MODE,
/* This attribute specify Relay port.
* AMT interface is created as Gateway mode, this attribute is used
* to specify relay(remote) port.
* AMT interface is created as Relay mode, this attribute is used
* as local port.
*/
IFLA_AMT_RELAY_PORT,
/* This attribute specify Gateway port.
* AMT interface is created as Gateway mode, this attribute is used
* as local port.
* AMT interface is created as Relay mode, this attribute is not used.
*/
IFLA_AMT_GATEWAY_PORT,
/* This attribute specify physical device */
IFLA_AMT_LINK,
/* This attribute specify local ip address */
IFLA_AMT_LOCAL_IP,
/* This attribute specify Relay ip address.
* So, this is not used by Relay.
*/
IFLA_AMT_REMOTE_IP,
/* This attribute specify Discovery ip address.
* When Gateway get started, it send discovery message to find the
* Relay's ip address.
* So, this is not used by Relay.
*/
IFLA_AMT_DISCOVERY_IP,
/* This attribute specify number of maximum tunnel. */
IFLA_AMT_MAX_TUNNELS,
__IFLA_AMT_MAX,
};

#define IFLA_AMT_MAX (__IFLA_AMT_MAX - 1)

#endif /* _AMT_H_ */
34 changes: 34 additions & 0 deletions include/uapi/linux/bpf.h
Original file line number Diff line number Diff line change
Expand Up @@ -906,6 +906,7 @@ enum bpf_map_type {
BPF_MAP_TYPE_RINGBUF,
BPF_MAP_TYPE_INODE_STORAGE,
BPF_MAP_TYPE_TASK_STORAGE,
BPF_MAP_TYPE_BLOOM_FILTER,
};

/* Note that tracing related programs such as
Expand Down Expand Up @@ -1274,6 +1275,13 @@ union bpf_attr {
* struct stored as the
* map value
*/
/* Any per-map-type extra fields
*
* BPF_MAP_TYPE_BLOOM_FILTER - the lowest 4 bits indicate the
* number of hash functions (if 0, the bloom filter will default
* to using 5 hash functions).
*/
__u64 map_extra;
};

struct { /* anonymous struct used by BPF_MAP_*_ELEM commands */
Expand Down Expand Up @@ -4909,6 +4917,27 @@ union bpf_attr {
* Return
* The number of bytes written to the buffer, or a negative error
* in case of failure.
*
* struct unix_sock *bpf_skc_to_unix_sock(void *sk)
* Description
* Dynamically cast a *sk* pointer to a *unix_sock* pointer.
* Return
* *sk* if casting is valid, or **NULL** otherwise.
*
* long bpf_kallsyms_lookup_name(const char *name, int name_sz, int flags, u64 *res)
* Description
* Get the address of a kernel symbol, returned in *res*. *res* is
* set to 0 if the symbol is not found.
* Return
* On success, zero. On error, a negative value.
*
* **-EINVAL** if *flags* is not zero.
*
* **-EINVAL** if string *name* is not the same size as *name_sz*.
*
* **-ENOENT** if symbol is not found.
*
* **-EPERM** if caller does not have permission to obtain kernel address.
*/
#define __BPF_FUNC_MAPPER(FN) \
FN(unspec), \
Expand Down Expand Up @@ -5089,6 +5118,8 @@ union bpf_attr {
FN(task_pt_regs), \
FN(get_branch_snapshot), \
FN(trace_vprintk), \
FN(skc_to_unix_sock), \
FN(kallsyms_lookup_name), \
/* */

/* integer value in 'imm' field of BPF_CALL instruction selects which helper
Expand Down Expand Up @@ -5613,6 +5644,7 @@ struct bpf_prog_info {
__u64 run_time_ns;
__u64 run_cnt;
__u64 recursion_misses;
__u32 verified_insns;
} __attribute__((aligned(8)));

struct bpf_map_info {
Expand All @@ -5630,6 +5662,8 @@ struct bpf_map_info {
__u32 btf_id;
__u32 btf_key_type_id;
__u32 btf_value_type_id;
__u32 :32; /* alignment pad */
__u64 map_extra;
} __attribute__((aligned(8)));

struct bpf_btf_info {
Expand Down
8 changes: 4 additions & 4 deletions include/uapi/linux/btf.h
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ struct btf_type {
* "size" tells the size of the type it is describing.
*
* "type" is used by PTR, TYPEDEF, VOLATILE, CONST, RESTRICT,
* FUNC, FUNC_PROTO, VAR and TAG.
* FUNC, FUNC_PROTO, VAR and DECL_TAG.
* "type" is a type_id referring to another type.
*/
union {
Expand Down Expand Up @@ -74,7 +74,7 @@ enum {
BTF_KIND_VAR = 14, /* Variable */
BTF_KIND_DATASEC = 15, /* Section */
BTF_KIND_FLOAT = 16, /* Floating point */
BTF_KIND_TAG = 17, /* Tag */
BTF_KIND_DECL_TAG = 17, /* Decl Tag */

NR_BTF_KINDS,
BTF_KIND_MAX = NR_BTF_KINDS - 1,
Expand Down Expand Up @@ -174,14 +174,14 @@ struct btf_var_secinfo {
__u32 size;
};

/* BTF_KIND_TAG is followed by a single "struct btf_tag" to describe
/* BTF_KIND_DECL_TAG is followed by a single "struct btf_decl_tag" to describe
* additional information related to the tag applied location.
* If component_idx == -1, the tag is applied to a struct, union,
* variable or function. Otherwise, it is applied to a struct/union
* member or a func argument, and component_idx indicates which member
* or argument (0 ... vlen-1).
*/
struct btf_tag {
struct btf_decl_tag {
__s32 component_idx;
};

Expand Down
31 changes: 29 additions & 2 deletions include/uapi/linux/can/netlink.h
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,8 @@ struct can_ctrlmode {
#define CAN_CTRLMODE_PRESUME_ACK 0x40 /* Ignore missing CAN ACKs */
#define CAN_CTRLMODE_FD_NON_ISO 0x80 /* CAN FD in non-ISO mode */
#define CAN_CTRLMODE_CC_LEN8_DLC 0x100 /* Classic CAN DLC option */
#define CAN_CTRLMODE_TDC_AUTO 0x200 /* CAN transiver automatically calculates TDCV */
#define CAN_CTRLMODE_TDC_MANUAL 0x400 /* TDCV is manually set up by user */

/*
* CAN device statistics
Expand Down Expand Up @@ -134,10 +136,35 @@ enum {
IFLA_CAN_BITRATE_CONST,
IFLA_CAN_DATA_BITRATE_CONST,
IFLA_CAN_BITRATE_MAX,
__IFLA_CAN_MAX
IFLA_CAN_TDC,

/* add new constants above here */
__IFLA_CAN_MAX,
IFLA_CAN_MAX = __IFLA_CAN_MAX - 1
};

#define IFLA_CAN_MAX (__IFLA_CAN_MAX - 1)
/*
* CAN FD Transmitter Delay Compensation (TDC)
*
* Please refer to struct can_tdc_const and can_tdc in
* include/linux/can/bittiming.h for further details.
*/
enum {
IFLA_CAN_TDC_UNSPEC,
IFLA_CAN_TDC_TDCV_MIN, /* u32 */
IFLA_CAN_TDC_TDCV_MAX, /* u32 */
IFLA_CAN_TDC_TDCO_MIN, /* u32 */
IFLA_CAN_TDC_TDCO_MAX, /* u32 */
IFLA_CAN_TDC_TDCF_MIN, /* u32 */
IFLA_CAN_TDC_TDCF_MAX, /* u32 */
IFLA_CAN_TDC_TDCV, /* u32 */
IFLA_CAN_TDC_TDCO, /* u32 */
IFLA_CAN_TDC_TDCF, /* u32 */

/* add new constants above here */
__IFLA_CAN_TDC,
IFLA_CAN_TDC_MAX = __IFLA_CAN_TDC - 1
};

/* u16 termination range: 1..65535 Ohms */
#define CAN_TERMINATION_DISABLED 0
Expand Down
1 change: 1 addition & 0 deletions include/uapi/linux/if_ether.h
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@
* over Ethernet
*/
#define ETH_P_PAE 0x888E /* Port Access Entity (IEEE 802.1X) */
#define ETH_P_REALTEK 0x8899 /* Multiple proprietary protocols */
#define ETH_P_AOE 0x88A2 /* ATA over Ethernet */
#define ETH_P_8021AD 0x88A8 /* 802.1ad Service VLAN */
#define ETH_P_802_EX1 0x88B5 /* 802.1 Local Experimental 1. */
Expand Down
65 changes: 65 additions & 0 deletions include/uapi/linux/if_link.h
Original file line number Diff line number Diff line change
Expand Up @@ -1145,6 +1145,7 @@ enum {
IFLA_STATS_LINK_XSTATS_SLAVE,
IFLA_STATS_LINK_OFFLOAD_XSTATS,
IFLA_STATS_AF_SPEC,
IFLA_STATS_LINK_XDP_XSTATS,
__IFLA_STATS_MAX,
};

Expand Down Expand Up @@ -1173,6 +1174,70 @@ enum {
};
#define IFLA_OFFLOAD_XSTATS_MAX (__IFLA_OFFLOAD_XSTATS_MAX - 1)

/* These are embedded into IFLA_STATS_LINK_XDP_XSTATS */
enum {
IFLA_XDP_XSTATS_TYPE_UNSPEC,
/* Stats collected on a "regular" channel(s) */
IFLA_XDP_XSTATS_TYPE_XDP,
/* Stats collected on an XSK channel(s) */
IFLA_XDP_XSTATS_TYPE_XSK,

__IFLA_XDP_XSTATS_TYPE_CNT,
};
#define IFLA_XDP_XSTATS_TYPE_START (IFLA_XDP_XSTATS_TYPE_UNSPEC + 1)
#define IFLA_XDP_XSTATS_TYPE_MAX (__IFLA_XDP_XSTATS_TYPE_CNT - 1)

/* Embedded into IFLA_XDP_XSTATS_TYPE_XDP or IFLA_XDP_XSTATS_TYPE_XSK */
enum {
IFLA_XDP_XSTATS_SCOPE_UNSPEC,
/* netdev-wide stats */
IFLA_XDP_XSTATS_SCOPE_SHARED,
/* Per-channel stats */
IFLA_XDP_XSTATS_SCOPE_CHANNEL,

__IFLA_XDP_XSTATS_SCOPE_CNT,
};

/* Embedded into IFLA_XDP_XSTATS_SCOPE_SHARED/IFLA_XDP_XSTATS_SCOPE_CHANNEL */
enum {
/* Padding for 64-bit alignment */
IFLA_XDP_XSTATS_UNSPEC,
/* Number of frames passed to bpf_prog_run_xdp() */
IFLA_XDP_XSTATS_PACKETS,
/* Number of bytes went through bpf_prog_run_xdp() */
IFLA_XDP_XSTATS_BYTES,
/* Number of general XDP errors if driver counts them together */
IFLA_XDP_XSTATS_ERRORS,
/* Number of %XDP_ABORTED returns */
IFLA_XDP_XSTATS_ABORTED,
/* Number of %XDP_DROP returns */
IFLA_XDP_XSTATS_DROP,
/* Number of returns of unallowed values (i.e. not XDP_*) */
IFLA_XDP_XSTATS_INVALID,
/* Number of %XDP_PASS returns */
IFLA_XDP_XSTATS_PASS,
/* Number of successfully performed %XDP_REDIRECT requests */
IFLA_XDP_XSTATS_REDIRECT,
/* Number of failed %XDP_REDIRECT requests */
IFLA_XDP_XSTATS_REDIRECT_ERRORS,
/* Number of successfully performed %XDP_TX requests */
IFLA_XDP_XSTATS_TX,
/* Number of failed %XDP_TX requests */
IFLA_XDP_XSTATS_TX_ERRORS,
/* Number of successfully transmitted XDP/XSK frames */
IFLA_XDP_XSTATS_XMIT_PACKETS,
/* Number of successfully transmitted XDP/XSK bytes */
IFLA_XDP_XSTATS_XMIT_BYTES,
/* Number of XDP/XSK frames failed to transmit */
IFLA_XDP_XSTATS_XMIT_ERRORS,
/* Number of XDP/XSK queue being full at the moment of transmission */
IFLA_XDP_XSTATS_XMIT_FULL,

__IFLA_XDP_XSTATS_CNT,
};
#define IFLA_XDP_XSTATS_START (IFLA_XDP_XSTATS_UNSPEC + 1)
#define IFLA_XDP_XSTATS_MAX (__IFLA_XDP_XSTATS_CNT - 1)

/* XDP section */

#define XDP_FLAGS_UPDATE_IF_NOEXIST (1U << 0)
Expand Down
1 change: 1 addition & 0 deletions include/uapi/linux/ip.h
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,7 @@ enum
IPV4_DEVCONF_DROP_UNICAST_IN_L2_MULTICAST,
IPV4_DEVCONF_DROP_GRATUITOUS_ARP,
IPV4_DEVCONF_BC_FORWARDING,
IPV4_DEVCONF_ARP_EVICT_NOCARRIER,
__IPV4_DEVCONF_MAX
};

Expand Down
1 change: 1 addition & 0 deletions include/uapi/linux/netfilter.h
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ enum nf_inet_hooks {

enum nf_dev_hooks {
NF_NETDEV_INGRESS,
NF_NETDEV_EGRESS,
NF_NETDEV_NUMHOOKS
};

Expand Down
3 changes: 2 additions & 1 deletion include/uapi/linux/pkt_sched.h
Original file line number Diff line number Diff line change
Expand Up @@ -840,7 +840,8 @@ enum {
TCA_FQ_CODEL_CE_THRESHOLD,
TCA_FQ_CODEL_DROP_BATCH_SIZE,
TCA_FQ_CODEL_MEMORY_LIMIT,
TCA_FQ_CODEL_CE_THRESHOLD_ECT1,
TCA_FQ_CODEL_CE_THRESHOLD_SELECTOR,
TCA_FQ_CODEL_CE_THRESHOLD_MASK,
__TCA_FQ_CODEL_MAX
};

Expand Down
Loading