Home
last modified time | relevance | path

Searched +full:nest +full:- +full:type +full:- +full:value (Results 1 – 25 of 218) sorted by relevance

123456789

/kernel/linux/linux-6.6/Documentation/netlink/specs/
Ddevlink.yaml1 # SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause)
5 protocol: genetlink-legacy
10 -
11 type: enum
12 name: sb-pool-type
14 -
16 -
19 attribute-sets:
20 -
22 name-prefix: devlink-attr-
[all …]
Dovs_flow.yaml1 # SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause)
5 protocol: genetlink-legacy
6 uapi-header: linux/openvswitch.h
12 -
13 name: ovs-header
14 type: struct
18 -
19 name: dp-ifindex
20 type: u32
24 -
[all …]
Dethtool.yaml1 # SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause)
5 protocol: genetlink-legacy
10 -
11 name: udp-tunnel-type
12 enum-name:
13 type: enum
14 entries: [ vxlan, geneve, vxlan-gpe ]
15 -
17 type: enum
20 attribute-sets:
[all …]
Drt_link.yaml1 # SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause)
3 name: rt-link
4 protocol: netlink-raw
11 -
12 name: ifinfo-flags
13 type: flags
15 -
17 -
19 -
21 -
[all …]
Dovs_vport.yaml1 # SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause)
5 protocol: genetlink-legacy
6 uapi-header: linux/openvswitch.h
12 -
13 name: ovs-header
14 type: struct
16 -
17 name: dp-ifindex
18 type: u32
19 -
[all …]
/kernel/linux/linux-5.10/net/ethtool/
Dbitset.c1 // SPDX-License-Identifier: GPL-2.0-only
17 return ~(u32)0 >> (32 - n % 32); in ethnl_lower_bits()
26 * ethnl_bitmap32_clear() - Clear u32 based bitmap
78 * ethnl_bitmap32_not_zero() - Check if any bit is set in an interval
83 * Return: true if there is non-zero bit with index @start <= i < @end,
108 (end_word - start_word) * sizeof(u32))) in ethnl_bitmap32_not_zero()
116 * ethnl_bitmap32_update() - Modify u32 based bitmap according to value/mask
120 * @value: values to set
124 * Set bits in @dst bitmap which are set in @mask to values from @value, leave
129 const u32 *value, const u32 *mask, bool *mod) in ethnl_bitmap32_update() argument
[all …]
Dstrset.c1 // SPDX-License-Identifier: GPL-2.0-only
105 [ETHTOOL_A_STRSET_STRINGSETS] = { .type = NLA_NESTED },
106 [ETHTOOL_A_STRSET_COUNTS_ONLY] = { .type = NLA_FLAG },
110 [ETHTOOL_A_STRINGSET_ID] = { .type = NLA_U32 },
114 * strset_include() - test if a string set should be included in reply
124 BUILD_BUG_ON(ETH_SS_COUNT >= BITS_PER_BYTE * sizeof(info->req_ids)); in strset_include()
126 if (info->req_ids) in strset_include()
127 return info->req_ids & (1U << id); in strset_include()
128 per_dev = data->sets[id].per_dev; in strset_include()
129 if (!per_dev && !data->sets[id].strings) in strset_include()
[all …]
/kernel/linux/linux-6.6/Documentation/netlink/
Dgenetlink.yaml1 # SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause)
3 ---
4 $id: http://kernel.org/schemas/netlink/genetlink-legacy.yaml#
5 $schema: https://json-schema.org/draft-07/schema
10 type: integer
12 len-or-define:
13 type: [ string, integer ]
14 pattern: ^[0-9A-Za-z_]+( - 1)?$
20 type: object
21 required: [ name, doc, attribute-sets, operations ]
[all …]
Dgenetlink-c.yaml1 # SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause)
3 ---
4 $id: http://kernel.org/schemas/netlink/genetlink-c.yaml#
5 $schema: https://json-schema.org/draft-07/schema
10 type: integer
12 len-or-define:
13 type: [ string, integer ]
14 pattern: ^[0-9A-Za-z_]+( - 1)?$
20 type: object
21 required: [ name, doc, attribute-sets, operations ]
[all …]
Dgenetlink-legacy.yaml1 # SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause)
3 ---
4 $id: http://kernel.org/schemas/netlink/genetlink-legacy.yaml#
5 $schema: https://json-schema.org/draft-07/schema
10 type: integer
12 len-or-define:
13 type: [ string, integer ]
14 pattern: ^[0-9A-Za-z_]+( - 1)?$
20 type: object
21 required: [ name, doc, attribute-sets, operations ]
[all …]
Dnetlink-raw.yaml1 # SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause)
3 ---
4 $id: http://kernel.org/schemas/netlink/netlink-raw.yaml#
5 $schema: https://json-schema.org/draft-07/schema
10 type: integer
12 len-or-define:
13 type: [ string, integer ]
14 pattern: ^[0-9A-Za-z_]+( - 1)?$
20 type: object
21 required: [ name, doc, attribute-sets, operations ]
[all …]
/kernel/linux/linux-6.6/Documentation/userspace-api/netlink/
Dgenetlink-legacy.rst1 .. SPDX-License-Identifier: BSD-3-Clause
9 the ``genetlink-legacy`` protocol level.
14 Attribute type nests
15 --------------------
17 New Netlink families should use ``multi-attr`` to define arrays.
19 define array types reusing attribute type to carry information.
21 For reference the ``multi-attr`` array may look like this::
23 [ARRAY-ATTR]
27 [SOME-OTHER-ATTR]
28 [ARRAY-ATTR]
[all …]
/kernel/linux/linux-6.6/net/ethtool/
Dbitset.c1 // SPDX-License-Identifier: GPL-2.0-only
17 return ~(u32)0 >> (32 - n % 32); in ethnl_lower_bits()
26 * ethnl_bitmap32_clear() - Clear u32 based bitmap
78 * ethnl_bitmap32_not_zero() - Check if any bit is set in an interval
83 * Return: true if there is non-zero bit with index @start <= i < @end,
108 (end_word - start_word) * sizeof(u32))) in ethnl_bitmap32_not_zero()
116 * ethnl_bitmap32_update() - Modify u32 based bitmap according to value/mask
120 * @value: values to set
124 * Set bits in @dst bitmap which are set in @mask to values from @value, leave
129 const u32 *value, const u32 *mask, bool *mod) in ethnl_bitmap32_update() argument
[all …]
Dstrset.c1 // SPDX-License-Identifier: GPL-2.0-only
130 [ETHTOOL_A_STRSET_STRINGSETS] = { .type = NLA_NESTED },
131 [ETHTOOL_A_STRSET_COUNTS_ONLY] = { .type = NLA_FLAG },
135 [ETHTOOL_A_STRINGSET_ID] = { .type = NLA_U32 },
139 * strset_include() - test if a string set should be included in reply
149 BUILD_BUG_ON(ETH_SS_COUNT >= BITS_PER_BYTE * sizeof(info->req_ids)); in strset_include()
151 if (info->req_ids) in strset_include()
152 return info->req_ids & (1U << id); in strset_include()
153 per_dev = data->sets[id].per_dev; in strset_include()
154 if (!per_dev && !data->sets[id].strings) in strset_include()
[all …]
/kernel/linux/linux-6.6/net/ipv4/
Dip_tunnel_core.c1 // SPDX-License-Identifier: GPL-2.0-only
54 int pkt_len = skb->len - skb_inner_network_offset(skb); in iptunnel_xmit()
55 struct net *net = dev_net(rt->dst.dev); in iptunnel_xmit()
56 struct net_device *dev = skb->dev; in iptunnel_xmit()
63 skb_dst_set(skb, &rt->dst); in iptunnel_xmit()
72 iph->version = 4; in iptunnel_xmit()
73 iph->ihl = sizeof(struct iphdr) >> 2; in iptunnel_xmit()
74 iph->frag_off = ip_mtu_locked(&rt->dst) ? 0 : df; in iptunnel_xmit()
75 iph->protocol = proto; in iptunnel_xmit()
76 iph->tos = tos; in iptunnel_xmit()
[all …]
/kernel/linux/linux-5.10/net/ipv4/
Dip_tunnel_core.c1 // SPDX-License-Identifier: GPL-2.0-only
54 int pkt_len = skb->len - skb_inner_network_offset(skb); in iptunnel_xmit()
55 struct net *net = dev_net(rt->dst.dev); in iptunnel_xmit()
56 struct net_device *dev = skb->dev; in iptunnel_xmit()
63 skb_dst_set(skb, &rt->dst); in iptunnel_xmit()
72 iph->version = 4; in iptunnel_xmit()
73 iph->ihl = sizeof(struct iphdr) >> 2; in iptunnel_xmit()
74 iph->frag_off = ip_mtu_locked(&rt->dst) ? 0 : df; in iptunnel_xmit()
75 iph->protocol = proto; in iptunnel_xmit()
76 iph->tos = tos; in iptunnel_xmit()
[all …]
/kernel/linux/linux-5.10/net/dcb/
Ddcbnl.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * Copyright (c) 2008-2011, Intel Corporation.
23 * and co-exist on Ethernet. Current DCB features are:
25 * Enhanced Transmission Selection (aka Priority Grouping [PG]) - provides a
28 * Priority-based Flow Control (PFC) - provides a flow control mechanism which
31 * Congestion Notification - provides a mechanism for end-to-end congestion
32 * control for protocols which do not have built-in congestion management.
45 [DCB_ATTR_IFNAME] = {.type = NLA_NUL_STRING, .len = IFNAMSIZ - 1},
46 [DCB_ATTR_STATE] = {.type = NLA_U8},
47 [DCB_ATTR_PFC_CFG] = {.type = NLA_NESTED},
[all …]
/kernel/linux/linux-6.6/net/dcb/
Ddcbnl.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * Copyright (c) 2008-2011, Intel Corporation.
23 * and co-exist on Ethernet. Current DCB features are:
25 * Enhanced Transmission Selection (aka Priority Grouping [PG]) - provides a
28 * Priority-based Flow Control (PFC) - provides a flow control mechanism which
31 * Congestion Notification - provides a mechanism for end-to-end congestion
32 * control for protocols which do not have built-in congestion management.
45 [DCB_ATTR_IFNAME] = {.type = NLA_NUL_STRING, .len = IFNAMSIZ - 1},
46 [DCB_ATTR_STATE] = {.type = NLA_U8},
47 [DCB_ATTR_PFC_CFG] = {.type = NLA_NESTED},
[all …]
/kernel/linux/linux-6.6/tools/net/ynl/generated/
Dethtool-user.c1 // SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause)
2 /* Do not edit directly, auto-generated from: */
4 /* YNL-GEN user source */
5 /* YNL-ARG --user-header linux/ethtool_netlink.h --exclude-op stats-get */
9 #include "ethtool-user.h"
20 [ETHTOOL_MSG_STRSET_GET] = "strset-get",
21 [ETHTOOL_MSG_LINKINFO_GET] = "linkinfo-get",
22 [3] = "linkinfo-ntf",
23 [ETHTOOL_MSG_LINKMODES_GET] = "linkmodes-get",
24 [5] = "linkmodes-ntf",
[all …]
/kernel/linux/linux-5.10/drivers/net/ethernet/intel/fm10k/
Dfm10k_tlv.c1 // SPDX-License-Identifier: GPL-2.0
2 /* Copyright(c) 2013 - 2019 Intel Corporation. */
7 * fm10k_tlv_msg_init - Initialize message block for TLV data storage
9 * @msg_id: Message ID indicating message type
25 * fm10k_tlv_attr_put_null_string - Place null terminated string on message
76 * fm10k_tlv_attr_get_null_string - Get null terminated string from attribute
95 while (len--) in fm10k_tlv_attr_get_null_string()
102 * fm10k_tlv_attr_put_mac_vlan - Store MAC/VLAN attribute in message
127 /* copy value into local variable and then write to msg */ in fm10k_tlv_attr_put_mac_vlan()
140 * fm10k_tlv_attr_get_mac_vlan - Get MAC/VLAN stored in attribute
[all …]
/kernel/linux/linux-6.6/drivers/net/ethernet/intel/fm10k/
Dfm10k_tlv.c1 // SPDX-License-Identifier: GPL-2.0
2 /* Copyright(c) 2013 - 2019 Intel Corporation. */
7 * fm10k_tlv_msg_init - Initialize message block for TLV data storage
9 * @msg_id: Message ID indicating message type
25 * fm10k_tlv_attr_put_null_string - Place null terminated string on message
76 * fm10k_tlv_attr_get_null_string - Get null terminated string from attribute
95 while (len--) in fm10k_tlv_attr_get_null_string()
102 * fm10k_tlv_attr_put_mac_vlan - Store MAC/VLAN attribute in message
127 /* copy value into local variable and then write to msg */ in fm10k_tlv_attr_put_mac_vlan()
140 * fm10k_tlv_attr_get_mac_vlan - Get MAC/VLAN stored in attribute
[all …]
/kernel/linux/linux-5.10/net/sched/
Dact_api.c1 // SPDX-License-Identifier: GPL-2.0-or-later
28 const struct tcf_chain *chain = rcu_dereference_bh(a->goto_chain); in tcf_action_goto_chain_exec()
30 res->goto_tp = rcu_dereference_bh(chain->filter_chain); in tcf_action_goto_chain_exec()
37 kfree(cookie->data); in tcf_free_cookie_rcu()
48 call_rcu(&old->rcu, tcf_free_cookie_rcu); in tcf_set_action_cookie()
55 int opcode = TC_ACT_EXT_OPCODE(action), ret = -EINVAL; in tcf_action_check_ctrlact()
59 ret = action > TC_ACT_VALUE_MAX ? -EINVAL : 0; in tcf_action_check_ctrlact()
70 ret = -EINVAL; in tcf_action_check_ctrlact()
75 *newchain = tcf_chain_get_by_act(tp->chain->block, chain_index); in tcf_action_check_ctrlact()
77 ret = -ENOMEM; in tcf_action_check_ctrlact()
[all …]
/kernel/linux/linux-5.10/tools/testing/selftests/net/mptcp/
Dpm_nl_ctl.c1 // SPDX-License-Identifier: GPL-2.0
43 nh->nlmsg_type = family; in init_genl_req()
44 nh->nlmsg_flags = NLM_F_REQUEST; in init_genl_req()
45 nh->nlmsg_len = NLMSG_LENGTH(GENL_HDRLEN); in init_genl_req()
49 gh->cmd = cmd; in init_genl_req()
50 gh->version = version; in init_genl_req()
58 int len = nh->nlmsg_len - sizeof(*nh); in nl_error()
65 if (!err->error) { in nl_error()
70 if (attrs->rta_type == NLMSGERR_ATTR_MSG) in nl_error()
73 if (attrs->rta_type == NLMSGERR_ATTR_OFFS) { in nl_error()
[all …]
/kernel/linux/linux-6.6/drivers/net/can/dev/
Dnetlink.c1 // SPDX-License-Identifier: GPL-2.0-only
2 /* Copyright (C) 2005 Marc Kleine-Budde, Pengutronix
4 * Copyright (C) 2008-2009 Wolfgang Grandegger <wg@grandegger.com>
12 [IFLA_CAN_STATE] = { .type = NLA_U32 },
14 [IFLA_CAN_RESTART_MS] = { .type = NLA_U32 },
15 [IFLA_CAN_RESTART] = { .type = NLA_U32 },
22 [IFLA_CAN_TERMINATION] = { .type = NLA_U16 },
23 [IFLA_CAN_TDC] = { .type = NLA_NESTED },
24 [IFLA_CAN_CTRLMODE_EXT] = { .type = NLA_NESTED },
28 [IFLA_CAN_TDC_TDCV_MIN] = { .type = NLA_U32 },
[all …]
/kernel/linux/linux-6.6/tools/net/ynl/lib/
Dynl.py1 # SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause
84 return f"Netlink error: {os.strerror(-self.nl_msg.error)}\n{self.nl_msg}"
102 self.type = self._type & ~Netlink.NLA_TYPE_MASK
111 return format.big if byte_order == "big-endian" \
134 return self.raw.decode('ascii')[:-1]
139 def as_c_array(self, type): argument
140 format = self.get_format(type)
144 value = dict()
147 # TODO: handle non-scalar members
148 if m.type == 'binary':
[all …]

123456789