Lines Matching defs:extack
721 u8 via_addr[], struct netlink_ext_ack *extack)
728 NL_SET_ERR_MSG_ATTR(extack, nla,
735 NL_SET_ERR_MSG_ATTR(extack, nla,
803 struct netlink_ext_ack *extack)
812 nh->nh_label, extack);
819 __mpls_nh_via(rt, nh), extack);
887 struct netlink_ext_ack *extack)
921 max_labels, extack);
941 struct netlink_ext_ack *extack)
947 NL_SET_ERR_MSG(extack,
954 NL_SET_ERR_MSG(extack,
964 struct netlink_ext_ack *extack)
983 if (!mpls_label_ok(net, &index, extack))
989 NL_SET_ERR_MSG(extack, "MPLS does not support route append");
1019 NL_SET_ERR_MSG(extack, "Route does not contain a nexthop");
1034 err = mpls_nh_build_multi(cfg, rt, max_labels, extack);
1051 struct netlink_ext_ack *extack)
1059 if (!mpls_label_ok(net, &index, extack))
1215 struct netlink_ext_ack *extack)
1220 NL_SET_ERR_MSG_MOD(extack,
1228 devconf_mpls_policy, extack);
1232 devconf_mpls_policy, extack);
1244 NL_SET_ERR_MSG_MOD(extack, "Unsupported attribute in netconf get request");
1254 struct netlink_ext_ack *extack)
1264 err = mpls_netconf_valid_get_req(in_skb, nlh, tb, extack);
1313 struct netlink_ext_ack *extack = cb->extack;
1317 NL_SET_ERR_MSG_MOD(extack, "Invalid header for netconf dump request");
1322 NL_SET_ERR_MSG_MOD(extack, "Invalid data after header in netconf dump request");
1727 u32 label[], struct netlink_ext_ack *extack)
1739 NL_SET_ERR_MSG_ATTR(extack, nla,
1747 NL_SET_ERR_MSG(extack, "Too many labels");
1765 NL_SET_ERR_MSG_ATTR(extack, nla,
1771 NL_SET_ERR_MSG_ATTR(extack, nla,
1777 NL_SET_BAD_ATTR(extack, nla);
1779 NL_SET_ERR_MSG(extack,
1782 NL_SET_ERR_MSG(extack,
1794 NL_SET_ERR_MSG_ATTR(extack, nla,
1810 struct netlink_ext_ack *extack)
1818 rtm_mpls_policy, extack);
1826 NL_SET_ERR_MSG(extack, "Invalid address family in rtmsg");
1830 NL_SET_ERR_MSG(extack, "rtm_dst_len must be 20 for MPLS");
1834 NL_SET_ERR_MSG(extack, "rtm_src_len must be 0 for MPLS");
1838 NL_SET_ERR_MSG(extack, "rtm_tos must be 0 for MPLS");
1842 NL_SET_ERR_MSG(extack,
1853 NL_SET_ERR_MSG(extack,
1858 NL_SET_ERR_MSG(extack,
1863 NL_SET_ERR_MSG(extack, "rtm_flags must be 0 for MPLS");
1888 cfg->rc_output_label, extack))
1895 &cfg->rc_label, extack))
1899 &cfg->rc_label, extack))
1904 NL_SET_ERR_MSG(extack, "MPLS does not support RTA_GATEWAY attribute");
1910 extack))
1925 NL_SET_ERR_MSG_ATTR(extack, nla,
1935 NL_SET_ERR_MSG_ATTR(extack, nla, "Unknown attribute");
1947 struct netlink_ext_ack *extack)
1956 err = rtm_to_route_config(skb, nlh, cfg, extack);
1960 err = mpls_route_del(cfg, extack);
1969 struct netlink_ext_ack *extack)
1978 err = rtm_to_route_config(skb, nlh, cfg, extack);
1982 err = mpls_route_add(cfg, extack);
2111 struct netlink_ext_ack *extack = cb->extack;
2117 NL_SET_ERR_MSG_MOD(extack, "Invalid header for FIB dump request");
2125 NL_SET_ERR_MSG_MOD(extack, "Invalid values in header for FIB dump request");
2136 rtm_mpls_policy, extack);
2150 NL_SET_ERR_MSG_MOD(extack, "Unsupported attribute in dump request");
2303 struct netlink_ext_ack *extack)
2309 NL_SET_ERR_MSG_MOD(extack,
2316 rtm_mpls_policy, extack);
2322 NL_SET_ERR_MSG_MOD(extack, "Invalid values in header for get route request");
2326 NL_SET_ERR_MSG_MOD(extack,
2332 rtm_mpls_policy, extack);
2337 NL_SET_ERR_MSG_MOD(extack, "rtm_dst_len must be 20 for MPLS");
2350 NL_SET_ERR_MSG_MOD(extack, "Unsupported attribute in get route request");
2359 struct netlink_ext_ack *extack)
2377 err = mpls_valid_getroute_req(in_skb, in_nlh, tb, extack);
2387 &in_label, extack)) {
2392 if (!mpls_label_ok(net, &in_label, extack)) {
2424 labels, extack) != 0) {