Home
last modified time | relevance | path

Searched refs:nest (Results 1 – 25 of 147) sorted by relevance

123456

/linux/net/ethtool/
H A Dcabletest.c132 if (!phydev->nest) { in ethnl_cable_test_alloc()
165 struct nlattr *nest; in ethnl_cable_test_result() local
169 if (!nest) in ethnl_cable_test_result()
188 struct nlattr *nest; in ethnl_cable_test_fault_length() local
193 if (!nest) in ethnl_cable_test_fault_length()
240 if (!nest) in ethnl_act_cable_test_tdr_cfg()
363 struct nlattr *nest; in ethnl_cable_test_amplitude() local
368 if (!nest) in ethnl_cable_test_amplitude()
387 struct nlattr *nest; in ethnl_cable_test_pulse() local
391 if (!nest) in ethnl_cable_test_pulse()
[all …]
H A Dstrset.c160 static int strset_get_id(const struct nlattr *nest, u32 *val, in strset_get_id() argument
170 if (NL_REQ_ATTR_CHECK(extack, nest, tb, ETHTOOL_A_STRINGSET_ID)) in strset_get_id()
186 struct nlattr *nest = tb[ETHTOOL_A_STRSET_STRINGSETS]; in strset_parse_request() local
190 if (!nest) in strset_parse_request()
192 ret = nla_validate_nested(nest, in strset_parse_request()
199 nla_for_each_nested(attr, nest, rem) { in strset_parse_request()
442 struct nlattr *nest; in strset_fill_reply() local
446 nest = nla_nest_start(skb, ETHTOOL_A_STRSET_STRINGSETS); in strset_fill_reply()
447 if (!nest) in strset_fill_reply()
459 nla_nest_end(skb, nest); in strset_fill_reply()
[all …]
H A Dstats.c209 struct nlattr *nest; in stat_put() local
228 if (!nest) in stat_put()
237 nla_nest_end(skb, nest); in stat_put()
317 struct nlattr *nest; in stats_put_rmon_hist() local
330 if (!nest) in stats_put_rmon_hist()
341 nla_nest_end(skb, nest); in stats_put_rmon_hist()
347 nla_nest_cancel(skb, nest); in stats_put_rmon_hist()
379 struct nlattr *nest; in stats_put_stats() local
382 if (!nest) in stats_put_stats()
392 nla_nest_end(skb, nest); in stats_put_stats()
[all …]
H A Dtsinfo.c111 struct nlattr *nest; in tsinfo_put_stats() local
113 nest = nla_nest_start(skb, ETHTOOL_A_TSINFO_STATS); in tsinfo_put_stats()
114 if (!nest) in tsinfo_put_stats()
125 nla_nest_end(skb, nest); in tsinfo_put_stats()
129 nla_nest_cancel(skb, nest); in tsinfo_put_stats()
H A Dpause.c121 struct nlattr *nest; in pause_put_stats() local
126 nest = nla_nest_start(skb, ETHTOOL_A_PAUSE_STATS); in pause_put_stats()
127 if (!nest) in pause_put_stats()
136 nla_nest_end(skb, nest); in pause_put_stats()
140 nla_nest_cancel(skb, nest); in pause_put_stats()
H A Dmm.c96 struct nlattr *nest; in mm_put_stats() local
98 nest = nla_nest_start(skb, ETHTOOL_A_MM_STATS); in mm_put_stats()
99 if (!nest) in mm_put_stats()
116 nla_nest_end(skb, nest); in mm_put_stats()
120 nla_nest_cancel(skb, nest); in mm_put_stats()
/linux/Documentation/netlink/specs/
H A Dethtool.yaml56 type: nest
70 type: nest
87 type: nest
101 type: nest
109 type: nest
117 type: nest
121 type: nest
132 type: nest
136 type: nest
144 type: nest
[all …]
H A Ddevlink.yaml297 type: nest
301 type: nest
312 type: nest
316 type: nest
323 type: nest
327 type: nest
335 type: nest
339 type: nest
346 type: nest
351 type: nest
[all …]
H A Dnftables.yaml189 type: nest
208 type: nest
258 type: nest
295 type: nest
300 type: nest
329 type: nest
400 type: nest
434 type: nest
440 type: nest
453 type: nest
[all …]
H A Dovs_flow.yaml382 type: nest
389 type: nest
429 type: nest
471 type: nest
532 type: nest
581 type: nest
612 type: nest
616 type: nest
630 type: nest
657 type: nest
[all …]
/linux/net/netfilter/
H A Dnfnetlink_hook.c66 if (!nest) in nfnl_start_info_type()
71 return nest; in nfnl_start_info_type()
73 nla_nest_cancel(nlskb, nest); in nfnl_start_info_type()
82 struct nlattr *nest, *nest2; in nfnl_hook_put_bpf_prog_info() local
92 if (!nest) in nfnl_hook_put_bpf_prog_info()
104 nla_nest_end(nlskb, nest); in nfnl_hook_put_bpf_prog_info()
108 nla_nest_cancel(nlskb, nest); in nfnl_hook_put_bpf_prog_info()
118 struct nlattr *nest, *nest2; in nfnl_hook_put_nft_chain_info() local
128 if (!nest) in nfnl_hook_put_nft_chain_info()
148 nla_nest_end(nlskb, nest); in nfnl_hook_put_nft_chain_info()
[all …]
H A Dnft_tunnel.c545 struct nlattr *nest; in nft_tunnel_ip_dump() local
549 if (!nest) in nft_tunnel_ip_dump()
558 nla_nest_cancel(skb, nest); in nft_tunnel_ip_dump()
562 nla_nest_end(skb, nest); in nft_tunnel_ip_dump()
565 if (!nest) in nft_tunnel_ip_dump()
572 nla_nest_cancel(skb, nest); in nft_tunnel_ip_dump()
576 nla_nest_end(skb, nest); in nft_tunnel_ip_dump()
586 struct nlattr *nest, *inner; in nft_tunnel_opts_dump() local
589 if (!nest) in nft_tunnel_opts_dump()
642 nla_nest_end(skb, nest); in nft_tunnel_opts_dump()
[all …]
/linux/tools/testing/selftests/net/netfilter/
H A Dconntrack_dump_flush.c26 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 nest = mnl_attr_nest_start(nlh, type); in build_cta_tuple_v6()
55 if (!nest) in build_cta_tuple_v6()
73 mnl_attr_nest_end(nlh, nest); in build_cta_tuple_v6()
78 struct nlattr *nest, *nest_proto; in build_cta_proto() local
81 if (!nest) in build_cta_proto()
92 mnl_attr_nest_end(nlh, nest); in build_cta_proto()
217 struct nlattr *nest; in conntracK_count_zone() local
[all …]
/linux/net/8021q/
H A Dvlan_netlink.c226 struct nlattr *nest; in vlan_fill_info() local
239 nest = nla_nest_start_noflag(skb, IFLA_VLAN_INGRESS_QOS); in vlan_fill_info()
240 if (nest == NULL) in vlan_fill_info()
253 nla_nest_end(skb, nest); in vlan_fill_info()
257 nest = nla_nest_start_noflag(skb, IFLA_VLAN_EGRESS_QOS); in vlan_fill_info()
258 if (nest == NULL) in vlan_fill_info()
274 nla_nest_end(skb, nest); in vlan_fill_info()
/linux/tools/testing/selftests/net/mptcp/
H A Dpm_nl_ctl.c766 struct rtattr *rta, *nest; in add_addr() local
784 nest = (void *)(data + off); in add_addr()
786 nest->rta_len = RTA_LENGTH(0); in add_addr()
897 struct rtattr *rta, *nest; in del_addr() local
919 nest = (void *)(data + off); in del_addr()
1088 struct rtattr *rta, *nest; in get_addr() local
1109 nest = (void *)(data + off); in get_addr()
1327 struct rtattr *rta, *nest; in set_flags() local
1349 nest = (void *)(data + off); in set_flags()
1351 nest->rta_len = RTA_LENGTH(0); in set_flags()
[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()
122 WRITE_ONCE(rb->nest, 0); in perf_output_put_handle()
130 WRITE_ONCE(rb->nest, 1); in perf_output_put_handle()
375 unsigned int nest; in perf_aux_output_begin() local
406 nest = READ_ONCE(rb->aux_nest); in perf_aux_output_begin()
411 if (WARN_ON_ONCE(nest)) in perf_aux_output_begin()
[all …]
/linux/net/ipv4/
H A Dip_tunnel_core.c741 struct nlattr *nest; in ip_tun_fill_encap_opts_geneve() local
745 if (!nest) in ip_tun_fill_encap_opts_geneve()
761 nla_nest_end(skb, nest); in ip_tun_fill_encap_opts_geneve()
769 struct nlattr *nest; in ip_tun_fill_encap_opts_vxlan() local
772 if (!nest) in ip_tun_fill_encap_opts_vxlan()
781 nla_nest_end(skb, nest); in ip_tun_fill_encap_opts_vxlan()
789 struct nlattr *nest; in ip_tun_fill_encap_opts_erspan() local
792 if (!nest) in ip_tun_fill_encap_opts_erspan()
809 nla_nest_end(skb, nest); in ip_tun_fill_encap_opts_erspan()
819 struct nlattr *nest; in ip_tun_fill_encap_opts() local
[all …]
H A Dtcp_diag.c88 struct nlattr *nest; in tcp_diag_put_ulp() local
91 nest = nla_nest_start_noflag(skb, INET_DIAG_ULP_INFO); in tcp_diag_put_ulp()
92 if (!nest) in tcp_diag_put_ulp()
104 nla_nest_end(skb, nest); in tcp_diag_put_ulp()
108 nla_nest_cancel(skb, nest); in tcp_diag_put_ulp()
/linux/net/core/
H A Dpage_pool_user.c115 struct nlattr *nest; in page_pool_nl_stats_fill() local
125 nest = nla_nest_start(rsp, NETDEV_A_PAGE_POOL_STATS_INFO); in page_pool_nl_stats_fill()
133 nla_nest_end(rsp, nest); in page_pool_nl_stats_fill()
163 nla_nest_cancel(rsp, nest); in page_pool_nl_stats_fill()
177 struct nlattr *nest; in netdev_nl_page_pool_stats_get_doit() local
184 nest = info->attrs[NETDEV_A_PAGE_POOL_STATS_INFO]; in netdev_nl_page_pool_stats_get_doit()
185 err = nla_parse_nested(tb, ARRAY_SIZE(tb) - 1, nest, in netdev_nl_page_pool_stats_get_doit()
191 if (NL_REQ_ATTR_CHECK(info->extack, nest, tb, NETDEV_A_PAGE_POOL_ID)) in netdev_nl_page_pool_stats_get_doit()
/linux/net/sched/
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 Dact_api.c513 struct nlattr *nest; in tcf_dump_walker() local
538 if (!nest) { in tcf_dump_walker()
590 struct nlattr *nest; in tcf_del_walker() local
599 if (nest == NULL) in tcf_del_walker()
1199 struct nlattr *nest; in tcf_action_dump_1() local
1225 if (nest == NULL) in tcf_action_dump_1()
1244 struct nlattr *nest; in tcf_action_dump() local
1248 if (nest == NULL) in tcf_action_dump()
1625 if (!nest) in tca_get_fill()
1752 if (!nest) { in tca_action_flush()
[all …]
H A Dsch_ets.c302 struct nlattr *nest; in ets_class_dump() local
309 if (!nest) in ets_class_dump()
315 return nla_nest_end(skb, nest); in ets_class_dump()
318 nla_nest_cancel(skb, nest); in ets_class_dump()
735 struct nlattr *nest; in ets_qdisc_dump() local
758 nest = nla_nest_start(skb, TCA_ETS_QUANTA); in ets_qdisc_dump()
759 if (!nest) in ets_qdisc_dump()
768 nla_nest_end(skb, nest); in ets_qdisc_dump()
771 nest = nla_nest_start(skb, TCA_ETS_PRIOMAP); in ets_qdisc_dump()
772 if (!nest) in ets_qdisc_dump()
[all …]
/linux/scripts/kconfig/
H A Dpreprocess.c354 int nest = 0; in eval_clause() local
388 if (nest == 0 && *p == ',') { in eval_clause()
395 nest++; in eval_clause()
397 nest--; in eval_clause()
463 int nest = 0; in expand_dollar_with_args() local
479 nest++; in expand_dollar_with_args()
481 if (nest-- == 0) in expand_dollar_with_args()
/linux/drivers/net/can/dev/
H A Dnetlink.c469 struct nlattr *nest; in can_tdc_fill_info() local
477 nest = nla_nest_start(skb, IFLA_CAN_TDC); in can_tdc_fill_info()
478 if (!nest) in can_tdc_fill_info()
512 nla_nest_end(skb, nest); in can_tdc_fill_info()
516 nla_nest_cancel(skb, nest); in can_tdc_fill_info()
523 struct nlattr *nest; in can_ctrlmode_ext_fill_info() local
525 nest = nla_nest_start(skb, IFLA_CAN_CTRLMODE_EXT); in can_ctrlmode_ext_fill_info()
526 if (!nest) in can_ctrlmode_ext_fill_info()
531 nla_nest_cancel(skb, nest); in can_ctrlmode_ext_fill_info()
535 nla_nest_end(skb, nest); in can_ctrlmode_ext_fill_info()
/linux/net/bridge/
H A Dbr_mdb.c83 if (nest == NULL) in br_rports_fill_info()
128 nla_nest_end(skb, nest); in br_rports_fill_info()
184 if (!nest) in __mdb_fill_srcs()
221 nla_nest_end(skb, nest); in __mdb_fill_srcs()
327 if (nest == NULL) in br_mdb_fill_info()
376 nla_nest_end(skb, nest); in br_mdb_fill_info()
432 if (nest == NULL) in nlmsg_populate_mdb_fill()
442 nla_nest_end(skb, nest); in nlmsg_populate_mdb_fill()
447 nla_nest_end(skb, nest); in nlmsg_populate_mdb_fill()
565 if (!nest) in nlmsg_populate_rtr_fill()
[all …]

123456