Lines Matching defs:extack
2020 struct netlink_ext_ack *extack)
2028 NL_SET_ERR_MSG(extack, "Invalid header for link dump");
2035 NL_SET_ERR_MSG(extack, "Invalid values in header for link dump request");
2039 NL_SET_ERR_MSG(extack, "Filter by device index not supported for link dumps");
2045 extack);
2059 extack);
2064 struct netlink_ext_ack *extack = cb->extack;
2083 err = rtnl_valid_dump_ifinfo_req(nlh, cb->strict_check, tb, extack);
2101 NL_SET_ERR_MSG(extack, "Invalid target network namespace id");
2116 NL_SET_ERR_MSG(extack, "Unsupported attribute in link dump request");
2249 struct netlink_ext_ack *extack,
2257 NL_SET_ERR_MSG(extack, "specified netns attribute not supported");
2273 NL_SET_ERR_MSG(extack, "multiple netns identifying attributes specified");
2514 struct netlink_ext_ack *extack)
2539 err = ops->ndo_add_slave(upper_dev, dev, extack);
2557 struct netlink_ext_ack *extack)
2567 NL_SET_ERR_MSG(extack, "Protodown not supported by device");
2581 NL_SET_ERR_MSG(extack, "Invalid protodown reason value");
2598 NL_SET_ERR_MSG(extack, "Cannot clear protodown, active reasons");
2615 struct netlink_ext_ack *extack,
2684 err = dev_set_mac_address_user(dev, sa, extack);
2692 err = dev_set_mtu_ext(dev, nla_get_u32(tb[IFLA_MTU]), extack);
2730 extack);
2736 err = do_set_master(dev, nla_get_u32(tb[IFLA_MASTER]), extack);
2901 tb[IFLA_PROTO_DOWN_REASON], extack);
2946 err = dev_change_xdp_fd(dev, extack,
2990 struct netlink_ext_ack *extack)
3000 ifla_policy, extack);
3004 err = rtnl_ensure_unique_netns(tb, extack, false);
3027 err = do_setlink(skb, dev, ifm, extack, tb, ifname, 0);
3085 struct netlink_ext_ack *extack)
3096 ifla_policy, extack);
3100 err = rtnl_ensure_unique_netns(tb, extack, true);
3166 struct netlink_ext_ack *extack)
3183 NL_SET_ERR_MSG(extack, "Invalid number of transmit queues");
3188 NL_SET_ERR_MSG(extack, "Invalid number of receive queues");
3205 err = dev_validate_mtu(dev, mtu, extack);
3240 struct netlink_ext_ack *extack,
3248 err = do_setlink(skb, dev, ifm, extack, tb, NULL, 0);
3258 struct nlattr **attr, struct netlink_ext_ack *extack)
3282 ifla_policy, extack);
3286 err = rtnl_ensure_unique_netns(tb, extack, false);
3300 NL_SET_ERR_MSG(extack, "ifindex can't be negative");
3347 ops->policy, extack);
3353 err = ops->validate(tb, data, extack);
3370 extack);
3390 err = ops->changelink(dev, tb, data, extack);
3401 slave_data, extack);
3407 return do_setlink(skb, dev, ifm, extack, tb, ifname, status);
3419 ifm, extack, tb);
3437 NL_SET_ERR_MSG(extack, "Unknown device type");
3458 NL_SET_ERR_MSG(extack, "Unknown network namespace id");
3470 name_assign_type, ops, tb, extack);
3479 err = ops->newlink(link_net ? : net, dev, tb, data, extack);
3496 err = do_set_master(dev, nla_get_u32(tb[IFLA_MASTER]), extack);
3518 struct netlink_ext_ack *extack)
3527 ret = __rtnl_newlink(skb, nlh, attr, extack);
3535 struct netlink_ext_ack *extack)
3541 NL_SET_ERR_MSG(extack, "Invalid header for get link");
3547 ifla_policy, extack);
3552 NL_SET_ERR_MSG(extack, "Invalid values in header for get link request");
3557 ifla_policy, extack);
3572 NL_SET_ERR_MSG(extack, "Unsupported attribute in get link request");
3581 struct netlink_ext_ack *extack)
3593 err = rtnl_valid_getlink_req(skb, nlh, tb, extack);
3597 err = rtnl_ensure_unique_netns(tb, extack, true);
3648 bool *changed, struct netlink_ext_ack *extack)
3654 err = nla_validate(attr, attr->nla_len, IFLA_MAX, ifla_policy, extack);
3662 NL_SET_ERR_MSG(extack,
3690 struct netlink_ext_ack *extack)
3700 err = nlmsg_parse(nlh, sizeof(*ifm), tb, IFLA_MAX, ifla_policy, extack);
3704 err = rtnl_ensure_unique_netns(tb, extack, true);
3726 err = rtnl_alt_ifname(cmd, dev, attr, &changed, extack);
3739 struct netlink_ext_ack *extack)
3741 return rtnl_linkprop(RTM_NEWLINKPROP, skb, nlh, extack);
3745 struct netlink_ext_ack *extack)
3747 return rtnl_linkprop(RTM_DELLINKPROP, skb, nlh, extack);
4003 struct netlink_ext_ack *extack)
4009 NL_SET_ERR_MSG(extack, "invalid vlan attribute size");
4016 NL_SET_ERR_MSG(extack, "invalid vlan id");
4025 struct netlink_ext_ack *extack)
4036 extack);
4042 NL_SET_ERR_MSG(extack, "invalid ifindex");
4048 NL_SET_ERR_MSG(extack, "unknown ifindex");
4053 NL_SET_ERR_MSG(extack, "invalid address");
4058 NL_SET_ERR_MSG(extack, "FDB add only supported for Ethernet devices");
4064 err = fdb_vid_parse(tb[NDA_VLAN], &vid, extack);
4077 nlh->nlmsg_flags, extack);
4090 extack);
4133 struct netlink_ext_ack *extack)
4147 extack);
4153 NL_SET_ERR_MSG(extack, "invalid ifindex");
4159 NL_SET_ERR_MSG(extack, "unknown ifindex");
4164 NL_SET_ERR_MSG(extack, "invalid address");
4169 NL_SET_ERR_MSG(extack, "FDB delete only supported for Ethernet devices");
4175 err = fdb_vid_parse(tb[NDA_VLAN], &vid, extack);
4278 struct netlink_ext_ack *extack)
4285 NL_SET_ERR_MSG(extack, "Invalid header for fdb dump request");
4292 NL_SET_ERR_MSG(extack, "Invalid values in header for fdb dump request");
4297 NDA_MAX, NULL, extack);
4309 NL_SET_ERR_MSG(extack, "Invalid IFINDEX attribute in fdb dump request");
4316 NL_SET_ERR_MSG(extack, "Invalid MASTER attribute in fdb dump request");
4322 NL_SET_ERR_MSG(extack, "Unsupported attribute in fdb dump request");
4332 struct netlink_ext_ack *extack)
4351 extack);
4382 cb->extack);
4385 cb->extack);
4468 u16 *vid, struct netlink_ext_ack *extack)
4474 NL_SET_ERR_MSG(extack, "Invalid header for fdb get request");
4481 NL_SET_ERR_MSG(extack, "Invalid values in header for fdb get request");
4486 NL_SET_ERR_MSG(extack, "Invalid flags in header for fdb get request");
4491 NDA_MAX, nda_policy, extack);
4507 NL_SET_ERR_MSG(extack, "Invalid address in fdb get request");
4513 err = fdb_vid_parse(tb[i], vid, extack);
4520 NL_SET_ERR_MSG(extack, "Unsupported attribute in fdb get request");
4529 struct netlink_ext_ack *extack)
4544 &brport_idx, &addr, &vid, extack);
4549 NL_SET_ERR_MSG(extack, "Missing lookup address for fdb get request");
4556 NL_SET_ERR_MSG(extack, "Unknown device ifindex");
4563 NL_SET_ERR_MSG(extack, "Master and device are mutually exclusive");
4569 NL_SET_ERR_MSG(extack, "Invalid master ifindex");
4578 NL_SET_ERR_MSG(extack, "Device is not a bridge port");
4583 NL_SET_ERR_MSG(extack, "Master of device not found");
4589 NL_SET_ERR_MSG(extack, "Missing NTF_SELF");
4597 NL_SET_ERR_MSG(extack, "No device specified");
4602 NL_SET_ERR_MSG(extack, "Fdb get operation not supported by device");
4614 nlh->nlmsg_seq, extack);
4737 struct netlink_ext_ack *extack)
4746 NL_SET_ERR_MSG(extack, "Invalid header for bridge link dump");
4753 NL_SET_ERR_MSG(extack, "Invalid values in header for bridge link dump request");
4760 extack);
4764 extack);
4780 NL_SET_ERR_MSG(extack, "Unsupported attribute in bridge link dump request");
4801 cb->extack);
4901 struct netlink_ext_ack *extack)
4919 NL_SET_ERR_MSG(extack, "unknown ifindex");
4950 extack);
4963 extack);
4981 struct netlink_ext_ack *extack)
5000 NL_SET_ERR_MSG(extack, "unknown ifindex");
5362 bool is_dump, struct netlink_ext_ack *extack)
5367 NL_SET_ERR_MSG(extack, "Invalid header for stats dump");
5380 NL_SET_ERR_MSG(extack, "Invalid values in header for stats dump request");
5384 NL_SET_ERR_MSG(extack, "Invalid attributes after stats header");
5388 NL_SET_ERR_MSG(extack, "Invalid stats requested through filter mask");
5396 struct netlink_ext_ack *extack)
5407 false, extack);
5444 struct netlink_ext_ack *extack = cb->extack;
5461 err = rtnl_valid_stats_req(cb->nlh, cb->strict_check, true, extack);
5468 NL_SET_ERR_MSG(extack, "Filter mask must be set for stats dump");
5509 struct netlink_ext_ack *extack)
5598 err = doit(skb, nlh, extack);
5607 err = link->doit(skb, nlh, extack);