| /linux/net/ethtool/ |
| H A D | cabletest.c | 136 phydev->nest = nla_nest_start(phydev->skb, in ethnl_cable_test_alloc() 138 if (!phydev->nest) { in ethnl_cable_test_alloc() 161 nla_nest_end(phydev->skb, phydev->nest); in ethnl_cable_test_finished() 172 struct nlattr *nest; in ethnl_cable_test_result_with_src() local 175 nest = nla_nest_start(phydev->skb, ETHTOOL_A_CABLE_NEST_RESULT); in ethnl_cable_test_result_with_src() 176 if (!nest) in ethnl_cable_test_result_with_src() 188 nla_nest_end(phydev->skb, nest); in ethnl_cable_test_result_with_src() 192 nla_nest_cancel(phydev->skb, nest); in ethnl_cable_test_result_with_src() 200 struct nlattr *nest; in ethnl_cable_test_fault_length_with_src() local 203 nest = nla_nest_start(phydev->skb, in ethnl_cable_test_fault_length_with_src() [all …]
|
| H A D | strset.c | 170 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 D | tsinfo.c | 41 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() 188 struct nlattr *nest; in tsinfo_put_stats() local 190 nest = nla_nest_start(skb, ETHTOOL_A_TSINFO_STATS); in tsinfo_put_stats() 191 if (!nest) in tsinfo_put_stats() 204 nla_nest_end(skb, nest); in tsinfo_put_stats() 208 nla_nest_cancel(skb, nest); in tsinfo_put_stats() 246 struct nlattr *nest; in tsinfo_fill_reply() local [all …]
|
| H A D | stats.c | 242 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 D | mse.c | 195 /* Per-channel nest (e.g., ETHTOOL_A_MSE_CHANNEL_A / _B / _C / in mse_reply_size() 238 struct nlattr *nest; in mse_fill_reply() local 242 nest = nla_nest_start(skb, ETHTOOL_A_MSE_CAPABILITIES); in mse_fill_reply() 243 if (!nest) in mse_fill_reply() 272 nla_nest_end(skb, nest); in mse_fill_reply() 282 nest = nla_nest_start(skb, chan_attr); in mse_fill_reply() 283 if (!nest) in mse_fill_reply() 307 nla_nest_end(skb, nest); in mse_fill_reply() 313 nla_nest_cancel(skb, nest); in mse_fill_reply()
|
| H A D | bitset.c | 205 /* 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 D | pause.c | 121 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()
|
| H A D | coalesce.c | 86 int modersz = nla_total_size(0) + /* _PROFILE_IRQ_MODERATION, nest */ in coalesce_reply_size() 91 int total_modersz = nla_total_size(0) + /* _{R,T}X_PROFILE, nest */ in coalesce_reply_size() 141 * coalesce_put_profile - fill reply with a nla nest with four child nla nests. 143 * @attr_type: nest attr type ETHTOOL_A_COALESCE_*X_PROFILE 147 * Put a dim profile nest attribute. Refer to ETHTOOL_A_PROFILE_IRQ_MODERATION. 418 * ethnl_update_profile - get a profile nest with child nests from userspace. 421 * @nests: nest attr ETHTOOL_A_COALESCE_*X_PROFILE to set profile. 450 struct nlattr *nest; in ethnl_update_profile() local 464 nla_for_each_nested_type(nest, ETHTOOL_A_PROFILE_IRQ_MODERATION, in ethnl_update_profile() 466 ret = nla_parse_nested(tb, len_irq_moder - 1, nest, in ethnl_update_profile()
|
| /linux/include/uapi/linux/ |
| H A D | tipc_netlink.h | 77 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 D | smc.h | 70 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 D | nfnetlink_hook.c | 63 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 …]
|
| H A D | nft_tunnel.c | 543 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, *inne in nft_tunnel_opts_dump() local [all...] |
| /linux/tools/testing/selftests/net/netfilter/ |
| H A D | conntrack_dump_flush.c | 24 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/drivers/crypto/nx/ |
| H A D | Kconfig | 10 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/8021q/ |
| H A D | vlan_netlink.c | 227 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/net/sched/ |
| H A D | act_api.c | 511 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 D | cls_cgroup.c | 176 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 D | sch_ets.c | 313 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 …]
|
| /linux/net/ipv4/ |
| H A D | ip_tunnel_core.c | 764 struct nlattr *nest; in ip_tun_fill_encap_opts_geneve() local 767 nest = nla_nest_start_noflag(skb, LWTUNNEL_IP_OPTS_GENEVE); in ip_tun_fill_encap_opts_geneve() 768 if (!nest) in ip_tun_fill_encap_opts_geneve() 778 nla_nest_cancel(skb, nest); in ip_tun_fill_encap_opts_geneve() 784 nla_nest_end(skb, nest); in ip_tun_fill_encap_opts_geneve() 792 struct nlattr *nest; in ip_tun_fill_encap_opts_vxlan() local 794 nest = nla_nest_start_noflag(skb, LWTUNNEL_IP_OPTS_VXLAN); in ip_tun_fill_encap_opts_vxlan() 795 if (!nest) in ip_tun_fill_encap_opts_vxlan() 800 nla_nest_cancel(skb, nest); in ip_tun_fill_encap_opts_vxlan() 804 nla_nest_end(skb, nest); in ip_tun_fill_encap_opts_vxlan() [all …]
|
| /linux/kernel/events/ |
| H A D | ring_buffer.c | 50 (*(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, 0); in perf_output_put_handle() 125 * Ensure we decrement @rb->nest before we validate the @rb->head. in perf_output_put_handle() 130 WRITE_ONCE(rb->nest, 1); in perf_output_put_handle() [all …]
|
| /linux/tools/testing/selftests/net/mptcp/ |
| H A D | pm_nl_ctl.c | 776 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/net/core/ |
| H A D | page_pool_user.c | 119 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/net/bridge/ |
| H A D | br_mdb.c | 76 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 …]
|
| /linux/drivers/net/can/dev/ |
| H A D | netlink.c | 730 size = nla_total_size(0); /* nest IFLA_CAN_TDC */ in can_tdc_get_size() 772 return nla_total_size(0) + /* nest IFLA_CAN_CTRLMODE_EXT */ in can_ctrlmode_ext_get_size() 784 size = nla_total_size(0); /* nest IFLA_CAN_PWM */ in can_pwm_get_size() 870 struct nlattr *nest; in can_tdc_fill_info() local 888 nest = nla_nest_start(skb, ifla_can_tdc); in can_tdc_fill_info() 889 if (!nest) in can_tdc_fill_info() 923 nla_nest_end(skb, nest); in can_tdc_fill_info() 927 nla_nest_cancel(skb, nest); in can_tdc_fill_info() 935 struct nlattr *nest; in can_pwm_fill_info() local 940 nest = nla_nest_start(skb, IFLA_CAN_XL_PWM); in can_pwm_fill_info() [all …]
|
| /linux/Documentation/netlink/specs/ |
| H A D | nlctrl.yaml | 69 sub-type: nest 74 sub-type: nest 78 type: nest-type-value 83 type: nest-type-value
|