Lines Matching refs:extack

363 			   struct netlink_ext_ack *extack)  in valid_group_nh()  argument
372 NL_SET_ERR_MSG(extack, in valid_group_nh()
380 NL_SET_ERR_MSG(extack, in valid_group_nh()
390 struct netlink_ext_ack *extack) in nh_check_attr_group() argument
397 NL_SET_ERR_MSG(extack, in nh_check_attr_group()
408 NL_SET_ERR_MSG(extack, "Reserved fields in nexthop_grp must be 0"); in nh_check_attr_group()
412 NL_SET_ERR_MSG(extack, "Invalid value for weight"); in nh_check_attr_group()
417 NL_SET_ERR_MSG(extack, "Nexthop id can not be used twice in a group"); in nh_check_attr_group()
429 NL_SET_ERR_MSG(extack, "Invalid nexthop id"); in nh_check_attr_group()
432 if (!valid_group_nh(nh, len, extack)) in nh_check_attr_group()
439 NL_SET_ERR_MSG(extack, in nh_check_attr_group()
552 struct netlink_ext_ack *extack) in check_src_addr() argument
555 NL_SET_ERR_MSG(extack, "IPv6 routes using source address can not use nexthop objects"); in check_src_addr()
562 struct netlink_ext_ack *extack) in fib6_check_nexthop() argument
572 if (cfg && check_src_addr(&cfg->fc_src, extack) < 0) in fib6_check_nexthop()
589 NL_SET_ERR_MSG(extack, "IPv6 routes can not use an IPv4 nexthop"); in fib6_check_nexthop()
598 struct netlink_ext_ack *extack) in fib6_check_nh_list() argument
606 if (check_src_addr(&f6i->fib6_src.addr, extack) < 0) in fib6_check_nh_list()
610 return fib6_check_nexthop(new, NULL, extack); in fib6_check_nh_list()
614 struct netlink_ext_ack *extack) in nexthop_check_scope() argument
620 NL_SET_ERR_MSG(extack, in nexthop_check_scope()
626 NL_SET_ERR_MSG(extack, "Scope mismatch with nexthop"); in nexthop_check_scope()
638 struct netlink_ext_ack *extack) in fib_check_nexthop() argument
646 NL_SET_ERR_MSG(extack, "Route with host scope can not have multiple nexthops"); in fib_check_nexthop()
653 err = nexthop_check_scope(nhg->nh_entries[0].nh, scope, extack); in fib_check_nexthop()
655 err = nexthop_check_scope(nh, scope, extack); in fib_check_nexthop()
662 struct netlink_ext_ack *extack) in fib_check_nh_list() argument
669 err = fib_check_nexthop(new, fi->fib_scope, extack); in fib_check_nh_list()
839 struct netlink_ext_ack *extack) in replace_nexthop_grp() argument
845 NL_SET_ERR_MSG(extack, "Can not replace a nexthop group with a nexthop."); in replace_nexthop_grp()
868 struct netlink_ext_ack *extack) in replace_nexthop_single() argument
873 NL_SET_ERR_MSG(extack, "Can not replace a nexthop with a nexthop group."); in replace_nexthop_single()
933 struct nexthop *new, struct netlink_ext_ack *extack) in replace_nexthop() argument
942 err = fib_check_nh_list(old, new, extack); in replace_nexthop()
946 err = fib6_check_nh_list(old, new, extack); in replace_nexthop()
962 …NL_SET_ERR_MSG(extack, "Blackhole nexthop can not be a member of a group with more than one path"); in replace_nexthop()
966 err = fib_check_nh_list(nhge->nh_parent, new, extack); in replace_nexthop()
970 err = fib6_check_nh_list(nhge->nh_parent, new, extack); in replace_nexthop()
976 err = replace_nexthop_grp(net, old, new, extack); in replace_nexthop()
978 err = replace_nexthop_single(net, old, new, extack); in replace_nexthop()
992 struct nh_config *cfg, struct netlink_ext_ack *extack) in insert_nexthop() argument
1018 rc = replace_nexthop(net, nh, new_nh, extack); in insert_nexthop()
1031 NL_SET_ERR_MSG(extack, "Replace specified without create and no entry exists"); in insert_nexthop()
1142 struct netlink_ext_ack *extack) in nh_create_ipv4() argument
1156 err = fib_nh_init(net, fib_nh, &fib_cfg, 1, extack); in nh_create_ipv4()
1163 err = fib_check_nh(net, fib_nh, tb_id, 0, extack); in nh_create_ipv4()
1177 struct netlink_ext_ack *extack) in nh_create_ipv6() argument
1195 extack); in nh_create_ipv6()
1205 struct netlink_ext_ack *extack) in nexthop_create() argument
1235 err = nh_create_ipv4(net, nh, nhi, cfg, extack); in nexthop_create()
1238 err = nh_create_ipv6(net, nh, nhi, cfg, extack); in nexthop_create()
1258 struct netlink_ext_ack *extack) in nexthop_add() argument
1264 NL_SET_ERR_MSG(extack, "Replace requires nexthop id"); in nexthop_add()
1271 NL_SET_ERR_MSG(extack, "No unused id"); in nexthop_add()
1279 nh = nexthop_create(net, cfg, extack); in nexthop_add()
1289 err = insert_nexthop(net, nh, cfg, extack); in nexthop_add()
1301 struct netlink_ext_ack *extack) in rtm_to_nh_config() argument
1308 extack); in rtm_to_nh_config()
1314 NL_SET_ERR_MSG(extack, "Invalid values in ancillary header"); in rtm_to_nh_config()
1318 NL_SET_ERR_MSG(extack, "Invalid nexthop flags in ancillary header"); in rtm_to_nh_config()
1331 NL_SET_ERR_MSG(extack, "Invalid address family"); in rtm_to_nh_config()
1336 NL_SET_ERR_MSG(extack, "Invalid attributes in request"); in rtm_to_nh_config()
1355 NL_SET_ERR_MSG(extack, "Invalid family for group"); in rtm_to_nh_config()
1365 NL_SET_ERR_MSG(extack, "Invalid group type"); in rtm_to_nh_config()
1368 err = nh_check_attr_group(net, tb, extack); in rtm_to_nh_config()
1377 NL_SET_ERR_MSG(extack, "Blackhole attribute can not be used with gateway or oif"); in rtm_to_nh_config()
1387 NL_SET_ERR_MSG(extack, "Device attribute required for non-blackhole nexthops"); in rtm_to_nh_config()
1396 NL_SET_ERR_MSG(extack, "Invalid device index"); in rtm_to_nh_config()
1399 NL_SET_ERR_MSG(extack, "Nexthop device is not up"); in rtm_to_nh_config()
1403 NL_SET_ERR_MSG(extack, "Carrier for nexthop device is down"); in rtm_to_nh_config()
1415 NL_SET_ERR_MSG(extack, "Invalid gateway"); in rtm_to_nh_config()
1422 NL_SET_ERR_MSG(extack, "Invalid gateway"); in rtm_to_nh_config()
1428 NL_SET_ERR_MSG(extack, in rtm_to_nh_config()
1435 NL_SET_ERR_MSG(extack, in rtm_to_nh_config()
1445 NL_SET_ERR_MSG(extack, "LWT encapsulation type is missing"); in rtm_to_nh_config()
1450 err = lwtunnel_valid_encap_type(cfg->nh_encap_type, extack); in rtm_to_nh_config()
1455 NL_SET_ERR_MSG(extack, "LWT encapsulation attribute is missing"); in rtm_to_nh_config()
1467 struct netlink_ext_ack *extack) in rtm_new_nexthop() argument
1474 err = rtm_to_nh_config(net, skb, nlh, &cfg, extack); in rtm_new_nexthop()
1476 nh = nexthop_add(net, &cfg, extack); in rtm_new_nexthop()
1485 struct netlink_ext_ack *extack) in nh_valid_get_del_req() argument
1492 extack); in nh_valid_get_del_req()
1505 NL_SET_ERR_MSG_ATTR(extack, tb[i], in nh_valid_get_del_req()
1511 NL_SET_ERR_MSG(extack, "Invalid values in header"); in nh_valid_get_del_req()
1516 NL_SET_ERR_MSG(extack, "Nexthop id is missing"); in nh_valid_get_del_req()
1522 NL_SET_ERR_MSG(extack, "Invalid nexthop id"); in nh_valid_get_del_req()
1531 struct netlink_ext_ack *extack) in rtm_del_nexthop() argument
1543 err = nh_valid_get_del_req(nlh, &id, extack); in rtm_del_nexthop()
1558 struct netlink_ext_ack *extack) in rtm_get_nexthop() argument
1566 err = nh_valid_get_del_req(nlh, &id, extack); in rtm_get_nexthop()
1636 struct netlink_ext_ack *extack = cb->extack; in nh_valid_dump_req() local
1655 NL_SET_ERR_MSG(extack, "Invalid device index"); in nh_valid_dump_req()
1663 NL_SET_ERR_MSG(extack, "Invalid master device index"); in nh_valid_dump_req()
1672 NL_SET_ERR_MSG(extack, "Unsupported attribute in dump request"); in nh_valid_dump_req()
1679 NL_SET_ERR_MSG(extack, "Invalid values in header for nexthop dump request"); in nh_valid_dump_req()