/openbmc/linux/include/net/ |
H A D | gen_stats.h | 29 struct nlattr * tail; 74 bool running, struct nlattr *opt); 80 bool running, struct nlattr *opt);
|
H A D | rtnh.h | 24 static inline struct nlattr *rtnh_attrs(const struct rtnexthop *rtnh) in rtnh_attrs() 26 return (struct nlattr *) ((char *) rtnh + NLA_ALIGN(sizeof(*rtnh))); in rtnh_attrs()
|
/openbmc/linux/drivers/net/can/dev/ |
H A D | netlink.c | 52 static int can_validate(struct nlattr *tb[], struct nlattr *data[], in can_validate() 87 struct nlattr *tb_tdc[IFLA_CAN_TDC_MAX + 1]; in can_validate() 139 static int can_tdc_changelink(struct can_priv *priv, const struct nlattr *nla, in can_tdc_changelink() 142 struct nlattr *tb_tdc[IFLA_CAN_TDC_MAX + 1]; in can_tdc_changelink() 187 static int can_changelink(struct net_device *dev, struct nlattr *tb[], in can_changelink() 188 struct nlattr *data[], in can_changelink() 469 struct nlattr *nest; in can_tdc_fill_info() 523 struct nlattr *nest; in can_ctrlmode_ext_fill_info() 628 struct nlattr *tb[], struct nlattr *data[], in can_newlink()
|
/openbmc/linux/net/netfilter/ipset/ |
H A D | ip_set_core.c | 270 flag_nested(const struct nlattr *nla) in flag_nested() 332 ip_set_comment_uget(struct nlattr *tb) in ip_set_comment_uget() 1045 const struct nlattr * const attr[]) in ip_set_create() 1302 const struct nlattr * const attr[]) in ip_set_flush() 1340 const struct nlattr * const attr[]) in ip_set_rename() 1491 const struct nlattr *attr; in dump_attrs() 1765 struct nlattr *cmdattr; in call_ad() 1810 const struct nlattr *nla; in ip_set_ad() 1871 const struct nlattr * const attr[]) in ip_set_utest() 1906 const struct nlattr * const attr[]) in ip_set_header() [all …]
|
/openbmc/linux/include/net/netfilter/ |
H A D | nf_conntrack_l4proto.h | 34 int (*to_nlattr)(struct sk_buff *skb, struct nlattr *nla, 38 int (*from_nlattr)(struct nlattr *tb[], struct nf_conn *ct); 44 int (*nlattr_to_tuple)(struct nlattr *tb[], 50 int (*nlattr_to_obj)(struct nlattr *tb[], 155 int nf_ct_port_nlattr_to_tuple(struct nlattr *tb[],
|
H A D | nf_tables.h | 216 const struct nlattr * const *nla; 258 const struct nlattr *attr, u8 *dreg, 487 const struct nlattr * const nla[]); 620 const struct nlattr *nla_set_name, 621 const struct nlattr *nla_set_id, 829 const struct nlattr *attr); 859 const struct nlattr * const tb[]); 910 const struct nlattr * const tb[]); 1312 const struct nlattr *nla, u32 objtype, 1359 const struct nlattr *const tb[], [all …]
|
/openbmc/linux/net/sched/ |
H A D | sch_mqprio.c | 170 struct nlattr *opt, in mqprio_parse_tc_entry() 174 struct nlattr *tb[TCA_MQPRIO_TC_ENTRY_MAX + 1]; in mqprio_parse_tc_entry() 211 struct nlattr *n; in mqprio_parse_tc_entries() 245 struct nlattr *opt, in mqprio_parse_nlattr() 248 struct nlattr *nlattr_opt = nla_data(opt) + NLA_ALIGN(sizeof(*qopt)); in mqprio_parse_nlattr() 251 struct nlattr *tb[TCA_MQPRIO_MAX + 1] = {}; in mqprio_parse_nlattr() 252 struct nlattr *attr; in mqprio_parse_nlattr() 347 static int mqprio_init(struct Qdisc *sch, struct nlattr *opt, in mqprio_init() 491 struct nlattr *nest; in dump_rates() 531 struct nlattr *n; in mqprio_dump_tc_entries() [all …]
|
H A D | sch_ets.c | 198 struct nlattr **tca, unsigned long *arg, in ets_class_change() 203 struct nlattr *opt = tca[TCA_OPTIONS]; in ets_class_change() 204 struct nlattr *tb[TCA_ETS_MAX + 1]; in ets_class_change() 302 struct nlattr *nest; in ets_class_dump() 500 static int ets_qdisc_priomap_parse(struct nlattr *priomap_attr, in ets_qdisc_priomap_parse() 504 const struct nlattr *attr; in ets_qdisc_priomap_parse() 544 const struct nlattr *attr; in ets_qdisc_quanta_parse() 582 struct nlattr *tb[TCA_ETS_MAX + 1]; in ets_qdisc_change() 687 static int ets_qdisc_init(struct Qdisc *sch, struct nlattr *opt, in ets_qdisc_init() 734 struct nlattr *opts; in ets_qdisc_dump() [all …]
|
H A D | act_simple.c | 52 static int alloc_defdata(struct tcf_defact *d, const struct nlattr *defdata) in alloc_defdata() 61 static int reset_policy(struct tc_action *a, const struct nlattr *defdata, in reset_policy() 88 static int tcf_simp_init(struct net *net, struct nlattr *nla, in tcf_simp_init() 89 struct nlattr *est, struct tc_action **a, in tcf_simp_init() 95 struct nlattr *tb[TCA_DEF_MAX + 1]; in tcf_simp_init()
|
H A D | act_bpf.c | 102 struct nlattr *nla; in tcf_bpf_dump_bpf_info() 120 struct nlattr *nla; in tcf_bpf_dump_ebpf_info() 187 static int tcf_bpf_init_from_ops(struct nlattr **tb, struct tcf_bpf_cfg *cfg) in tcf_bpf_init_from_ops() 224 static int tcf_bpf_init_from_efd(struct nlattr **tb, struct tcf_bpf_cfg *cfg) in tcf_bpf_init_from_efd() 279 static int tcf_bpf_init(struct net *net, struct nlattr *nla, in tcf_bpf_init() 280 struct nlattr *est, struct tc_action **act, in tcf_bpf_init() 286 struct nlattr *tb[TCA_ACT_BPF_MAX + 1]; in tcf_bpf_init()
|
H A D | sch_gred.c | 540 struct nlattr *tb[TCA_GRED_VQ_MAX + 1]; in gred_vq_apply() 554 const struct nlattr *attr; in gred_vqs_apply() 567 const struct nlattr *entry, in gred_vq_validate() 570 struct nlattr *tb[TCA_GRED_VQ_MAX + 1]; in gred_vq_validate() 611 struct nlattr *vqs, struct netlink_ext_ack *extack) in gred_vqs_validate() 613 const struct nlattr *attr; in gred_vqs_validate() 647 struct nlattr *tb[TCA_GRED_MAX + 1]; in gred_change() 732 static int gred_init(struct Qdisc *sch, struct nlattr *opt, in gred_init() 736 struct nlattr *tb[TCA_GRED_MAX + 1]; in gred_init() 771 struct nlattr *parms, *vqs, *opts = NULL; in gred_dump() [all …]
|
H A D | sch_netem.c | 795 static int get_dist_table(struct disttable **tbl, const struct nlattr *attr) in get_dist_table() 817 static void get_slot(struct netem_sched_data *q, const struct nlattr *attr) in get_slot() 864 static void get_rate(struct netem_sched_data *q, const struct nlattr *attr) in get_rate() 880 const struct nlattr *la; in get_loss_clg() 946 static int parse_attr(struct nlattr *tb[], int maxtype, struct nlattr *nla, in parse_attr() 961 memset(tb, 0, sizeof(struct nlattr *) * (maxtype + 1)); in parse_attr() 966 static int netem_change(struct Qdisc *sch, struct nlattr *opt, in netem_change() 970 struct nlattr *tb[TCA_NETEM_MAX + 1]; in netem_change() 1077 static int netem_init(struct Qdisc *sch, struct nlattr *opt, in netem_init() 1109 struct nlattr *nest; in dump_loss_model() [all …]
|
H A D | act_gate.c | 176 static int fill_gate_entry(struct nlattr **tb, struct tcfg_gate_entry *entry, in fill_gate_entry() 206 static int parse_gate_entry(struct nlattr *n, struct tcfg_gate_entry *entry, in parse_gate_entry() 209 struct nlattr *tb[TCA_GATE_ENTRY_MAX + 1] = { }; in parse_gate_entry() 233 static int parse_gate_list(struct nlattr *list_attr, in parse_gate_list() 238 struct nlattr *n; in parse_gate_list() 299 static int tcf_gate_init(struct net *net, struct nlattr *nla, in tcf_gate_init() 300 struct nlattr *est, struct tc_action **a, in tcf_gate_init() 307 struct nlattr *tb[TCA_GATE_MAX + 1]; in tcf_gate_init() 475 struct nlattr *item; in dumping_entry() 515 struct nlattr *entry_list; in tcf_gate_dump()
|
/openbmc/linux/net/openvswitch/ |
H A D | actions.c | 39 const struct nlattr *actions; 601 const struct nlattr *a) in set_nsh() 959 const struct nlattr *a; in output_userspace() 1035 struct nlattr *actions; in sample() 1036 struct nlattr *sample_arg; in sample() 1066 struct nlattr *actions; in clone() 1067 struct nlattr *clone_arg; in clone() 1081 const struct nlattr *attr) in execute_hash() 1105 const struct nlattr *a) in execute_set_action() 1125 const struct nlattr *a) in execute_masked_set_action() [all …]
|
H A D | meter.c | 235 struct nlattr *nla; in ovs_meter_cmd_reply_stats() 257 struct nlattr *band_nla; in ovs_meter_cmd_reply_stats() 277 struct nlattr *nla, *band_nla; in ovs_meter_cmd_features() 326 static struct dp_meter *dp_meter_create(struct nlattr **a) in dp_meter_create() 328 struct nlattr *nla; in dp_meter_create() 362 struct nlattr *attr[OVS_BAND_ATTR_MAX + 1]; in dp_meter_create() 365 err = nla_parse_deprecated((struct nlattr **)&attr, in dp_meter_create() 408 struct nlattr **a = info->attrs; in ovs_meter_cmd_set() 487 struct nlattr **a = info->attrs; in ovs_meter_cmd_get() 540 struct nlattr **a = info->attrs; in ovs_meter_cmd_del()
|
/openbmc/linux/net/ieee802154/6lowpan/ |
H A D | core.c | 122 static int lowpan_validate(struct nlattr *tb[], struct nlattr *data[], in lowpan_validate() 133 struct nlattr *tb[], struct nlattr *data[], in lowpan_newlink()
|
/openbmc/linux/net/devlink/ |
H A D | dev.c | 60 struct nlattr *reload_stats_entry; in devlink_reload_stat_put() 145 struct nlattr *dev_stats; in devlink_nl_fill() 699 struct nlattr *nest; in devlink_info_version_put() 1024 struct nlattr *nla_component, in devlink_flash_component_get() 1063 struct nlattr *nla_overwrite_mask, *nla_file_name; in devlink_nl_cmd_flash_update() 1119 const struct nlattr *nlattr; in __devlink_compat_running_version() local 1133 const struct nlattr *kv; in __devlink_compat_running_version() 1139 nla_for_each_nested(kv, nlattr, rem_kv) { in __devlink_compat_running_version() 1199 struct nlattr *selftests; in devlink_nl_selftests_fill() 1281 struct nlattr *result_attr; in devlink_selftest_result_put() [all …]
|
H A D | dpipe.c | 65 struct nlattr *match_attr; in devlink_dpipe_match_put() 90 struct nlattr *matches_attr; in devlink_dpipe_matches_put() 113 struct nlattr *action_attr; in devlink_dpipe_action_put() 138 struct nlattr *actions_attr; in devlink_dpipe_actions_put() 159 struct nlattr *table_attr; in devlink_dpipe_table_put() 219 struct nlattr *tables_attr; in devlink_dpipe_tables_fill() 338 struct nlattr *action_attr; in devlink_dpipe_action_values_put() 375 struct nlattr *match_attr; in devlink_dpipe_match_values_put() 592 struct nlattr *field_attr; in devlink_dpipe_fields_put() 618 struct nlattr *fields_attr, *header_attr; in devlink_dpipe_header_put() [all …]
|
/openbmc/linux/drivers/net/wireless/mediatek/mt76/mt7921/ |
H A D | testmode.c | 114 struct nlattr *tb[NUM_MT76_TM_ATTRS]; in mt7921_testmode_cmd() 129 struct nlattr *drv_tb[NUM_MT7921_TM_ATTRS], *data; in mt7921_testmode_cmd() 151 struct nlattr *tb[NUM_MT76_TM_ATTRS]; in mt7921_testmode_dump() 170 struct nlattr *drv_tb[NUM_MT7921_TM_ATTRS], *data; in mt7921_testmode_dump()
|
/openbmc/linux/drivers/infiniband/core/ |
H A D | nldev.c | 368 struct nlattr *entry_attr; in fill_res_info_entry() 401 struct nlattr *table_attr; in fill_res_info() 734 struct nlattr *entry_attr; in fill_res_range_qp_entry() 765 struct nlattr *table_attr; in fill_res_srq_qps() 869 struct nlattr *entry_attr; in fill_stat_counter_qp_entry() 891 struct nlattr *table_attr; in fill_stat_counter_qps() 925 struct nlattr *entry_attr; in rdma_nl_stat_hwcounter_entry() 968 struct nlattr *table_attr; in fill_stat_counter_hwcounters() 1506 struct nlattr *table_attr; in res_get_common_dumpit() 1507 struct nlattr *entry_attr; in res_get_common_dumpit() [all …]
|
/openbmc/linux/drivers/net/ |
H A D | macsec.c | 1509 struct nlattr **attrs) in get_dev_from_nl() 1699 static int parse_sa_config(struct nlattr **attrs, struct nlattr **tb_sa) in parse_sa_config() 1710 static int parse_rxsc_config(struct nlattr **attrs, struct nlattr **tb_rxsc) in parse_rxsc_config() 3070 struct nlattr *attr; in dump_secy() 3120 struct nlattr *txsa_nest; in dump_secy() 3178 struct nlattr *rxsa_list; in dump_secy() 3220 struct nlattr *rxsa_nest; in dump_secy() 3760 struct nlattr *data[]) in macsec_changelink_common() 3836 struct nlattr *data[], in macsec_changelink() 4053 struct nlattr *tb[], struct nlattr *data[], in macsec_newlink() [all …]
|
/openbmc/linux/net/dsa/ |
H A D | netlink.c | 14 static int dsa_changelink(struct net_device *dev, struct nlattr *tb[], in dsa_changelink() 15 struct nlattr *data[], in dsa_changelink()
|
/openbmc/linux/tools/bpf/bpftool/ |
H A D | net.c | 99 typedef int (*dump_nlmsg_t)(void *cookie, void *msg, struct nlattr **tb); 208 struct nlattr *tb[TCA_MAX + 1], *attr; in __dump_class_nlmsg() 213 attr = (struct nlattr *) ((void *) t + NLMSG_ALIGN(sizeof(*t))); in __dump_class_nlmsg() 247 struct nlattr *tb[TCA_MAX + 1], *attr; in __dump_qdisc_nlmsg() 252 attr = (struct nlattr *) ((void *) t + NLMSG_ALIGN(sizeof(*t))); in __dump_qdisc_nlmsg() 286 struct nlattr *tb[TCA_MAX + 1], *attr; in __dump_filter_nlmsg() 291 attr = (struct nlattr *) ((void *) t + NLMSG_ALIGN(sizeof(*t))); in __dump_filter_nlmsg() 325 struct nlattr *tb[IFLA_MAX + 1], *attr; in __dump_link_nlmsg() 330 attr = (struct nlattr *) ((void *) ifi + NLMSG_ALIGN(sizeof(*ifi))); in __dump_link_nlmsg() 359 static int dump_link_nlmsg(void *cookie, void *msg, struct nlattr **tb) in dump_link_nlmsg() [all …]
|
/openbmc/linux/net/ipv6/ |
H A D | seg6_local.c | 1680 struct nlattr *nla; in put_nla_srh() 1793 struct nlattr *nla; in put_nla_nh4() 1820 struct nlattr *nla; in put_nla_nh6() 1894 struct nlattr *tb[SEG6_LOCAL_BPF_PROG_MAX + 1]; in parse_nla_bpf() 1925 struct nlattr *nest; in put_nla_bpf() 1974 struct nlattr *tb[SEG6_LOCAL_CNT_MAX + 1]; in parse_nla_counters() 2021 struct nlattr *nest; in put_nla_counters() 2133 struct nlattr *tb[SEG6_LOCAL_FLV_MAX + 1]; in parse_nla_flavors() 2189 struct nlattr *nest; in put_nla_flavors() 2498 struct nlattr *tb[SEG6_LOCAL_MAX + 1]; in seg6_local_build_state() [all …]
|
/openbmc/linux/net/bridge/ |
H A D | br_vlan_options.c | 15 struct nlattr *nest; in __vlan_tun_put() 138 struct nlattr **tb, in br_vlan_modify_tunnel() 142 struct nlattr *tun_tb[BRIDGE_VLANDB_TINFO_MAX + 1], *attr; in br_vlan_modify_tunnel() 197 struct nlattr **tb, in br_vlan_process_one_opts() 267 struct nlattr **tb, in br_vlan_process_options() 352 struct nlattr *nest2 __maybe_unused; in br_vlan_global_opts_fill() 354 struct nlattr *nest; in br_vlan_global_opts_fill() 514 struct nlattr **tb, in br_vlan_process_global_one_opts() 647 const struct nlattr *attr, in br_vlan_rtm_process_global_options() 652 struct nlattr *tb[BRIDGE_VLANDB_GOPTS_MAX + 1]; in br_vlan_rtm_process_global_options()
|