Home
last modified time | relevance | path

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

1234

/linux/Documentation/netlink/specs/
H A Dconntrack.yaml1 # SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause)
2 ---
4 protocol: netlink-raw
7 doc: >-
11 -
13 type: struct
15 -
16 name: nfgen-family
17 type: u8
18 -
[all …]
H A Dnlctrl.yaml1 # SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause)
2 ---
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
[all …]
H A Dmptcp_pm.yaml1 # SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause)
2 ---
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
[all …]
H A Dovpn.yaml1 # SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause)
5 # Copyright (c) 2024-2025, OpenVPN Inc.
7 ---
15 -
16 type: const
17 name: nonce-tail-size
18 value: 8
19 -
20 type: enum
21 name: cipher-alg
[all …]
H A Dhandshake.yaml1 # SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause)
7 ---
15 -
16 type: enum
17 name: handler-class
18 value-start: 0
20 -
21 type: enum
22 name: msg-type
23 value-start: 0
[all …]
H A Dnet_shaper.yaml1 # SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause)
2 ---
3 name: net-shaper
16 Depending on the @scope value, the shapers are attached to specific
33 @cap-get operation.
36 -
37 type: enum
40 render-max: true
42 - name: unspec
44 -
[all …]
H A Dtcp_metrics.yaml1 # SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause)
2 ---
5 protocol: genetlink-legacy
10 c-family-name: tcp-metrics-genl-name
11 c-version-name: tcp-metrics-genl-version
12 max-by-define: true
13 kernel-policy: global
16 -
17 name: tcp-fastopen-cookie-max
18 type: const
[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 …]
/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 …]
/linux/net/ipv4/
H A Dip_tunnel_core.c1 // SPDX-License-Identifier: GPL-2.0-only
55 int pkt_len = skb->len - skb_inner_network_offset(skb); in iptunnel_xmit()
56 struct net *net = dev_net(rt->dst.dev); in iptunnel_xmit()
57 struct net_device *dev = skb->dev; in iptunnel_xmit()
64 skb_dst_set(skb, &rt->dst); in iptunnel_xmit()
66 IPCB(skb)->flags = ipcb_flags; in iptunnel_xmit()
74 iph->version = 4; in iptunnel_xmit()
75 iph->ihl = sizeof(struct iphdr) >> 2; in iptunnel_xmit()
76 iph->frag_off = ip_mtu_locked(&rt->dst) ? 0 : df; in iptunnel_xmit()
77 iph->protocol = proto; in iptunnel_xmit()
[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
31 fprintf(stderr, "\tann <local-ip> id <local-id> token <token> [port <local-port>] [dev <name>]\n"); in syntax()
32 fprintf(stderr, "\trem id <local-id> token <token>\n"); in syntax()
33 …fprintf(stderr, "\tcsf lip <local-ip> lid <local-id> rip <remote-ip> rport <remote-port> token <to… in syntax()
34 …fprintf(stderr, "\tdsf lip <local-ip> lport <local-port> rip <remote-ip> rport <remote-port> token… in syntax()
42 fprintf(stderr, "\tlisten <local-ip> <local-port>\n"); in syntax()
52 nh->nlmsg_type = family; in init_genl_req()
53 nh->nlmsg_flags = NLM_F_REQUEST; in init_genl_req()
54 nh->nlmsg_len = NLMSG_LENGTH(GENL_HDRLEN); in init_genl_req()
58 gh->cmd = cmd; in init_genl_req()
[all …]
/linux/net/sched/
H A Dact_api.c1 // SPDX-License-Identifier: GPL-2.0-or-later
47 const struct tcf_chain *chain = rcu_dereference_bh(a->goto_chain); in tcf_action_goto_chain_exec()
49 res->goto_tp = rcu_dereference_bh(chain->filter_chain); in tcf_action_goto_chain_exec()
56 kfree(cookie->data); in tcf_free_cookie_rcu()
67 call_rcu(&old->rc in tcf_set_action_cookie()
511 struct nlattr *nest; tcf_action_dump_1() local
557 struct nlattr *nest; tcf_dump_walker() local
634 struct nlattr *nest; tcf_del_walker() local
680 tcf_generic_walker(struct tc_action_net * tn,struct sk_buff * skb,struct netlink_callback * cb,int type,const struct tc_action_ops * ops,struct netlink_ext_ack * extack) tcf_generic_walker() argument
720 __tcf_generic_walker(struct net * net,struct sk_buff * skb,struct netlink_callback * cb,int type,const struct tc_action_ops * ops,struct netlink_ext_ack * extack) __tcf_generic_walker() argument
1249 struct nlattr *nest; tcf_action_dump() local
1648 struct nlattr *nest; tca_get_fill() local
1753 struct nlattr *nest; tca_action_flush() local
2202 struct nlattr *nest; tc_dump_action() local
[all...]
H A Dsch_mqprio.c1 // SPDX-License-Identifier: GPL-2.0-only
46 switch (priv->mode) { in mqprio_enable_offload()
48 if (priv->shaper != TC_MQPRIO_SHAPER_DCB) in mqprio_enable_offload()
49 return -EINVAL; in mqprio_enable_offload()
52 mqprio.flags = priv->flags; in mqprio_enable_offload()
53 if (priv->flags & TC_MQPRIO_F_MODE) in mqprio_enable_offload()
54 mqprio.mode = priv->mode; in mqprio_enable_offload()
55 if (priv->flags & TC_MQPRIO_F_SHAPER) in mqprio_enable_offload()
56 mqprio.shaper = priv->shaper; in mqprio_enable_offload()
57 if (priv->flags & TC_MQPRIO_F_MIN_RATE) in mqprio_enable_offload()
[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)
20 return name.upper().replace('-', '_')
24 return name.lower().replace('-', '_')
29 Turn a string limit like u32-max or s64-min into its numerical value
31 if name[0] == 'u' and name.endswith('-min'):
33 width = int(name[1:-4])
35 width -= 1
36 value = (1 << width) - 1
37 if name[0] == 's' and name.endswith('-min'):
38 value = -value - 1
[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()
56 if (!xa_get_mark(&dpll_pin_xa, pin->id, DPLL_REGISTERED)) in dpll_pin_available()
58 xa_for_each(&pin->parent_refs, i, par_ref) in dpll_pin_available()
59 if (xa_get_mark(&dpll_pin_xa, par_ref->pin->id, in dpll_pin_available()
62 xa_for_each(&pin->dpll_refs, i, par_ref) in dpll_pin_available()
63 if (xa_get_mark(&dpll_device_xa, par_ref->dpll->id, in dpll_pin_available()
[all …]
/linux/tools/net/ynl/pyynl/lib/
H A Dynl.py1 # SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause
98 'binary', 'string', 'nul-string',
99 'nested', 'nested-array',
105 self.error = -nl_msg.error
130 self.type = self._type & ~Netlink.NLA_TYPE_MASK
140 return format.big if byte_order == "big-endia
162 as_c_array(self, type) global() argument
528 _encode_enum(self, attr_spec, value) global() argument
540 _get_scalar(self, attr_spec, value) global() argument
550 _add_attr(self, space, name, value, search_attrs) global() argument
[all...]
/linux/arch/powerpc/perf/
H A Dimc-pmu.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * In-Memory Collection (IMC) Performance Monitor counter support.
13 #include <asm/imc-pmu.h>
19 /* Nest IMC data structures and variables */
22 * Used to avoid races in counting the nest-pmu units during hotplug
51 * core and trace-imc
61 return container_of(event->pmu, struct imc_pmu, pmu); in imc_event_to_pmu()
64 PMU_FORMAT_ATTR(event, "config:0-61");
65 PMU_FORMAT_ATTR(offset, "config:0-31");
67 PMU_FORMAT_ATTR(mode, "config:33-40");
[all …]
/linux/net/ipv6/
H A Dseg6_local.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * SR-IPv6 implementation
76 /* default length values (expressed in bits) for both Locator-Block and
77 * Locator-Node Function.
82 * Locator-Block and Locator-Node Function must be byte-aligned (we can
90 * check the value of these parameters to see if they meet conditions (i), (ii)
97 * used directly to check whether the lengths (in bits) of Locator-Block and
98 * Locator-Node Function are valid according to (i), (ii), (iii).
130 /* Locator-Block length, expressed in bits */
132 /* Locator-Node Function length, expressed in bits*/
[all …]
/linux/kernel/events/
H A Dring_buffer.c1 // SPDX-License-Identifier: GPL-2.0
3 * Performance events ring-buffer code:
6 * Copyright (C) 2008-2011 Red Hat, Inc., Ingo Molnar
7 * Copyright (C) 2008-2011 Red Hat, Inc., Peter Zijlstra
22 atomic_set(&handle->rb->poll, EPOLLIN | EPOLLRDNORM); in perf_output_wakeup()
24 handle->event->pending_wakeup = 1; in perf_output_wakeup()
26 if (*perf_event_fasync(handle->event) && !handle->event->pending_kill) in perf_output_wakeup()
27 handle->event->pending_kill = POLL_IN; in perf_output_wakeup()
29 irq_work_queue(&handle->event->pending_irq); in perf_output_wakeup()
37 * We only publish the head (and generate a wakeup) when the outer-most
[all …]
/linux/arch/powerpc/include/asm/
H A Dimc-pmu.h1 /* SPDX-License-Identifier: GPL-2.0-or-later */
6 * IMC Nest Performance Monitor counter support.
22 #define IMC_DTB_COMPAT "ibm,opal-in-memory-counters"
23 #define IMC_DTB_UNIT_COMPAT "ibm,imc-counters"
28 * perf/imc-pmu.c has the LDBAR layout information.
35 * For debugfs interface for imc-mode and imc-command
50 * Place holder for nest pmu events and values.
53 u32 value; member
146 * In-Memory Collection Counters type.
148 * Three device type are supported.
[all …]
/linux/net/netlink/
H A Dgenetlink.c1 // SPDX-License-Identifier: GPL-2.0
59 if (!family->parallel_ops) in genl_op_lock()
65 if (!family->parallel_ops) in genl_op_unlock()
77 * Bit 1 is marked as already used since the drop-monitor code
82 * and the code no longer marks pre-reserved IDs as used.
95 /* We need the last attribute with non-zero ID therefore a 2-entry array */
97 { .type = NLA_REJECT },
98 { .type = NLA_REJECT },
109 BUILD_BUG_ON(ARRAY_SIZE(genl_policy_reject_all) - 1 != 1); in genl_op_fill_in_reject_policy()
111 if (op->policy || op->cmd < family->resv_start_op) in genl_op_fill_in_reject_policy()
[all …]

1234