Home
last modified time | relevance | path

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

123456789

/linux/net/ethtool/
H A Dcabletest.c133 phydev->nest = nla_nest_start(phydev->skb, in ethnl_cable_test_alloc()
135 if (!phydev->nest) { in ethnl_cable_test_alloc()
158 nla_nest_end(phydev->skb, phydev->nest); in ethnl_cable_test_finished()
169 struct nlattr *nest; in ethnl_cable_test_result_with_src() local
172 nest = nla_nest_start(phydev->skb, ETHTOOL_A_CABLE_NEST_RESULT); in ethnl_cable_test_result_with_src()
173 if (!nest) in ethnl_cable_test_result_with_src()
185 nla_nest_end(phydev->skb, nest); in ethnl_cable_test_result_with_src()
189 nla_nest_cancel(phydev->skb, nest); in ethnl_cable_test_result_with_src()
197 struct nlattr *nest; in ethnl_cable_test_fault_length_with_src() local
200 nest = nla_nest_start(phydev->skb, in ethnl_cable_test_fault_length_with_src()
[all …]
H A Dtsinfo.c40 int ts_parse_hwtst_provider(const struct nlattr *nest, in ts_parse_hwtst_provider() argument
50 nest, in ts_parse_hwtst_provider()
55 if (NL_REQ_ATTR_CHECK(extack, nest, tb, in ts_parse_hwtst_provider()
57 NL_REQ_ATTR_CHECK(extack, nest, tb, in ts_parse_hwtst_provider()
181 struct nlattr *nest; in tsinfo_put_stats() local
183 nest = nla_nest_start(skb, ETHTOOL_A_TSINFO_STATS); in tsinfo_put_stats()
184 if (!nest) in tsinfo_put_stats()
197 nla_nest_end(skb, nest); in tsinfo_put_stats()
201 nla_nest_cancel(skb, nest); in tsinfo_put_stats()
239 struct nlattr *nest; in tsinfo_fill_reply() local
[all …]
H A Dstrset.c170 static int strset_get_id(const struct nlattr *nest, u32 *val, in strset_get_id() argument
176 ret = nla_parse_nested(tb, ARRAY_SIZE(get_stringset_policy) - 1, nest, in strset_get_id()
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()
342 /* calculate size of ETHTOOL_A_STRSET_STRINGSET nest for one string set */
356 /* ETHTOOL_A_STRING_INDEX, ETHTOOL_A_STRING_VALUE, nest */ in strset_set_size()
461 struct nlattr *nest; in strset_fill_reply() local
[all …]
H A Dstats.c242 struct nlattr *nest; in stat_put() local
250 * of ETHTOOL_A_STATS_GRP_STAT. Since we're one nest away from the in stat_put()
260 nest = nla_nest_start(skb, ETHTOOL_A_STATS_GRP_STAT); in stat_put()
261 if (!nest) in stat_put()
266 nla_nest_cancel(skb, nest); in stat_put()
270 nla_nest_end(skb, nest); in stat_put()
369 struct nlattr *nest; in stats_put_rmon_hist() local
381 nest = nla_nest_start(skb, attr); in stats_put_rmon_hist()
382 if (!nest) in stats_put_rmon_hist()
393 nla_nest_end(skb, nest); in stats_put_rmon_hist()
[all …]
H A Dbitset.c205 /* bit nest */ in ethnl_bitset32_size()
208 /* bits nest */ in ethnl_bitset32_size()
212 /* outermost nest */ in ethnl_bitset32_size()
217 * ethnl_put_bitset32() - Put a bitset nest into a message
219 * @attrtype: attribute type for the bitset nest
236 struct nlattr *nest; in ethnl_put_bitset32() local
239 nest = nla_nest_start(skb, attrtype); in ethnl_put_bitset32()
240 if (!nest) in ethnl_put_bitset32()
297 nla_nest_end(skb, nest); in ethnl_put_bitset32()
301 nla_nest_cancel(skb, nest); in ethnl_put_bitset32()
[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/Documentation/netlink/specs/
H A Dethtool.yaml150 type: nest
169 type: nest
205 type: nest
224 type: nest
237 type: nest
250 type: nest
254 type: nest
270 type: nest
274 type: nest
287 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.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 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 …]
H A Dteam.yaml53 type: nest
57 type: nest
71 type: nest
119 type: nest
H A Dnlctrl.yaml69 sub-type: nest
74 sub-type: nest
78 type: nest-type-value
83 type: nest-type-value
/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/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()
118 struct nlattr *nest, *nest2; in nfnl_hook_put_nft_chain_info() local
[all …]
H A Dnft_tunnel.c543 struct nlattr *nest; in nft_tunnel_ip_dump() local
546 nest = nla_nest_start_noflag(skb, NFTA_TUNNEL_KEY_IP6); in nft_tunnel_ip_dump()
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()
562 nest = nla_nest_start_noflag(skb, NFTA_TUNNEL_KEY_IP); 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
[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/ipv4/
H A Dip_tunnel_core.c741 struct nlattr *nest; in ip_tun_fill_encap_opts_geneve() local
744 nest = nla_nest_start_noflag(skb, LWTUNNEL_IP_OPTS_GENEVE); in ip_tun_fill_encap_opts_geneve()
745 if (!nest) in ip_tun_fill_encap_opts_geneve()
755 nla_nest_cancel(skb, 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
771 nest = nla_nest_start_noflag(skb, LWTUNNEL_IP_OPTS_VXLAN); in ip_tun_fill_encap_opts_vxlan()
772 if (!nest) in ip_tun_fill_encap_opts_vxlan()
777 nla_nest_cancel(skb, nest); in ip_tun_fill_encap_opts_vxlan()
781 nla_nest_end(skb, nest); in ip_tun_fill_encap_opts_vxlan()
[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.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/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()
779 nest->rta_type = NLA_F_NESTED | MPTCP_PM_ATTR_ADDR; in add_addr()
780 nest->rta_len = RTA_LENGTH(0); in add_addr()
781 off += NLMSG_ALIGN(nest->rta_len); in add_addr()
880 nest->rta_len = off - nest_start; in add_addr()
891 struct rtattr *rta, *nest; in del_addr() local
913 nest = (void *)(data + off); in del_addr()
914 nest->rta_type = NLA_F_NESTED | MPTCP_PM_ATTR_ADDR; in del_addr()
915 nest->rta_len = RTA_LENGTH(0); in del_addr()
[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()
178 struct nlattr *nest, *nest_ent; in __mdb_fill_srcs() local
183 nest = nla_nest_start(skb, MDBA_MDB_EATTR_SRC_LIST); in __mdb_fill_srcs()
184 if (!nest) in __mdb_fill_srcs()
221 nla_nest_end(skb, nest); in __mdb_fill_srcs()
226 nla_nest_cancel(skb, nest); in __mdb_fill_srcs()
[all …]
/linux/drivers/net/can/dev/
H A Dnetlink.c400 size = nla_total_size(0); /* nest IFLA_CAN_TDC */ in can_tdc_get_size()
426 return nla_total_size(0) + /* nest IFLA_CAN_CTRLMODE_EXT */ in can_ctrlmode_ext_get_size()
469 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()
[all …]
/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 Dsch_ets.c304 struct nlattr *nest; in ets_class_dump() local
310 nest = nla_nest_start_noflag(skb, TCA_OPTIONS); in ets_class_dump()
311 if (!nest) in ets_class_dump()
317 return nla_nest_end(skb, nest); in ets_class_dump()
320 nla_nest_cancel(skb, nest); in ets_class_dump()
737 struct nlattr *nest; in ets_qdisc_dump() local
760 nest = nla_nest_start(skb, TCA_ETS_QUANTA); in ets_qdisc_dump()
761 if (!nest) in ets_qdisc_dump()
770 nla_nest_end(skb, nest); in ets_qdisc_dump()
773 nest = nla_nest_start(skb, TCA_ETS_PRIOMAP); in ets_qdisc_dump()
[all …]

123456789