Home
last modified time | relevance | path

Searched full:nest (Results 1 – 25 of 213) sorted by relevance

123456789

/linux/include/uapi/linux/
H A Dtipc_netlink.h77 TIPC_NLA_BEARER, /* nest */
78 TIPC_NLA_SOCK, /* nest */
79 TIPC_NLA_PUBL, /* nest */
80 TIPC_NLA_LINK, /* nest */
81 TIPC_NLA_MEDIA, /* nest */
82 TIPC_NLA_NODE, /* nest */
83 TIPC_NLA_NET, /* nest */
84 TIPC_NLA_NAME_TABLE, /* nest */
85 TIPC_NLA_MON, /* nest */
86 TIPC_NLA_MON_PEER, /* nest */
[all …]
H A Dsmc.h70 SMC_GEN_SYS_INFO, /* nest */
71 SMC_GEN_LGR_SMCR, /* nest */
72 SMC_GEN_LINK_SMCR, /* nest */
73 SMC_GEN_LGR_SMCD, /* nest */
74 SMC_GEN_DEV_SMCD, /* nest */
75 SMC_GEN_DEV_SMCR, /* nest */
76 SMC_GEN_STATS, /* nest */
77 SMC_GEN_FBACK_STATS, /* nest */
125 SMC_NLA_LGR_R_V2_COMMON, /* nest */
126 SMC_NLA_LGR_R_V2, /* nest */
[all …]
/linux/tools/testing/selftests/net/netfilter/
H A Dconntrack_dump_flush.c24 struct nlattr *nest, *nest_ip, *nest_proto; in build_cta_tuple_v4() local
26 nest = mnl_attr_nest_start(nlh, type); in build_cta_tuple_v4()
27 if (!nest) in build_cta_tuple_v4()
45 mnl_attr_nest_end(nlh, nest); in build_cta_tuple_v4()
54 struct nlattr *nest, *nest_ip, *nest_proto; in build_cta_tuple_v6() local
56 nest = mnl_attr_nest_start(nlh, type); in build_cta_tuple_v6()
57 if (!nest) in build_cta_tuple_v6()
75 mnl_attr_nest_end(nlh, nest); in build_cta_tuple_v6()
82 struct nlattr *nest, *nest_proto; in build_cta_proto() local
84 nest = mnl_attr_nest_start(nlh, CTA_PROTOINFO); in build_cta_proto()
[all …]
/linux/net/ethtool/
H A Dstrset.c171 static int strset_get_id(const struct nlattr *nest, u32 *val, in strset_get_id() argument
177 ret = nla_parse_nested(tb, ARRAY_SIZE(get_stringset_policy) - 1, nest, in strset_get_id()
181 if (NL_REQ_ATTR_CHECK(extack, nest, tb, ETHTOOL_A_STRINGSET_ID)) in strset_get_id()
198 struct nlattr *nest = tb[ETHTOOL_A_STRSET_STRINGSETS]; in strset_parse_request() local
202 if (!nest) in strset_parse_request()
204 ret = nla_validate_nested(nest, in strset_parse_request()
211 nla_for_each_nested(attr, nest, rem) { in strset_parse_request()
344 /* calculate size of ETHTOOL_A_STRSET_STRINGSET nest for one string set */
358 /* ETHTOOL_A_STRING_INDEX, ETHTOOL_A_STRING_VALUE, nest */ in strset_set_size()
464 struct nlattr *nest; in strset_fill_reply() local
[all …]
H A Dtsinfo.c42 int ts_parse_hwtst_provider(const struct nlattr *nest, in ts_parse_hwtst_provider()
52 nest, in ts_parse_hwtst_provider()
57 if (NL_REQ_ATTR_CHECK(extack, nest, tb, in ts_parse_hwtst_provider()
59 NL_REQ_ATTR_CHECK(extack, nest, tb, in ts_parse_hwtst_provider()
196 struct nlattr *nest; in tsinfo_put_stats()
198 nest = nla_nest_start(skb, ETHTOOL_A_TSINFO_STATS); in tsinfo_put_stats()
199 if (!nest) in tsinfo_put_stats()
212 nla_nest_end(skb, nest); in tsinfo_put_stats()
216 nla_nest_cancel(skb, nest); in tsinfo_put_stats()
254 struct nlattr *nest; in tsinfo_fill_reply()
41 ts_parse_hwtst_provider(const struct nlattr * nest,struct hwtstamp_provider_desc * hwprov_desc,struct netlink_ext_ack * extack,bool * mod) ts_parse_hwtst_provider() argument
195 struct nlattr *nest; tsinfo_put_stats() local
253 struct nlattr *nest; tsinfo_fill_reply() local
[all...]
H A Dbitset.c206 /* bit nest */ in ethnl_bitset32_size()
209 /* bits nest */ in ethnl_bitset32_size()
213 /* outermost nest */ in ethnl_bitset32_size()
218 * ethnl_put_bitset32() - Put a bitset nest into a message
220 * @attrtype: attribute type for the bitset nest
237 struct nlattr *nest; in ethnl_put_bitset32() local
240 nest = nla_nest_start(skb, attrtype); in ethnl_put_bitset32()
241 if (!nest) in ethnl_put_bitset32()
298 nla_nest_end(skb, nest); in ethnl_put_bitset32()
302 nla_nest_cancel(skb, nest); in ethnl_put_bitset32()
[all …]
H A Dcoalesce.c87 int modersz = nla_total_size(0) + /* _PROFILE_IRQ_MODERATION, nest */ in coalesce_reply_size()
92 int total_modersz = nla_total_size(0) + /* _{R,T}X_PROFILE, nest */ in coalesce_reply_size()
144 * coalesce_put_profile - fill reply with a nla nest with four child nla nests.
146 * @attr_type: nest attr type ETHTOOL_A_COALESCE_*X_PROFILE
150 * Put a dim profile nest attribute. Refer to ETHTOOL_A_PROFILE_IRQ_MODERATION.
427 * ethnl_update_profile - get a profile nest with child nests from userspace.
430 * @nests: nest attr ETHTOOL_A_COALESCE_*X_PROFILE to set profile.
459 struct nlattr *nest; in ethnl_update_profile() local
473 nla_for_each_nested_type(nest, ETHTOOL_A_PROFILE_IRQ_MODERATION, in ethnl_update_profile()
476 NL_SET_BAD_ATTR(extack, nest); in ethnl_update_profile()
[all …]
/linux/drivers/crypto/nx/
H A DKconfig10 Support for PowerPC Nest (NX) encryption acceleration. This
21 Support for PowerPC Nest (NX) compression acceleration. This
35 Support for PowerPC Nest (NX) compression acceleration. This
46 Support for PowerPC Nest (NX) compression acceleration. This
/linux/net/netfilter/
H A Dnft_tunnel.c517 struct nlattr *nest; in nft_tunnel_ip_dump() local
520 nest = nla_nest_start_noflag(skb, NFTA_TUNNEL_KEY_IP6); in nft_tunnel_ip_dump()
521 if (!nest) in nft_tunnel_ip_dump()
530 nla_nest_cancel(skb, nest); in nft_tunnel_ip_dump()
534 nla_nest_end(skb, nest); in nft_tunnel_ip_dump()
536 nest = nla_nest_start_noflag(skb, NFTA_TUNNEL_KEY_IP); in nft_tunnel_ip_dump()
537 if (!nest) in nft_tunnel_ip_dump()
544 nla_nest_cancel(skb, nest); in nft_tunnel_ip_dump()
548 nla_nest_end(skb, nest); in nft_tunnel_ip_dump()
558 struct nlattr *nest, *inne in nft_tunnel_opts_dump() local
[all...]
/linux/net/8021q/
H A Dvlan_netlink.c227 struct nlattr *nest; in vlan_fill_info() local
240 nest = nla_nest_start_noflag(skb, IFLA_VLAN_INGRESS_QOS); in vlan_fill_info()
241 if (nest == NULL) in vlan_fill_info()
254 nla_nest_end(skb, nest); in vlan_fill_info()
258 nest = nla_nest_start_noflag(skb, IFLA_VLAN_EGRESS_QOS); in vlan_fill_info()
259 if (nest == NULL) in vlan_fill_info()
273 nla_nest_end(skb, nest); in vlan_fill_info()
/linux/net/sched/
H A Dact_api.c506 struct nlattr *nest; in tcf_action_dump_1() local
532 nest = nla_nest_start_noflag(skb, TCA_ACT_OPTIONS); in tcf_action_dump_1()
533 if (nest == NULL) in tcf_action_dump_1()
537 nla_nest_end(skb, nest); in tcf_action_dump_1()
552 struct nlattr *nest; in tcf_dump_walker() local
576 nest = nla_nest_start_noflag(skb, n_i); in tcf_dump_walker()
577 if (!nest) { in tcf_dump_walker()
586 nlmsg_trim(skb, nest); in tcf_dump_walker()
589 nla_nest_end(skb, nest); in tcf_dump_walker()
607 nla_nest_cancel(skb, nest); in tcf_dump_walker()
629 struct nlattr *nest; tcf_del_walker() local
1246 struct nlattr *nest; tcf_action_dump() local
1649 struct nlattr *nest; tca_get_fill() local
1754 struct nlattr *nest; tca_action_flush() local
2203 struct nlattr *nest; tc_dump_action() local
[all...]
H A Dcls_cgroup.c176 struct nlattr *nest; in cls_cgroup_dump() local
180 nest = nla_nest_start_noflag(skb, TCA_OPTIONS); in cls_cgroup_dump()
181 if (nest == NULL) in cls_cgroup_dump()
188 nla_nest_end(skb, nest); in cls_cgroup_dump()
196 nla_nest_cancel(skb, nest); in cls_cgroup_dump()
H A Dsch_ets.c311 struct nlattr *nest; in ets_class_dump()
317 nest = nla_nest_start_noflag(skb, TCA_OPTIONS); in ets_class_dump()
318 if (!nest) in ets_class_dump()
324 return nla_nest_end(skb, nest); in ets_class_dump()
327 nla_nest_cancel(skb, nest); in ets_class_dump()
747 struct nlattr *nest; in ets_qdisc_dump()
770 nest = nla_nest_start(skb, TCA_ETS_QUANTA); in ets_qdisc_dump()
771 if (!nest) in ets_qdisc_dump()
780 nla_nest_end(skb, nest); in ets_qdisc_dump()
783 nest in ets_qdisc_dump()
313 struct nlattr *nest; ets_class_dump() local
749 struct nlattr *nest; ets_qdisc_dump() local
[all...]
H A Dcls_flower.c3162 struct nlattr *nest; in fl_dump_key_geneve_opt()
3165 nest = nla_nest_start_noflag(skb, TCA_FLOWER_KEY_ENC_OPTS_GENEVE); in fl_dump_key_geneve_opt()
3166 if (!nest) in fl_dump_key_geneve_opt() local
3184 nla_nest_end(skb, nest); in fl_dump_key_geneve_opt()
3188 nla_nest_cancel(skb, nest); in fl_dump_key_geneve_opt()
3196 struct nlattr *nest; in fl_dump_key_vxlan_opt()
3198 nest = nla_nest_start_noflag(skb, TCA_FLOWER_KEY_ENC_OPTS_VXLAN); in fl_dump_key_vxlan_opt()
3199 if (!nest) in fl_dump_key_vxlan_opt()
3206 nla_nest_end(skb, nest); in fl_dump_key_vxlan_opt()
3210 nla_nest_cancel(skb, nest); in fl_dump_key_vxlan_opt()
3200 struct nlattr *nest; fl_dump_key_vxlan_opt() local
3222 struct nlattr *nest; fl_dump_key_erspan_opt() local
3256 struct nlattr *nest; fl_dump_key_gtp_opt() local
3283 struct nlattr *nest; fl_dump_key_pfcp_opt() local
3379 struct nlattr *nest; fl_dump_key_options() local
3692 struct nlattr *nest; fl_dump() local
3750 struct nlattr *nest; fl_terse_dump() local
3792 struct nlattr *nest; fl_tmplt_dump() local
[all...]
/linux/net/ipv4/
H A Dip_tunnel_core.c770 struct nlattr *nest; in ip_tun_fill_encap_opts_geneve() local
773 nest = nla_nest_start_noflag(skb, LWTUNNEL_IP_OPTS_GENEVE); in ip_tun_fill_encap_opts_geneve()
774 if (!nest) in ip_tun_fill_encap_opts_geneve()
784 nla_nest_cancel(skb, nest); in ip_tun_fill_encap_opts_geneve()
790 nla_nest_end(skb, nest); in ip_tun_fill_encap_opts_geneve()
798 struct nlattr *nest; in ip_tun_fill_encap_opts_vxlan() local
800 nest = nla_nest_start_noflag(skb, LWTUNNEL_IP_OPTS_VXLAN); in ip_tun_fill_encap_opts_vxlan()
801 if (!nest) in ip_tun_fill_encap_opts_vxlan()
806 nla_nest_cancel(skb, nest); in ip_tun_fill_encap_opts_vxlan()
810 nla_nest_end(skb, nest); in ip_tun_fill_encap_opts_vxlan()
[all …]
/linux/kernel/events/
H A Dring_buffer.c50 (*(volatile unsigned int *)&rb->nest)++; in perf_output_get_handle()
58 unsigned int nest; in perf_output_put_handle() local
64 nest = READ_ONCE(rb->nest); in perf_output_put_handle()
65 if (nest > 1) { in perf_output_put_handle()
66 WRITE_ONCE(rb->nest, nest - 1); in perf_output_put_handle()
74 * incremented @rb->nest. in perf_output_put_handle()
117 * We must publish the head before decrementing the nest count, in perf_output_put_handle()
122 WRITE_ONCE(rb->nest, 0); in perf_output_put_handle()
125 * Ensure we decrement @rb->nest before we validate the @rb->head. in perf_output_put_handle()
130 WRITE_ONCE(rb->nest, 1); in perf_output_put_handle()
[all …]
/linux/net/core/
H A Dpage_pool_user.c127 struct nlattr *nest; in page_pool_nl_stats_fill()
136 nest = nla_nest_start(rsp, NETDEV_A_PAGE_POOL_STATS_INFO); in page_pool_nl_stats_fill()
137 if (!nest) in page_pool_nl_stats_fill()
146 nla_nest_end(rsp, nest); in page_pool_nl_stats_fill()
176 nla_nest_cancel(rsp, nest);
190 struct nlattr *nest; in netdev_nl_page_pool_stats_get_doit()
197 nest = info->attrs[NETDEV_A_PAGE_POOL_STATS_INFO]; in netdev_nl_page_pool_stats_get_doit()
198 err = nla_parse_nested(tb, ARRAY_SIZE(tb) - 1, nest, in netdev_nl_page_pool_stats_get_doit()
204 if (NL_REQ_ATTR_CHECK(info->extack, nest, tb, NETDEV_A_PAGE_POOL_ID)) in netdev_nl_page_pool_stats_get_doit()
237 struct nlattr *nest; in page_pool_nl_fill()
119 struct nlattr *nest; page_pool_nl_stats_fill() local
181 struct nlattr *nest; netdev_nl_page_pool_stats_get_doit() local
[all...]
/linux/tools/testing/selftests/net/mptcp/
H A Dpm_nl_ctl.c774 struct rtattr *rta, *nest; in add_addr()
792 nest = (void *)(data + off); in add_addr()
793 nest->rta_type = NLA_F_NESTED | MPTCP_PM_ATTR_ADDR; in add_addr()
794 nest->rta_len = RTA_LENGTH(0); in add_addr()
795 off += NLMSG_ALIGN(nest->rta_len); in add_addr()
898 nest->rta_len = off - nest_start; in add_addr()
909 struct rtattr *rta, *nest; in del_addr()
931 nest = (void *)(data + off); in del_addr()
932 nest->rta_type = NLA_F_NESTED | MPTCP_PM_ATTR_ADDR; in del_addr()
933 nest in del_addr()
776 struct rtattr *rta, *nest; add_addr() local
911 struct rtattr *rta, *nest; del_addr() local
1116 struct rtattr *rta, *nest; get_addr() local
1355 struct rtattr *rta, *nest; set_flags() local
[all...]
/linux/net/bridge/
H A Dbr_mdb.c76 struct nlattr *nest, *port_nest; in br_rports_fill_info() local
82 nest = nla_nest_start_noflag(skb, MDBA_ROUTER); in br_rports_fill_info()
83 if (nest == NULL) in br_rports_fill_info()
128 nla_nest_end(skb, nest); in br_rports_fill_info()
131 nla_nest_cancel(skb, nest); in br_rports_fill_info()
180 struct nlattr *nest, *nest_ent; in __mdb_fill_srcs() local
185 nest = nla_nest_start(skb, MDBA_MDB_EATTR_SRC_LIST); in __mdb_fill_srcs()
186 if (!nest) in __mdb_fill_srcs()
223 nla_nest_end(skb, nest); in __mdb_fill_srcs()
228 nla_nest_cancel(skb, nest); in __mdb_fill_srcs()
[all …]
H A Dbr_vlan_options.c15 struct nlattr *nest; in __vlan_tun_put() local
20 nest = nla_nest_start(skb, BRIDGE_VLANDB_ENTRY_TUNNEL_INFO); in __vlan_tun_put()
21 if (!nest) in __vlan_tun_put()
24 nla_nest_cancel(skb, nest); in __vlan_tun_put()
27 nla_nest_end(skb, nest); in __vlan_tun_put()
394 struct nlattr *nest; in br_vlan_global_opts_fill()
396 nest = nla_nest_start(skb, BRIDGE_VLANDB_GLOBAL_OPTIONS); in br_vlan_global_opts_fill()
397 if (!nest) in br_vlan_global_opts_fill()
474 nla_nest_end(skb, nest); in rtnl_vlan_global_opts_nlmsg_size()
479 nla_nest_cancel(skb, nest); in rtnl_vlan_global_opts_nlmsg_size()
374 struct nlattr *nest; br_vlan_global_opts_fill() local
[all...]
/linux/drivers/net/can/dev/
H A Dnetlink.c732 size = nla_total_size(0); /* nest IFLA_CAN_TDC */ in can_tdc_get_size()
774 return nla_total_size(0) + /* nest IFLA_CAN_CTRLMODE_EXT */ in can_ctrlmode_ext_get_size()
786 size = nla_total_size(0); /* nest IFLA_CAN_PWM */ in can_pwm_get_size()
872 struct nlattr *nest; in can_tdc_fill_info() local
890 nest = nla_nest_start(skb, ifla_can_tdc); in can_tdc_fill_info()
891 if (!nest) in can_tdc_fill_info()
925 nla_nest_end(skb, nest); in can_tdc_fill_info()
929 nla_nest_cancel(skb, nest); in can_tdc_fill_info()
937 struct nlattr *nest; in can_pwm_fill_info() local
942 nest = nla_nest_start(skb, IFLA_CAN_XL_PWM); in can_pwm_fill_info()
[all …]
/linux/Documentation/netlink/specs/
H A Dnlctrl.yaml69 sub-type: nest
74 sub-type: nest
78 type: nest-type-value
83 type: nest-type-value
/linux/net/psp/
H A Dpsp_nl.c241 struct nlattr *nest; in psp_nl_key_rotate_doit()
258 nest = nla_nest_start(rsp, PSP_A_DEV_ASSOC_LIST); in psp_nl_key_rotate_doit()
259 if (!nest) in psp_nl_key_rotate_doit()
265 nla_nest_cancel(rsp, nest); in psp_nl_key_rotate_doit()
269 nla_nest_end(rsp, nest); in psp_nl_key_rotate_doit()
709 struct nlattr *nest = info->attrs[attr];
714 err = nla_parse_nested(tb, ARRAY_SIZE(tb) - 1, nest,
719 if (NL_REQ_ATTR_CHECK(info->extack, nest, tb, PSP_A_KEYS_KEY) ||
720 NL_REQ_ATTR_CHECK(info->extack, nest, tb, PSP_A_KEYS_SPI))
747 void *nest;
360 struct nlattr *nest = info->attrs[attr]; psp_nl_parse_key() local
398 void *nest; psp_nl_put_key() local
[all...]
/linux/drivers/dpll/
H A Ddpll_netlink.c471 struct nlattr *nest; in dpll_msg_add_pin_freq()
485 nest = nla_nest_start(msg, DPLL_A_PIN_FREQUENCY_SUPPORTED); in dpll_msg_add_pin_freq()
486 if (!nest) in dpll_msg_add_pin_freq()
491 nla_nest_cancel(msg, nest); in dpll_msg_add_pin_freq()
497 nla_nest_cancel(msg, nest); in dpll_msg_add_pin_esync()
500 nla_nest_end(msg, nest); in dpll_msg_add_pin_esync()
513 struct nlattr *nest; in dpll_msg_add_pin_esync()
530 nest = nla_nest_start(msg, in dpll_msg_add_pin_esync()
532 if (!nest) in dpll_msg_add_pin_esync()
542 nla_nest_end(msg, nest); in dpll_msg_add_pin_ref_sync()
461 struct nlattr *nest; dpll_msg_add_pin_freq() local
503 struct nlattr *nest; dpll_msg_add_pin_esync() local
551 struct nlattr *nest; dpll_msg_add_pin_ref_sync() local
601 struct nlattr *nest; dpll_msg_add_pin_parents() local
1273 dpll_pin_ref_sync_set(struct dpll_pin * pin,struct nlattr * nest,struct netlink_ext_ack * extack) dpll_pin_ref_sync_set() argument
[all...]
/linux/Documentation/userspace-api/netlink/
H A Dgenetlink-legacy.rst56 A ``sub-type`` is needed to describe what type in the ``ENTRY``. A ``nest``
57 ``sub-type`` means there are nest arrays in the ``ENTRY``, with the structure
92 Where the first level of nest has the policy index as it's attribute
93 type, it contains a single nest which has the attribute index as its
94 type. Inside the attr-index nest are the policy attributes. Modern

123456789