Home
last modified time | relevance | path

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

12345

/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()
464 struct nlattr *nest; in strset_fill_reply() local
468 nest = nla_nest_start(skb, ETHTOOL_A_STRSET_STRINGSETS); in strset_fill_reply()
469 if (!nest) in strset_fill_reply()
[all …]
H A Dtsinfo.c41 int ts_parse_hwtst_provider(const struct nlattr *nest, in ts_parse_hwtst_provider() argument
51 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()
195 struct nlattr *nest; in tsinfo_put_stats() local
197 nest = nla_nest_start(skb, ETHTOOL_A_TSINFO_STATS); in tsinfo_put_stats()
198 if (!nest) in tsinfo_put_stats()
211 nla_nest_end(skb, nest); in tsinfo_put_stats()
215 nla_nest_cancel(skb, nest); in tsinfo_put_stats()
253 struct nlattr *nest; in tsinfo_fill_reply() local
[all …]
H A Dpse-pd.c131 struct nlattr *nest; in pse_put_pw_limit_ranges() local
133 nest = nla_nest_start(skb, ETHTOOL_A_C33_PSE_PW_LIMIT_RANGES); in pse_put_pw_limit_ranges()
134 if (!nest) in pse_put_pw_limit_ranges()
141 nla_nest_cancel(skb, nest); in pse_put_pw_limit_ranges()
144 nla_nest_end(skb, nest); in pse_put_pw_limit_ranges()
H A Dbitset.c237 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()
522 const struct nlattr *nest, in ethnl_compact_sanity_checks() argument
536 NL_SET_ERR_MSG_ATTR(extack, nest, in ethnl_compact_sanity_checks()
541 NL_SET_ERR_MSG_ATTR(extack, nest, in ethnl_compact_sanity_checks()
546 NL_SET_ERR_MSG_ATTR(extack, nest, in ethnl_compact_sanity_checks()
/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/tools/testing/selftests/net/mptcp/
H A Dpm_nl_ctl.c776 struct rtattr *rta, *nest; in add_addr() local
794 nest = (void *)(data + off); in add_addr()
795 nest->rta_type = NLA_F_NESTED | MPTCP_PM_ATTR_ADDR; in add_addr()
796 nest->rta_len = RTA_LENGTH(0); in add_addr()
797 off += NLMSG_ALIGN(nest->rta_len); in add_addr()
900 nest->rta_len = off - nest_start; in add_addr()
911 struct rtattr *rta, *nest; in del_addr() local
933 nest = (void *)(data + off); in del_addr()
934 nest->rta_type = NLA_F_NESTED | MPTCP_PM_ATTR_ADDR; in del_addr()
935 nest->rta_len = RTA_LENGTH(0); in del_addr()
[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()
380 unsigned int nest; in perf_aux_output_begin() local
411 nest = READ_ONCE(rb->aux_nest); in perf_aux_output_begin()
416 if (WARN_ON_ONCE(nest)) in perf_aux_output_begin()
[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/net/sched/
H A Dact_api.c511 struct nlattr *nest; in tcf_action_dump_1() local
537 nest = nla_nest_start_noflag(skb, TCA_ACT_OPTIONS); in tcf_action_dump_1()
538 if (nest == NULL) in tcf_action_dump_1()
542 nla_nest_end(skb, nest); in tcf_action_dump_1()
557 struct nlattr *nest; in tcf_dump_walker() local
581 nest = nla_nest_start_noflag(skb, n_i); in tcf_dump_walker()
582 if (!nest) { in tcf_dump_walker()
591 nlmsg_trim(skb, nest); in tcf_dump_walker()
594 nla_nest_end(skb, nest); in tcf_dump_walker()
612 nla_nest_cancel(skb, nest); in tcf_dump_walker()
[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.c313 struct nlattr *nest; in ets_class_dump() local
319 nest = nla_nest_start_noflag(skb, TCA_OPTIONS); in ets_class_dump()
320 if (!nest) in ets_class_dump()
326 return nla_nest_end(skb, nest); in ets_class_dump()
329 nla_nest_cancel(skb, nest); in ets_class_dump()
749 struct nlattr *nest; in ets_qdisc_dump() local
772 nest = nla_nest_start(skb, TCA_ETS_QUANTA); in ets_qdisc_dump()
773 if (!nest) in ets_qdisc_dump()
782 nla_nest_end(skb, nest); in ets_qdisc_dump()
785 nest = nla_nest_start(skb, TCA_ETS_PRIOMAP); in ets_qdisc_dump()
[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...]
H A Dcls_basic.c274 struct nlattr *nest; in basic_dump() local
282 nest = nla_nest_start_noflag(skb, TCA_OPTIONS); in basic_dump()
283 if (nest == NULL) in basic_dump()
306 nla_nest_end(skb, nest); in basic_dump()
314 nla_nest_cancel(skb, nest); in basic_dump()
H A Dsch_ingress.c137 struct nlattr *nest; in ingress_dump() local
139 nest = nla_nest_start_noflag(skb, TCA_OPTIONS); in ingress_dump()
140 if (nest == NULL) in ingress_dump()
143 return nla_nest_end(skb, nest); in ingress_dump()
146 nla_nest_cancel(skb, nest); in ingress_dump()
/linux/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/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()
H A Dlwtunnel.c233 struct nlattr *nest; in lwtunnel_fill_encap() local
243 nest = nla_nest_start_noflag(skb, encap_attr); in lwtunnel_fill_encap()
244 if (!nest) in lwtunnel_fill_encap()
256 nla_nest_end(skb, nest); in lwtunnel_fill_encap()
264 nla_nest_cancel(skb, nest); in lwtunnel_fill_encap()
/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()
374 struct nlattr *nest; in br_vlan_global_opts_fill() local
376 nest = nla_nest_start(skb, BRIDGE_VLANDB_GLOBAL_OPTIONS); in br_vlan_global_opts_fill()
377 if (!nest) in br_vlan_global_opts_fill()
454 nla_nest_end(skb, nest); in br_vlan_global_opts_fill()
459 nla_nest_cancel(skb, nest); in br_vlan_global_opts_fill()
/linux/drivers/net/can/dev/
H A Dnetlink.c872 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()
943 if (!nest) in can_pwm_fill_info()
961 nla_nest_end(skb, nest); in can_pwm_fill_info()
965 nla_nest_cancel(skb, nest); in can_pwm_fill_info()
[all …]
/linux/lib/
H A Drhashtable.c57 if (unlikely(tbl->nest)) in lockdep_rht_bucket_is_held()
96 unsigned int size = tbl->size >> tbl->nest; in nested_bucket_table_free()
97 unsigned int len = 1 << tbl->nest; in nested_bucket_table_free()
111 if (tbl->nest) in bucket_table_free()
119 if (tbl->nest) in bucket_table_free_atomic()
180 tbl->nest = (ilog2(nbuckets) - 1) % shift + 1; in nested_bucket_table_alloc()
248 if (new_tbl->nest) in rhashtable_rehash_one()
440 else if (tbl->nest) in rht_deferred_worker()
1238 unsigned int index = hash & ((1 << tbl->nest) - 1); in __rht_bucket_nested()
1239 unsigned int size = tbl->size >> tbl->nest; in __rht_bucket_nested()
[all …]
/linux/net/psp/
H A Dpsp_nl.c360 struct nlattr *nest = info->attrs[attr]; in psp_nl_parse_key() local
365 err = nla_parse_nested(tb, ARRAY_SIZE(tb) - 1, nest, in psp_nl_parse_key()
370 if (NL_REQ_ATTR_CHECK(info->extack, nest, tb, PSP_A_KEYS_KEY) || in psp_nl_parse_key()
371 NL_REQ_ATTR_CHECK(info->extack, nest, tb, PSP_A_KEYS_SPI)) in psp_nl_parse_key()
398 void *nest; in psp_nl_put_key() local
400 nest = nla_nest_start(skb, attr); in psp_nl_put_key()
404 nla_nest_cancel(skb, nest); in psp_nl_put_key()
408 nla_nest_end(skb, nest); in psp_nl_put_key()
/linux/drivers/dpll/
H A Ddpll_netlink.c461 struct nlattr *nest; in dpll_msg_add_pin_freq() local
475 nest = nla_nest_start(msg, DPLL_A_PIN_FREQUENCY_SUPPORTED); in dpll_msg_add_pin_freq()
476 if (!nest) in dpll_msg_add_pin_freq()
481 nla_nest_cancel(msg, nest); in dpll_msg_add_pin_freq()
487 nla_nest_cancel(msg, nest); in dpll_msg_add_pin_freq()
490 nla_nest_end(msg, nest); in dpll_msg_add_pin_freq()
503 struct nlattr *nest; in dpll_msg_add_pin_esync() local
520 nest = nla_nest_start(msg, in dpll_msg_add_pin_esync()
522 if (!nest) in dpll_msg_add_pin_esync()
532 nla_nest_end(msg, nest); in dpll_msg_add_pin_esync()
[all …]
/linux/tools/testing/selftests/bpf/
H A Dnetlink_helpers.c348 struct rtattr *nest = NLMSG_TAIL(n); in addattr_nest() local
351 return nest; in addattr_nest()
354 int addattr_nest_end(struct nlmsghdr *n, struct rtattr *nest) in addattr_nest_end() argument
356 nest->rta_len = (void *)NLMSG_TAIL(n) - (void *)nest; in addattr_nest_end()

12345