Home
last modified time | relevance | path

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

123

/net/ethtool/
Dcabletest.c130 phydev->nest = nla_nest_start(phydev->skb, in ethnl_cable_test_alloc()
132 if (!phydev->nest) { in ethnl_cable_test_alloc()
155 nla_nest_end(phydev->skb, phydev->nest); in ethnl_cable_test_finished()
165 struct nlattr *nest; in ethnl_cable_test_result() local
168 nest = nla_nest_start(phydev->skb, ETHTOOL_A_CABLE_NEST_RESULT); in ethnl_cable_test_result()
169 if (!nest) in ethnl_cable_test_result()
177 nla_nest_end(phydev->skb, nest); in ethnl_cable_test_result()
181 nla_nest_cancel(phydev->skb, nest); in ethnl_cable_test_result()
188 struct nlattr *nest; in ethnl_cable_test_fault_length() local
191 nest = nla_nest_start(phydev->skb, in ethnl_cable_test_fault_length()
[all …]
Dstats.c184 struct nlattr *nest; in stat_put() local
202 nest = nla_nest_start(skb, ETHTOOL_A_STATS_GRP_STAT); in stat_put()
203 if (!nest) in stat_put()
208 nla_nest_cancel(skb, nest); in stat_put()
212 nla_nest_end(skb, nest); in stat_put()
292 struct nlattr *nest; in stats_put_rmon_hist() local
304 nest = nla_nest_start(skb, attr); in stats_put_rmon_hist()
305 if (!nest) in stats_put_rmon_hist()
316 nla_nest_end(skb, nest); in stats_put_rmon_hist()
322 nla_nest_cancel(skb, nest); in stats_put_rmon_hist()
[all …]
Dstrset.c160 static int strset_get_id(const struct nlattr *nest, u32 *val, in strset_get_id() argument
166 ret = nla_parse_nested(tb, ARRAY_SIZE(get_stringset_policy) - 1, nest, 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 …]
Dpause.c78 struct nlattr *nest; in pause_put_stats() local
80 nest = nla_nest_start(skb, ETHTOOL_A_PAUSE_STATS); in pause_put_stats()
81 if (!nest) in pause_put_stats()
90 nla_nest_end(skb, nest); in pause_put_stats()
94 nla_nest_cancel(skb, nest); in pause_put_stats()
Dbitset.c236 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()
481 const struct nlattr *nest, in ethnl_compact_sanity_checks() argument
495 NL_SET_ERR_MSG_ATTR(extack, nest, in ethnl_compact_sanity_checks()
500 NL_SET_ERR_MSG_ATTR(extack, nest, in ethnl_compact_sanity_checks()
505 NL_SET_ERR_MSG_ATTR(extack, nest, in ethnl_compact_sanity_checks()
Dfec.c169 struct nlattr *nest; in fec_put_stats() local
171 nest = nla_nest_start(skb, ETHTOOL_A_FEC_STATS); in fec_put_stats()
172 if (!nest) in fec_put_stats()
186 nla_nest_end(skb, nest); in fec_put_stats()
190 nla_nest_cancel(skb, nest); in fec_put_stats()
/net/sched/
Dact_api.c281 struct nlattr *nest; in tcf_dump_walker() local
303 nest = nla_nest_start_noflag(skb, n_i); in tcf_dump_walker()
304 if (!nest) { in tcf_dump_walker()
313 nlmsg_trim(skb, nest); in tcf_dump_walker()
316 nla_nest_end(skb, nest); in tcf_dump_walker()
334 nla_nest_cancel(skb, nest); in tcf_dump_walker()
356 struct nlattr *nest; in tcf_del_walker() local
364 nest = nla_nest_start_noflag(skb, 0); in tcf_del_walker()
365 if (nest == NULL) in tcf_del_walker()
393 nla_nest_end(skb, nest); in tcf_del_walker()
[all …]
Dcls_cgroup.c174 struct nlattr *nest; in cls_cgroup_dump() local
178 nest = nla_nest_start_noflag(skb, TCA_OPTIONS); in cls_cgroup_dump()
179 if (nest == NULL) in cls_cgroup_dump()
186 nla_nest_end(skb, nest); in cls_cgroup_dump()
194 nla_nest_cancel(skb, nest); in cls_cgroup_dump()
Dsch_ets.c302 struct nlattr *nest; in ets_class_dump() local
308 nest = nla_nest_start_noflag(skb, TCA_OPTIONS); in ets_class_dump()
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()
742 struct nlattr *nest; in ets_qdisc_dump() local
763 nest = nla_nest_start(skb, TCA_ETS_QUANTA); in ets_qdisc_dump()
764 if (!nest) in ets_qdisc_dump()
773 nla_nest_end(skb, nest); in ets_qdisc_dump()
776 nest = nla_nest_start(skb, TCA_ETS_PRIOMAP); in ets_qdisc_dump()
[all …]
Dsch_ingress.c116 struct nlattr *nest; in ingress_dump() local
118 nest = nla_nest_start_noflag(skb, TCA_OPTIONS); in ingress_dump()
119 if (nest == NULL) in ingress_dump()
122 return nla_nest_end(skb, nest); in ingress_dump()
125 nla_nest_cancel(skb, nest); in ingress_dump()
Dcls_flower.c2696 struct nlattr *nest; in fl_dump_key_geneve_opt() local
2699 nest = nla_nest_start_noflag(skb, TCA_FLOWER_KEY_ENC_OPTS_GENEVE); in fl_dump_key_geneve_opt()
2700 if (!nest) in fl_dump_key_geneve_opt()
2718 nla_nest_end(skb, nest); in fl_dump_key_geneve_opt()
2722 nla_nest_cancel(skb, nest); in fl_dump_key_geneve_opt()
2730 struct nlattr *nest; in fl_dump_key_vxlan_opt() local
2732 nest = nla_nest_start_noflag(skb, TCA_FLOWER_KEY_ENC_OPTS_VXLAN); in fl_dump_key_vxlan_opt()
2733 if (!nest) in fl_dump_key_vxlan_opt()
2740 nla_nest_end(skb, nest); in fl_dump_key_vxlan_opt()
2744 nla_nest_cancel(skb, nest); in fl_dump_key_vxlan_opt()
[all …]
Dcls_basic.c284 struct nlattr *nest; in basic_dump() local
292 nest = nla_nest_start_noflag(skb, TCA_OPTIONS); in basic_dump()
293 if (nest == NULL) in basic_dump()
316 nla_nest_end(skb, nest); in basic_dump()
324 nla_nest_cancel(skb, nest); in basic_dump()
Dsch_mqprio.c410 struct nlattr *nest; in dump_rates() local
414 nest = nla_nest_start_noflag(skb, TCA_MQPRIO_MIN_RATE64); in dump_rates()
415 if (!nest) in dump_rates()
424 nla_nest_end(skb, nest); in dump_rates()
428 nest = nla_nest_start_noflag(skb, TCA_MQPRIO_MAX_RATE64); in dump_rates()
429 if (!nest) in dump_rates()
438 nla_nest_end(skb, nest); in dump_rates()
443 nla_nest_cancel(skb, nest); in dump_rates()
Dcls_matchall.c351 struct nlattr *nest; in mall_dump() local
362 nest = nla_nest_start_noflag(skb, TCA_OPTIONS); in mall_dump()
363 if (!nest) in mall_dump()
387 nla_nest_end(skb, nest); in mall_dump()
395 nla_nest_cancel(skb, nest); in mall_dump()
Dsch_etf.c467 struct nlattr *nest; in etf_dump() local
469 nest = nla_nest_start_noflag(skb, TCA_OPTIONS); in etf_dump()
470 if (!nest) in etf_dump()
487 return nla_nest_end(skb, nest); in etf_dump()
490 nla_nest_cancel(skb, nest); in etf_dump()
/net/ipv4/
Dip_tunnel_core.c734 struct nlattr *nest; in ip_tun_fill_encap_opts_geneve() local
737 nest = nla_nest_start_noflag(skb, LWTUNNEL_IP_OPTS_GENEVE); in ip_tun_fill_encap_opts_geneve()
738 if (!nest) in ip_tun_fill_encap_opts_geneve()
748 nla_nest_cancel(skb, nest); in ip_tun_fill_encap_opts_geneve()
754 nla_nest_end(skb, nest); in ip_tun_fill_encap_opts_geneve()
762 struct nlattr *nest; in ip_tun_fill_encap_opts_vxlan() local
764 nest = nla_nest_start_noflag(skb, LWTUNNEL_IP_OPTS_VXLAN); in ip_tun_fill_encap_opts_vxlan()
765 if (!nest) in ip_tun_fill_encap_opts_vxlan()
770 nla_nest_cancel(skb, nest); in ip_tun_fill_encap_opts_vxlan()
774 nla_nest_end(skb, nest); in ip_tun_fill_encap_opts_vxlan()
[all …]
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()
/net/netfilter/
Dnft_tunnel.c510 struct nlattr *nest; in nft_tunnel_ip_dump() local
513 nest = nla_nest_start_noflag(skb, NFTA_TUNNEL_KEY_IP6); in nft_tunnel_ip_dump()
514 if (!nest) in nft_tunnel_ip_dump()
523 nla_nest_cancel(skb, nest); in nft_tunnel_ip_dump()
527 nla_nest_end(skb, nest); in nft_tunnel_ip_dump()
529 nest = nla_nest_start_noflag(skb, NFTA_TUNNEL_KEY_IP); in nft_tunnel_ip_dump()
530 if (!nest) in nft_tunnel_ip_dump()
537 nla_nest_cancel(skb, nest); in nft_tunnel_ip_dump()
541 nla_nest_end(skb, nest); in nft_tunnel_ip_dump()
551 struct nlattr *nest, *inner; in nft_tunnel_opts_dump() local
[all …]
Dnfnetlink_hook.c65 struct nlattr *nest, *nest2; in nfnl_hook_put_nft_chain_info() local
79 nest = nla_nest_start(nlskb, NFNLA_HOOK_CHAIN_INFO); in nfnl_hook_put_nft_chain_info()
80 if (!nest) in nfnl_hook_put_nft_chain_info()
105 nla_nest_end(nlskb, nest); in nfnl_hook_put_nft_chain_info()
109 nla_nest_cancel(nlskb, nest); in nfnl_hook_put_nft_chain_info()
/net/bridge/
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 …]
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()
305 struct nlattr *nest; in br_vlan_global_opts_fill() local
307 nest = nla_nest_start(skb, BRIDGE_VLANDB_GLOBAL_OPTIONS); in br_vlan_global_opts_fill()
308 if (!nest) in br_vlan_global_opts_fill()
382 nla_nest_end(skb, nest); in br_vlan_global_opts_fill()
387 nla_nest_cancel(skb, nest); in br_vlan_global_opts_fill()
/net/8021q/
Dvlan_netlink.c224 struct nlattr *nest; in vlan_fill_info() local
237 nest = nla_nest_start_noflag(skb, IFLA_VLAN_INGRESS_QOS); in vlan_fill_info()
238 if (nest == NULL) in vlan_fill_info()
251 nla_nest_end(skb, nest); in vlan_fill_info()
255 nest = nla_nest_start_noflag(skb, IFLA_VLAN_EGRESS_QOS); in vlan_fill_info()
256 if (nest == NULL) in vlan_fill_info()
272 nla_nest_end(skb, nest); in vlan_fill_info()
/net/netlink/
Dgenetlink.c838 struct nlattr *nest; in ctrl_fill_info() local
851 nest = nla_nest_start_noflag(skb, i + 1); in ctrl_fill_info()
852 if (nest == NULL) in ctrl_fill_info()
859 nla_nest_end(skb, nest); in ctrl_fill_info()
874 struct nlattr *nest; in ctrl_fill_info() local
879 nest = nla_nest_start_noflag(skb, i + 1); in ctrl_fill_info()
880 if (nest == NULL) in ctrl_fill_info()
889 nla_nest_end(skb, nest); in ctrl_fill_info()
909 struct nlattr *nest; in ctrl_fill_mcgrp_info() local
923 nest = nla_nest_start_noflag(skb, 1); in ctrl_fill_mcgrp_info()
[all …]
/net/core/
Dlwtunnel.c236 struct nlattr *nest; in lwtunnel_fill_encap() local
246 nest = nla_nest_start_noflag(skb, encap_attr); in lwtunnel_fill_encap()
247 if (!nest) in lwtunnel_fill_encap()
259 nla_nest_end(skb, nest); in lwtunnel_fill_encap()
267 nla_nest_cancel(skb, nest); in lwtunnel_fill_encap()
/net/dcb/
Ddcbnl.c221 struct nlattr *data[DCB_PFC_UP_ATTR_MAX + 1], *nest; in dcbnl_getpfccfg() local
239 nest = nla_nest_start_noflag(skb, DCB_ATTR_PFC_CFG); in dcbnl_getpfccfg()
240 if (!nest) in dcbnl_getpfccfg()
254 nla_nest_cancel(skb, nest); in dcbnl_getpfccfg()
258 nla_nest_end(skb, nest); in dcbnl_getpfccfg()
280 struct nlattr *data[DCB_CAP_ATTR_MAX + 1], *nest; in dcbnl_getcap() local
298 nest = nla_nest_start_noflag(skb, DCB_ATTR_CAP); in dcbnl_getcap()
299 if (!nest) in dcbnl_getcap()
312 nla_nest_cancel(skb, nest); in dcbnl_getcap()
317 nla_nest_end(skb, nest); in dcbnl_getcap()
[all …]

123