Home
last modified time | relevance | path

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

1234567

/linux-6.15/net/ethtool/
H A Dcabletest.c138 if (!phydev->nest) { in ethnl_cable_test_alloc()
172 struct nlattr *nest; in ethnl_cable_test_result_with_src() local
176 if (!nest) in ethnl_cable_test_result_with_src()
200 struct nlattr *nest; in ethnl_cable_test_fault_length_with_src() local
205 if (!nest) in ethnl_cable_test_fault_length_with_src()
253 if (!nest) in ethnl_act_cable_test_tdr_cfg()
383 struct nlattr *nest; in ethnl_cable_test_amplitude() local
388 if (!nest) in ethnl_cable_test_amplitude()
407 struct nlattr *nest; in ethnl_cable_test_pulse() local
411 if (!nest) in ethnl_cable_test_pulse()
[all …]
H A Dtsinfo.c51 nest, in ts_parse_hwtst_provider()
56 if (NL_REQ_ATTR_CHECK(extack, nest, tb, in ts_parse_hwtst_provider()
58 NL_REQ_ATTR_CHECK(extack, nest, tb, in ts_parse_hwtst_provider()
182 struct nlattr *nest; in tsinfo_put_stats() local
185 if (!nest) in tsinfo_put_stats()
198 nla_nest_end(skb, nest); in tsinfo_put_stats()
202 nla_nest_cancel(skb, nest); in tsinfo_put_stats()
240 struct nlattr *nest; in tsinfo_fill_reply() local
248 if (!nest) in tsinfo_fill_reply()
256 nla_nest_cancel(skb, nest); in tsinfo_fill_reply()
[all …]
H A Dstrset.c170 static int strset_get_id(const struct nlattr *nest, u32 *val, in strset_get_id() argument
180 if (NL_REQ_ATTR_CHECK(extack, nest, tb, ETHTOOL_A_STRINGSET_ID)) in strset_get_id()
196 struct nlattr *nest = tb[ETHTOOL_A_STRSET_STRINGSETS]; in strset_parse_request() local
200 if (!nest) in strset_parse_request()
202 ret = nla_validate_nested(nest, in strset_parse_request()
209 nla_for_each_nested(attr, nest, rem) { in strset_parse_request()
461 struct nlattr *nest; in strset_fill_reply() local
465 nest = nla_nest_start(skb, ETHTOOL_A_STRSET_STRINGSETS); in strset_fill_reply()
466 if (!nest) in strset_fill_reply()
478 nla_nest_end(skb, nest); in strset_fill_reply()
[all …]
H A Dstats.c242 struct nlattr *nest; in stat_put() local
261 if (!nest) in stat_put()
270 nla_nest_end(skb, nest); in stat_put()
369 struct nlattr *nest; in stats_put_rmon_hist() local
382 if (!nest) in stats_put_rmon_hist()
393 nla_nest_end(skb, nest); in stats_put_rmon_hist()
399 nla_nest_cancel(skb, nest); in stats_put_rmon_hist()
431 struct nlattr *nest; in stats_put_stats() local
434 if (!nest) in stats_put_stats()
444 nla_nest_end(skb, nest); in stats_put_stats()
[all …]
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()
/linux-6.15/Documentation/netlink/specs/
H A Dnl80211.yaml368 type: nest
400 type: nest
608 type: nest
612 type: nest
667 type: nest
679 type: nest
1120 type: nest
1226 type: nest
1343 type: nest
1348 type: nest
[all …]
H A Dethtool.yaml152 type: nest
171 type: nest
207 type: nest
226 type: nest
239 type: nest
252 type: nest
256 type: nest
272 type: nest
276 type: nest
289 type: nest
[all …]
H A Dconntrack.yaml200 type: nest
205 type: nest
275 type: nest
280 type: nest
285 type: nest
325 type: nest
368 type: nest
373 type: nest
385 type: nest
389 type: nest
[all …]
H A Dnftables.yaml289 type: nest
308 type: nest
358 type: nest
395 type: nest
400 type: nest
429 type: nest
500 type: nest
534 type: nest
540 type: nest
553 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 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-6.15/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.c543 struct nlattr *nest; in nft_tunnel_ip_dump() local
547 if (!nest) in nft_tunnel_ip_dump()
556 nla_nest_cancel(skb, nest); in nft_tunnel_ip_dump()
560 nla_nest_end(skb, nest); in nft_tunnel_ip_dump()
563 if (!nest) in nft_tunnel_ip_dump()
570 nla_nest_cancel(skb, nest); in nft_tunnel_ip_dump()
574 nla_nest_end(skb, nest); in nft_tunnel_ip_dump()
584 struct nlattr *nest, *inner; in nft_tunnel_opts_dump() local
587 if (!nest) in nft_tunnel_opts_dump()
640 nla_nest_end(skb, nest); in nft_tunnel_opts_dump()
[all …]
/linux-6.15/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()
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
85 if (!nest) in build_cta_proto()
96 mnl_attr_nest_end(nlh, nest); in build_cta_proto()
224 struct nlattr *nest; in conntracK_count_zone() local
[all …]
/linux-6.15/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()
275 nla_nest_end(skb, nest); in vlan_fill_info()
/linux-6.15/tools/testing/selftests/net/mptcp/
H A Dpm_nl_ctl.c760 struct rtattr *rta, *nest; in add_addr() local
778 nest = (void *)(data + off); in add_addr()
780 nest->rta_len = RTA_LENGTH(0); in add_addr()
891 struct rtattr *rta, *nest; in del_addr() local
913 nest = (void *)(data + off); in del_addr()
1082 struct rtattr *rta, *nest; in get_addr() local
1103 nest = (void *)(data + off); in get_addr()
1321 struct rtattr *rta, *nest; in set_flags() local
1343 nest = (void *)(data + off); in set_flags()
1345 nest->rta_len = RTA_LENGTH(0); in set_flags()
[all …]
/linux-6.15/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()
378 unsigned int nest; in perf_aux_output_begin() local
409 nest = READ_ONCE(rb->aux_nest); in perf_aux_output_begin()
414 if (WARN_ON_ONCE(nest)) in perf_aux_output_begin()
[all …]
/linux-6.15/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-6.15/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.c511 struct nlattr *nest; in tcf_action_dump_1() local
538 if (nest == NULL) in tcf_action_dump_1()
557 struct nlattr *nest; in tcf_dump_walker() local
582 if (!nest) { in tcf_dump_walker()
634 struct nlattr *nest; in tcf_del_walker() local
643 if (nest == NULL) in tcf_del_walker()
1242 struct nlattr *nest; in tcf_action_dump() local
1246 if (nest == NULL) in tcf_action_dump()
1644 if (!nest) in tca_get_fill()
1771 if (!nest) { in tca_action_flush()
[all …]
/linux-6.15/scripts/kconfig/
H A Dpreprocess.c355 int nest = 0; in eval_clause() local
389 if (nest == 0 && *p == ',') { in eval_clause()
396 nest++; in eval_clause()
398 nest--; in eval_clause()
464 int nest = 0; in expand_dollar_with_args() local
480 nest++; in expand_dollar_with_args()
482 if (nest-- == 0) in expand_dollar_with_args()
/linux-6.15/net/core/
H A Dpage_pool_user.c119 struct nlattr *nest; in page_pool_nl_stats_fill() local
129 nest = nla_nest_start(rsp, NETDEV_A_PAGE_POOL_STATS_INFO); in page_pool_nl_stats_fill()
137 nla_nest_end(rsp, nest); in page_pool_nl_stats_fill()
167 nla_nest_cancel(rsp, nest); in page_pool_nl_stats_fill()
181 struct nlattr *nest; in netdev_nl_page_pool_stats_get_doit() local
188 nest = info->attrs[NETDEV_A_PAGE_POOL_STATS_INFO]; in netdev_nl_page_pool_stats_get_doit()
189 err = nla_parse_nested(tb, ARRAY_SIZE(tb) - 1, nest, in netdev_nl_page_pool_stats_get_doit()
195 if (NL_REQ_ATTR_CHECK(info->extack, nest, tb, NETDEV_A_PAGE_POOL_ID)) in netdev_nl_page_pool_stats_get_doit()
/linux-6.15/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-6.15/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 …]

1234567