Lines Matching refs:nlattr
505 size = nla_total_size(sizeof(struct nlattr)) + in rtnl_link_get_slave_info_data_size()
521 size = nla_total_size(sizeof(struct nlattr)) + /* IFLA_LINKINFO */ in rtnl_link_get_size()
526 size += nla_total_size(sizeof(struct nlattr)) + in rtnl_link_get_size()
587 size = nla_total_size(sizeof(struct nlattr)); in rtnl_link_get_af_size()
593 size += nla_total_size(sizeof(struct nlattr)) + in rtnl_link_get_af_size()
621 struct nlattr *slave_data; in rtnl_link_slave_info_fill()
652 struct nlattr *data; in rtnl_link_info_fill()
682 struct nlattr *linkinfo; in rtnl_link_fill()
751 struct nlattr *mx; in rtnetlink_put_metrics()
967 size_t vf_ports_size = nla_total_size(sizeof(struct nlattr)); in rtnl_port_size()
968 size_t vf_port_size = nla_total_size(sizeof(struct nlattr)) in rtnl_port_size()
970 size_t port_self_size = nla_total_size(sizeof(struct nlattr)) in rtnl_port_size()
1070 struct nlattr *vf_ports; in rtnl_vf_ports_fill()
1071 struct nlattr *vf_port; in rtnl_vf_ports_fill()
1106 struct nlattr *port_self; in rtnl_port_self_fill()
1204 struct nlattr *attr; in rtnl_fill_stats()
1227 struct nlattr *vfinfo, in rtnl_fill_vfinfo()
1231 struct nlattr *vf, *vfstats, *vfvlanlist; in rtnl_fill_vfinfo()
1377 struct nlattr *vfinfo; in rtnl_fill_vf()
1469 struct nlattr *xdp; in rtnl_xdp_fill()
1604 struct nlattr *af_spec; in rtnl_fill_link_af()
1611 struct nlattr *af; in rtnl_fill_link_af()
1657 struct nlattr *prop_list; in rtnl_fill_prop_list()
1679 struct nlattr *pr; in rtnl_fill_proto_down()
1939 static const struct rtnl_link_ops *linkinfo_to_kind_ops(const struct nlattr *nla) in linkinfo_to_kind_ops()
1942 struct nlattr *linfo[IFLA_INFO_MAX + 1]; in linkinfo_to_kind_ops()
2019 bool strict_check, struct nlattr **tb, in rtnl_valid_dump_ifinfo_req()
2072 struct nlattr *tb[IFLA_MAX+1]; in rtnl_dump_ifinfo()
2164 int rtnl_nla_parse_ifinfomsg(struct nlattr **tb, const struct nlattr *nla_peer, in rtnl_nla_parse_ifinfomsg()
2168 const struct nlattr *attrs; in rtnl_nla_parse_ifinfomsg()
2186 struct net *rtnl_link_get_net(struct net *src_net, struct nlattr *tb[]) in rtnl_link_get_net()
2210 struct nlattr *tb[]) in rtnl_link_get_net_by_nlattr()
2229 struct nlattr *tb[], int cap) in rtnl_link_get_net_capable()
2248 static int rtnl_ensure_unique_netns(struct nlattr *tb[], in rtnl_ensure_unique_netns()
2277 static int validate_linkmsg(struct net_device *dev, struct nlattr *tb[]) in validate_linkmsg()
2290 struct nlattr *af; in validate_linkmsg()
2339 static int do_setvfinfo(struct net_device *dev, struct nlattr **tb) in do_setvfinfo()
2373 struct nlattr *attr; in do_setvfinfo()
2555 struct nlattr *nl_proto_down, in do_set_proto_down()
2556 struct nlattr *nl_proto_down_reason, in do_set_proto_down()
2559 struct nlattr *pdreason[IFLA_PROTO_DOWN_REASON_MAX + 1]; in do_set_proto_down()
2616 struct nlattr **tb, char *ifname, int status) in do_setlink()
2800 struct nlattr *vfinfo[IFLA_VF_MAX + 1]; in do_setlink()
2801 struct nlattr *attr; in do_setlink()
2825 struct nlattr *port[IFLA_PORT_MAX+1]; in do_setlink()
2826 struct nlattr *attr; in do_setlink()
2860 struct nlattr *port[IFLA_PORT_MAX+1]; in do_setlink()
2877 struct nlattr *af; in do_setlink()
2908 struct nlattr *xdp[IFLA_XDP_MAX + 1]; in do_setlink()
2970 struct nlattr *ifname_attr, in rtnl_dev_get()
2971 struct nlattr *altifname_attr, in rtnl_dev_get()
2996 struct nlattr *tb[IFLA_MAX+1]; in rtnl_setlink()
3091 struct nlattr *tb[IFLA_MAX+1]; in rtnl_dellink()
3165 struct nlattr *tb[], in rtnl_create_link()
3241 struct nlattr **tb) in rtnl_group_changelink()
3258 struct nlattr **attr, struct netlink_ext_ack *extack) in __rtnl_newlink()
3260 struct nlattr *slave_attr[RTNL_SLAVE_MAX_TYPE + 1]; in __rtnl_newlink()
3262 struct nlattr *linkinfo[IFLA_INFO_MAX + 1]; in __rtnl_newlink()
3267 struct nlattr *tb[IFLA_MAX + 1]; in __rtnl_newlink()
3269 struct nlattr **slave_data; in __rtnl_newlink()
3274 struct nlattr **data; in __rtnl_newlink()
3520 struct nlattr **attr; in rtnl_newlink()
3534 struct nlattr **tb, in rtnl_valid_getlink_req()
3586 struct nlattr *tb[IFLA_MAX+1]; in rtnl_getlink()
3647 static int rtnl_alt_ifname(int cmd, struct net_device *dev, struct nlattr *attr, in rtnl_alt_ifname()
3693 struct nlattr *tb[IFLA_MAX + 1]; in rtnl_linkprop()
3697 struct nlattr *attr; in rtnl_linkprop()
3754 struct nlattr *tb[IFLA_MAX+1]; in rtnl_calcit()
3969 struct nlattr *tb[], in ndo_dflt_fdb_add()
4002 static int fdb_vid_parse(struct nlattr *vlan_attr, u16 *p_vid, in fdb_vid_parse()
4029 struct nlattr *tb[NDA_MAX+1]; in rtnl_fdb_add()
4109 struct nlattr *tb[], in ndo_dflt_fdb_del()
4137 struct nlattr *tb[NDA_MAX+1]; in rtnl_fdb_del()
4280 struct nlattr *tb[NDA_MAX + 1]; in valid_fdb_dump_strict()
4334 struct nlattr *tb[IFLA_MAX+1]; in valid_fdb_dump_legacy()
4466 struct nlattr **tb, u8 *ndm_flags, in valid_fdb_get_strict()
4534 struct nlattr *tb[NDA_MAX + 1]; in rtnl_fdb_get()
4642 struct nlattr *br_afspec; in ndo_dflt_bridge_getlink()
4643 struct nlattr *protinfo; in ndo_dflt_bridge_getlink()
4739 struct nlattr *tb[IFLA_MAX+1]; in valid_bridge_getlink_req()
4859 + nla_total_size(sizeof(struct nlattr)) /* IFLA_AF_SPEC */ in bridge_nlmsg_size()
4906 struct nlattr *br_spec, *attr, *br_flags_attr = NULL; in rtnl_bridge_setlink()
4986 struct nlattr *br_spec, *attr = NULL; in rtnl_bridge_dellink()
5076 struct nlattr *attr = NULL; in rtnl_get_offload_stats()
5154 struct nlattr *attr; in rtnl_fill_statsinfo()
5255 struct nlattr *af; in rtnl_fill_statsinfo()