Home
last modified time | relevance | path

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

12345

/linux/net/netfilter/
H A Dnfnetlink_hook.c63 struct nlattr *nest = nla_nest_start(nlskb, NFNLA_HOOK_CHAIN_INFO); in nfnl_start_info_type() local
66 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
91 nest = nfnl_start_info_type(nlskb, NFNL_HOOK_TYPE_BPF); in nfnl_hook_put_bpf_prog_info()
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()
115 struct nlattr *nest; in nfnl_hook_put_nft_info_desc() local
[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 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/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/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/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, in perf_output_put_handle()
380 unsigned int nest; perf_aux_output_begin() local
[all...]
/linux/net/ipv4/
H A Dip_tunnel_core.c782 struct nlattr *nest; in ip_tun_fill_encap_opts_geneve() local
785 nest = nla_nest_start_noflag(skb, LWTUNNEL_IP_OPTS_GENEVE); in ip_tun_fill_encap_opts_geneve()
786 if (!nest) in ip_tun_fill_encap_opts_geneve()
796 nla_nest_cancel(skb, nest); in ip_tun_fill_encap_opts_geneve()
802 nla_nest_end(skb, nest); in ip_tun_fill_encap_opts_geneve()
810 struct nlattr *nest; in ip_tun_fill_encap_opts_vxlan() local
812 nest = nla_nest_start_noflag(skb, LWTUNNEL_IP_OPTS_VXLAN); in ip_tun_fill_encap_opts_vxlan()
813 if (!nest) in ip_tun_fill_encap_opts_vxlan()
818 nla_nest_cancel(skb, nest); in ip_tun_fill_encap_opts_vxlan()
822 nla_nest_end(skb, nest); in ip_tun_fill_encap_opts_vxlan()
[all …]
/linux/net/sched/
H A Dact_api.c521 struct nlattr *nest; in tcf_action_dump_1() local
547 nest = nla_nest_start_noflag(skb, TCA_ACT_OPTIONS); in tcf_action_dump_1()
548 if (nest == NULL) in tcf_action_dump_1()
552 nla_nest_end(skb, nest); in tcf_action_dump_1()
567 struct nlattr *nest; in tcf_dump_walker() local
591 nest = nla_nest_start_noflag(skb, n_i); in tcf_dump_walker()
592 if (!nest) { in tcf_dump_walker()
601 nlmsg_trim(skb, nest); in tcf_dump_walker()
604 nla_nest_end(skb, nest); in tcf_dump_walker()
622 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.c307 struct nlattr *nest; in ets_class_dump() local
313 nest = nla_nest_start_noflag(skb, TCA_OPTIONS); in ets_class_dump()
314 if (!nest) in ets_class_dump()
320 return nla_nest_end(skb, nest); in ets_class_dump()
323 nla_nest_cancel(skb, nest); in ets_class_dump()
745 struct nlattr *nest; in ets_qdisc_dump() local
768 nest = nla_nest_start(skb, TCA_ETS_QUANTA); in ets_qdisc_dump()
769 if (!nest) in ets_qdisc_dump()
778 nla_nest_end(skb, nest); in ets_qdisc_dump()
781 nest = nla_nest_start(skb, TCA_ETS_PRIOMAP); in ets_qdisc_dump()
[all …]
H A Dcls_flower.c3167 struct nlattr *nest; in fl_dump_key_geneve_opt() local
3170 nest = nla_nest_start_noflag(skb, TCA_FLOWER_KEY_ENC_OPTS_GENEVE); in fl_dump_key_geneve_opt()
3171 if (!nest) in fl_dump_key_geneve_opt()
3189 nla_nest_end(skb, nest); in fl_dump_key_geneve_opt()
3193 nla_nest_cancel(skb, nest); in fl_dump_key_geneve_opt()
3201 struct nlattr *nest; in fl_dump_key_vxlan_opt() local
3203 nest = nla_nest_start_noflag(skb, TCA_FLOWER_KEY_ENC_OPTS_VXLAN); in fl_dump_key_vxlan_opt()
3204 if (!nest) in fl_dump_key_vxlan_opt()
3211 nla_nest_end(skb, nest); in fl_dump_key_vxlan_opt()
3215 nla_nest_cancel(skb, nest); in fl_dump_key_vxlan_opt()
[all …]
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()
H A Dcls_basic.c276 struct nlattr *nest; in basic_dump() local
284 nest = nla_nest_start_noflag(skb, TCA_OPTIONS); in basic_dump()
285 if (nest == NULL) in basic_dump()
308 nla_nest_end(skb, nest); in basic_dump()
316 nla_nest_cancel(skb, nest); in basic_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/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()
393 struct nlattr *nest; in br_vlan_global_opts_fill() local
395 nest = nla_nest_start(skb, BRIDGE_VLANDB_GLOBAL_OPTIONS); in br_vlan_global_opts_fill()
396 if (!nest) in br_vlan_global_opts_fill()
473 nla_nest_end(skb, nest); in br_vlan_global_opts_fill()
478 nla_nest_cancel(skb, nest); in br_vlan_global_opts_fill()
H A Dbr_mst.c277 struct nlattr *nest; in br_mst_fill_info() local
284 nest = nla_nest_start_noflag(skb, IFLA_BRIDGE_MST_ENTRY); in br_mst_fill_info()
285 if (!nest || in br_mst_fill_info()
291 nla_nest_end(skb, nest); in br_mst_fill_info()
/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/net/psp/
H A Dpsp_nl.c248 struct nlattr *nest; in psp_nl_fill_assoc_dev_list() local
265 nest = nla_nest_start(rsp, PSP_A_DEV_ASSOC_LIST); in psp_nl_fill_assoc_dev_list()
266 if (!nest) in psp_nl_fill_assoc_dev_list()
272 nla_nest_cancel(rsp, nest); in psp_nl_fill_assoc_dev_list()
276 nla_nest_end(rsp, nest); in psp_nl_fill_assoc_dev_list()
717 struct nlattr *nest = info->attrs[attr]; in psp_nl_parse_key() local
722 err = nla_parse_nested(tb, ARRAY_SIZE(tb) - 1, nest, in psp_nl_parse_key()
727 if (NL_REQ_ATTR_CHECK(info->extack, nest, tb, PSP_A_KEYS_KEY) || in psp_nl_parse_key()
728 NL_REQ_ATTR_CHECK(info->extack, nest, tb, PSP_A_KEYS_SPI)) in psp_nl_parse_key()
755 void *nest; in psp_nl_put_key() local
[all …]
/linux/lib/
H A Drhashtable.c59 if (unlikely(tbl->nest)) in lockdep_rht_bucket_is_held()
98 unsigned int size = tbl->size >> tbl->nest; in nested_bucket_table_free()
99 unsigned int len = 1 << tbl->nest; in nested_bucket_table_free()
113 if (tbl->nest) in bucket_table_free()
121 if (tbl->nest) in bucket_table_free_atomic()
182 tbl->nest = (ilog2(nbuckets) - 1) % shift + 1; in nested_bucket_table_alloc()
250 if (new_tbl->nest) in rhashtable_rehash_one()
442 else if (tbl->nest) in rht_deferred_worker()
1346 unsigned int index = hash & ((1 << tbl->nest) - 1); in __rht_bucket_nested()
1347 unsigned int size = tbl->size >> tbl->nest; in __rht_bucket_nested()
[all …]
/linux/drivers/dpll/
H A Ddpll_netlink.c487 struct nlattr *nest; in dpll_msg_add_pin_freq() local
501 nest = nla_nest_start(msg, DPLL_A_PIN_FREQUENCY_SUPPORTED); in dpll_msg_add_pin_freq()
502 if (!nest) in dpll_msg_add_pin_freq()
507 nla_nest_cancel(msg, nest); in dpll_msg_add_pin_freq()
513 nla_nest_cancel(msg, nest); in dpll_msg_add_pin_freq()
516 nla_nest_end(msg, nest); in dpll_msg_add_pin_freq()
529 struct nlattr *nest; in dpll_msg_add_pin_esync() local
546 nest = nla_nest_start(msg, in dpll_msg_add_pin_esync()
548 if (!nest) in dpll_msg_add_pin_esync()
558 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()
/linux/net/core/
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/drivers/net/vxlan/
H A Dvxlan_mdb.c130 struct nlattr *nest; in vxlan_mdb_entry_info_fill_srcs() local
135 nest = nla_nest_start(skb, MDBA_MDB_EATTR_SRC_LIST); in vxlan_mdb_entry_info_fill_srcs()
136 if (!nest) in vxlan_mdb_entry_info_fill_srcs()
154 nla_nest_end(skb, nest); in vxlan_mdb_entry_info_fill_srcs()
159 nla_nest_cancel(skb, nest); in vxlan_mdb_entry_info_fill_srcs()
170 struct nlattr *nest; in vxlan_mdb_entry_info_fill() local
172 nest = nla_nest_start_noflag(skb, MDBA_MDB_ENTRY_INFO); in vxlan_mdb_entry_info_fill()
173 if (!nest) in vxlan_mdb_entry_info_fill()
210 nla_nest_end(skb, nest); in vxlan_mdb_entry_info_fill()
215 nla_nest_cancel(skb, nest); in vxlan_mdb_entry_info_fill()
[all …]

12345