Home
last modified time | relevance | path

Searched refs:nlattr (Results 51 – 75 of 492) sorted by relevance

12345678910>>...20

/openbmc/linux/include/net/
H A Dgen_stats.h29 struct nlattr * tail;
74 bool running, struct nlattr *opt);
80 bool running, struct nlattr *opt);
H A Drtnh.h24 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 Dnetlink.c52 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 Dip_set_core.c270 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 Dnf_conntrack_l4proto.h34 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 Dnf_tables.h216 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 Dsch_mqprio.c170 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 Dsch_ets.c198 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 Dact_simple.c52 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 Dact_bpf.c102 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 Dsch_gred.c540 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 Dsch_netem.c795 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 Dact_gate.c176 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 Dactions.c39 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 Dmeter.c235 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 Dcore.c122 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 Ddev.c60 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 Ddpipe.c65 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 Dtestmode.c114 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 Dnldev.c368 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 Dmacsec.c1509 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 Dnetlink.c14 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 Dnet.c99 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 Dseg6_local.c1680 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 Dbr_vlan_options.c15 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()

12345678910>>...20