Home
last modified time | relevance | path

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

12345

/linux/Documentation/netlink/specs/
H A Dethtool.yaml1 # SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause)
5 protocol: genetlink-legacy
8 uapi-header: linux/ethtool_netlink_generated.h
10 c-family-name: ethtool-genl-name
11 c-version-name: ethtool-genl-version
14 -
15 name: udp-tunnel-type
16 enum-name:
17 type: enum
18 entries: [ vxlan, geneve, vxlan-gpe ]
[all …]
H A Dnftables.yaml1 # SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause)
4 protocol: netlink-raw
11 -
13 type: struct
15 -
16 name: nfgen-family
17 type: u8
18 -
20 type: u8
21 -
[all …]
H A 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 -
18 -
19 type: enum
20 name: port-type
[all …]
H A 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 …]
H A Dconntrack.yaml1 # SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause)
4 protocol: netlink-raw
11 -
13 type: struct
15 -
16 name: nfgen-family
17 type: u8
18 -
20 type: u8
21 -
[all …]
H A Dtc.yaml1 # SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause)
4 protocol: netlink-raw
5 uapi-header: linux/pkt_cls.h
13 -
15 type: struct
18 -
20 type: u8
21 -
23 type: pad
25 -
[all …]
H A Dnlctrl.yaml1 # SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause)
4 protocol: genetlink-legacy
5 uapi-header: linux/genetlink.h
8 genetlink meta-family that exposes information about all genetlink
12 -
13 name: op-flags
14 type: flags
15 enum-name:
17 - admin-perm
18 - cmd-cap-do
[all …]
H A 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
5 uapi-header: linux/rtnetlink.h
12 -
13 name: ifinfo-flags
14 type: flags
16 enum-name: net-device-flags
17 name-prefix: iff-
19 -
[all …]
H A Dteam.yaml1 # SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause)
5 protocol: genetlink-legacy
10 c-family-name: team-genl-name
11 c-version-name: team-genl-version
12 kernel-policy: global
13 uapi-header: linux/if_team.h
16 -
17 name: string-max-len
18 type: const
19 value: 32
[all …]
H A Ddpll.yaml1 # SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause)
8 -
9 type: enum
16 -
19 value: 1
20 -
23 render-max: true
24 -
25 type: enum
26 name: lock-status
[all …]
H A Dmptcp_pm.yaml1 # SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause)
4 protocol: genetlink-legacy
7 c-family-name: mptcp-pm-name
8 c-version-name: mptcp-pm-ver
9 max-by-define: true
10 kernel-policy: per-op
11 cmd-cnt-name: --mptcp-pm-cmd-after-last
14 -
15 type: enum
16 name: event-type
[all …]
H A 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 …]
/linux/net/ethtool/
H A 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 …]
H A Dstrset.c1 // SPDX-License-Identifier: GPL-2.0-only
140 [ETHTOOL_A_STRSET_STRINGSETS] = { .type = NLA_NESTED },
141 [ETHTOOL_A_STRSET_COUNTS_ONLY] = { .type = NLA_FLAG },
145 [ETHTOOL_A_STRINGSET_ID] = { .type = NLA_U32 },
149 * strset_include() - test if a string set should be included in reply
159 BUILD_BUG_ON(ETH_SS_COUNT >= BITS_PER_BYTE * sizeof(info->req_ids)); in strset_include()
161 if (info->req_ids) in strset_include()
162 return info->req_ids & (1U << id); in strset_include()
163 per_dev = data->sets[id].per_dev; in strset_include()
164 if (!per_dev && !data->sets[id].strings) in strset_include()
[all …]
/linux/Documentation/userspace-api/netlink/
H A Dgenetlink-legacy.rst1 .. SPDX-License-Identifier: BSD-3-Clause
9 the ``genetlink-legacy`` protocol level.
15 -------
28 Attribute type nests
29 --------------------
31 New Netlink families should use ``multi-attr`` to define arrays.
33 define array types reusing attribute type to carry information.
35 For reference the ``multi-attr`` array may look like this::
37 [ARRAY-ATTR]
41 [SOME-OTHER-ATTR]
[all …]
H A Dspecs.rst1 .. SPDX-License-Identifier: BSD-3-Clause
17 - the C uAPI header
18- documentation of the protocol as a ReST file - see :ref:`Documentation/networking/netlink_spec/i…
19 - policy tables for input attribute validation
20 - operation tables
25 See :doc:`intro-specs` for a practical starting guide.
28 ``((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause)``
40 - ``genetlink`` - most streamlined, should be used by all new families
41 - ``genetlink-c`` - superset of ``genetlink`` with extra attributes allowing
42 customization of define and enum type and value names; this schema should
[all …]
/linux/net/ipv4/
H A 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 …]
/linux/Documentation/netlink/
H A 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: string
11 pattern: ^[0-9a-z-]+$
13 type: integer
15 len-or-define:
16 type: [ string, integer ]
17 pattern: ^[0-9A-Za-z_-]+( - 1)?$
[all …]
H A 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: string
11 pattern: ^[0-9a-z-]+$
12 name-cap:
13 type: string
14 pattern: ^[0-9a-zA-Z-]+$
16 type: integer
[all …]
H A 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: string
11 pattern: ^[0-9a-z-]+$
13 type: integer
15 len-or-define:
16 type: [ string, integer ]
17 pattern: ^[0-9A-Za-z_-]+( - 1)?$
[all …]
/linux/drivers/net/ethernet/intel/fm10k/
H A 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 …]
/linux/tools/testing/selftests/net/mptcp/
H A Dpm_nl_ctl.c1 // SPDX-License-Identifier: GPL-2.0
30 fprintf(stderr, "\tann <local-ip> id <local-id> token <token> [port <local-port>] [dev <name>]\n"); in syntax()
31 fprintf(stderr, "\trem id <local-id> token <token>\n"); in syntax()
32 …fprintf(stderr, "\tcsf lip <local-ip> lid <local-id> rip <remote-ip> rport <remote-port> token <to… in syntax()
33 …fprintf(stderr, "\tdsf lip <local-ip> lport <local-port> rip <remote-ip> rport <remote-port> token… in syntax()
41 fprintf(stderr, "\tlisten <local-ip> <local-port>\n"); in syntax()
51 nh->nlmsg_type = family; in init_genl_req()
52 nh->nlmsg_flags = NLM_F_REQUEST; in init_genl_req()
53 nh->nlmsg_len = NLMSG_LENGTH(GENL_HDRLEN); in init_genl_req()
57 gh->cmd = cmd; in init_genl_req()
[all …]
/linux/drivers/dpll/
H A Ddpll_netlink.c1 // SPDX-License-Identifier: GPL-2.0
30 return (struct dpll_dump_ctx *)cb->ctx; in dpll_dump_context()
36 if (nla_put_u32(msg, DPLL_A_ID, dpll->id)) in dpll_msg_add_dev_handle()
37 return -EMSGSIZE; in dpll_msg_add_dev_handle()
46 return -EMSGSIZE; in dpll_msg_add_dev_parent_handle()
52 * dpll_msg_add_pin_handle - attach pin handle attribute to a given message
57 * * 0 - success
58 * * -EMSGSIZE - no space in message to attach pin handle
64 if (nla_put_u32(msg, DPLL_A_PIN_ID, pin->id)) in dpll_msg_add_pin_handle()
65 return -EMSGSIZE; in dpll_msg_add_pin_handle()
[all …]
/linux/tools/net/ynl/pyynl/lib/
H A Dynl.py1 # SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause
99 'binary', 'string', 'nul-string',
100 'nested', 'nested-array',
106 self.error = -nl_msg.error
131 self.type = self._type & ~Netlink.NLA_TYPE_MASK
141 return format.big if byte_order == "big-endian" \
151 raise Exception(f"Auto-scalar len payload be 4 or 8 bytes, got {len(self.raw)}")
157 return self.raw.decode('ascii')[:-1]
162 def as_c_array(self, type): argument
163 format = self.get_format(type)
[all …]
/linux/tools/net/ynl/pyynl/
H A Dynl_gen_c.py2 # SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause)
21 return name.upper().replace('-', '_')
25 return name.lower().replace('-', '_')
30 Turn a string limit like u32-max or s64-min into its numerical value
32 if name[0] == 'u' and name.endswith('-min'):
34 width = int(name[1:-4])
36 width -= 1
37 value = (1 << width) - 1
38 if name[0] == 's' and name.endswith('-min'):
39 value = -value - 1
[all …]

12345