Lines Matching refs:nlattr

577 	size = nla_total_size(sizeof(struct nlattr)) +  in rtnl_link_get_slave_info_data_size()
593 size = nla_total_size(sizeof(struct nlattr)) + /* IFLA_LINKINFO */ in rtnl_link_get_size()
598 size += nla_total_size(sizeof(struct nlattr)) + in rtnl_link_get_size()
661 size = nla_total_size(sizeof(struct nlattr)); in rtnl_link_get_af_size()
667 size += nla_total_size(sizeof(struct nlattr)) + in rtnl_link_get_af_size()
695 struct nlattr *slave_data; in rtnl_link_slave_info_fill()
726 struct nlattr *data; in rtnl_link_info_fill()
756 struct nlattr *linkinfo; in rtnl_link_fill()
814 struct nlattr *mx; in rtnetlink_put_metrics()
1028 size_t vf_ports_size = nla_total_size(sizeof(struct nlattr)); in rtnl_port_size()
1029 size_t vf_port_size = nla_total_size(sizeof(struct nlattr)) in rtnl_port_size()
1031 size_t port_self_size = nla_total_size(sizeof(struct nlattr)) in rtnl_port_size()
1148 struct nlattr *vf_ports; in rtnl_vf_ports_fill()
1149 struct nlattr *vf_port; in rtnl_vf_ports_fill()
1184 struct nlattr *port_self; in rtnl_port_self_fill()
1282 struct nlattr *attr; in rtnl_fill_stats()
1308 struct nlattr *vf, *vfstats, *vfvlanlist; in rtnl_fill_vfinfo()
1452 struct nlattr *vfinfo; in rtnl_fill_vf()
1546 struct nlattr *xdp; in rtnl_xdp_fill()
1681 struct nlattr *af_spec; in rtnl_fill_link_af()
1688 struct nlattr *af; in rtnl_fill_link_af()
1734 struct nlattr *prop_list; in rtnl_fill_prop_list()
1756 struct nlattr *pr; in rtnl_fill_proto_down()
1785 struct nlattr *devlink_port_nest; in rtnl_fill_devlink_port()
2067 static const struct rtnl_link_ops *linkinfo_to_kind_ops(const struct nlattr *nla) in linkinfo_to_kind_ops()
2070 struct nlattr *linfo[IFLA_INFO_MAX + 1]; in linkinfo_to_kind_ops()
2154 bool strict_check, struct nlattr **tb, in rtnl_valid_dump_ifinfo_req()
2207 struct nlattr *tb[IFLA_MAX+1]; in rtnl_dump_ifinfo()
2299 int rtnl_nla_parse_ifinfomsg(struct nlattr **tb, const struct nlattr *nla_peer, in rtnl_nla_parse_ifinfomsg()
2303 const struct nlattr *attrs; in rtnl_nla_parse_ifinfomsg()
2321 struct net *rtnl_link_get_net(struct net *src_net, struct nlattr *tb[]) in rtnl_link_get_net()
2345 struct nlattr *tb[]) in rtnl_link_get_net_by_nlattr()
2364 struct nlattr *tb[], int cap) in rtnl_link_get_net_capable()
2383 static int rtnl_ensure_unique_netns(struct nlattr *tb[], in rtnl_ensure_unique_netns()
2425 static int validate_linkmsg(struct net_device *dev, struct nlattr *tb[], in validate_linkmsg()
2468 struct nlattr *af; in validate_linkmsg()
2508 static int do_setvfinfo(struct net_device *dev, struct nlattr **tb) in do_setvfinfo()
2542 struct nlattr *attr; in do_setvfinfo()
2719 struct nlattr *nl_proto_down, in do_set_proto_down()
2720 struct nlattr *nl_proto_down_reason, in do_set_proto_down()
2723 struct nlattr *pdreason[IFLA_PROTO_DOWN_REASON_MAX + 1]; in do_set_proto_down()
2779 struct nlattr **tb, int status) in do_setlink()
2990 struct nlattr *vfinfo[IFLA_VF_MAX + 1]; in do_setlink()
2991 struct nlattr *attr; in do_setlink()
3015 struct nlattr *port[IFLA_PORT_MAX+1]; in do_setlink()
3016 struct nlattr *attr; in do_setlink()
3050 struct nlattr *port[IFLA_PORT_MAX+1]; in do_setlink()
3067 struct nlattr *af; in do_setlink()
3093 struct nlattr *xdp[IFLA_XDP_MAX + 1]; in do_setlink()
3155 struct nlattr *tb[]) in rtnl_dev_get()
3176 struct nlattr *tb[IFLA_MAX+1]; in rtnl_setlink()
3270 struct nlattr *tb[IFLA_MAX+1]; in rtnl_dellink()
3344 struct nlattr *tb[], in rtnl_create_link()
3441 struct nlattr **tb) in rtnl_group_changelink()
3463 struct nlattr **tb, struct nlattr **data, in rtnl_newlink_create()
3553 struct nlattr *tb[IFLA_MAX + 1];
3554 struct nlattr *attr[RTNL_MAX_TYPE + 1];
3555 struct nlattr *slave_attr[RTNL_SLAVE_MAX_TYPE + 1];
3562 struct nlattr *linkinfo[IFLA_INFO_MAX + 1]; in __rtnl_newlink()
3563 struct nlattr ** const tb = tbs->tb; in __rtnl_newlink()
3568 struct nlattr **slave_data; in __rtnl_newlink()
3572 struct nlattr **data; in __rtnl_newlink()
3754 struct nlattr **tb, in rtnl_valid_getlink_req()
3806 struct nlattr *tb[IFLA_MAX+1]; in rtnl_getlink()
3866 static int rtnl_alt_ifname(int cmd, struct net_device *dev, struct nlattr *attr, in rtnl_alt_ifname()
3912 struct nlattr *tb[IFLA_MAX + 1]; in rtnl_linkprop()
3916 struct nlattr *attr; in rtnl_linkprop()
3972 struct nlattr *tb[IFLA_MAX+1]; in rtnl_calcit()
4195 struct nlattr *tb[], in ndo_dflt_fdb_add()
4233 static int fdb_vid_parse(struct nlattr *vlan_attr, u16 *p_vid, in fdb_vid_parse()
4260 struct nlattr *tb[NDA_MAX+1]; in rtnl_fdb_add()
4340 struct nlattr *tb[], in ndo_dflt_fdb_del()
4377 struct nlattr *tb[NDA_MAX+1]; in rtnl_fdb_del()
4541 struct nlattr *tb[NDA_MAX + 1]; in valid_fdb_dump_strict()
4595 struct nlattr *tb[IFLA_MAX+1]; in valid_fdb_dump_legacy()
4727 struct nlattr **tb, u8 *ndm_flags, in valid_fdb_get_strict()
4795 struct nlattr *tb[NDA_MAX + 1]; in rtnl_fdb_get()
4903 struct nlattr *br_afspec; in ndo_dflt_bridge_getlink()
4904 struct nlattr *protinfo; in ndo_dflt_bridge_getlink()
5000 struct nlattr *tb[IFLA_MAX+1]; in valid_bridge_getlink_req()
5120 + nla_total_size(sizeof(struct nlattr)) /* IFLA_AF_SPEC */ in bridge_nlmsg_size()
5167 struct nlattr *br_spec, *attr, *br_flags_attr = NULL; in rtnl_bridge_setlink()
5247 struct nlattr *br_spec, *attr = NULL; in rtnl_bridge_dellink()
5344 struct nlattr *attr = NULL; in rtnl_offload_xstats_fill_ndo()
5413 struct nlattr *nest; in rtnl_offload_xstats_fill_hw_s_info_one()
5439 struct nlattr *nest; in rtnl_offload_xstats_fill_hw_s_info()
5501 struct nlattr *attr; in rtnl_offload_xstats_fill()
5600 struct nlattr *attr; in rtnl_fill_statsinfo()
5715 struct nlattr *af; in rtnl_fill_statsinfo()
5845 static int rtnl_stats_get_parse_filters(struct nlattr *ifla_filters, in rtnl_stats_get_parse_filters()
5849 struct nlattr *tb[IFLA_STATS_MAX + 1]; in rtnl_stats_get_parse_filters()
5876 struct nlattr *tb[IFLA_STATS_GETSET_MAX + 1]; in rtnl_stats_get_parse()
6090 struct nlattr *tb[IFLA_STATS_GETSET_MAX + 1]; in rtnl_stats_set()
6221 static int rtnl_validate_mdb_entry(const struct nlattr *attr, in rtnl_validate_mdb_entry()
6287 struct nlattr *tb[MDBA_SET_ENTRY_MAX + 1]; in rtnl_mdb_add()
6326 struct nlattr *tb[MDBA_SET_ENTRY_MAX + 1]; in rtnl_mdb_del()