Lines Matching refs:extack

719 		       u8 via_addr[], struct netlink_ext_ack *extack)  in nla_get_via()  argument
726 NL_SET_ERR_MSG_ATTR(extack, nla, in nla_get_via()
733 NL_SET_ERR_MSG_ATTR(extack, nla, in nla_get_via()
801 struct netlink_ext_ack *extack) in mpls_nh_build() argument
810 nh->nh_label, extack); in mpls_nh_build()
817 __mpls_nh_via(rt, nh), extack); in mpls_nh_build()
885 struct netlink_ext_ack *extack) in mpls_nh_build_multi() argument
919 max_labels, extack); in mpls_nh_build_multi()
939 struct netlink_ext_ack *extack) in mpls_label_ok() argument
945 NL_SET_ERR_MSG(extack, in mpls_label_ok()
952 NL_SET_ERR_MSG(extack, in mpls_label_ok()
962 struct netlink_ext_ack *extack) in mpls_route_add() argument
981 if (!mpls_label_ok(net, &index, extack)) in mpls_route_add()
987 NL_SET_ERR_MSG(extack, "MPLS does not support route append"); in mpls_route_add()
1017 NL_SET_ERR_MSG(extack, "Route does not contain a nexthop"); in mpls_route_add()
1033 err = mpls_nh_build_multi(cfg, rt, max_labels, extack); in mpls_route_add()
1050 struct netlink_ext_ack *extack) in mpls_route_del() argument
1058 if (!mpls_label_ok(net, &index, extack)) in mpls_route_del()
1214 struct netlink_ext_ack *extack) in mpls_netconf_valid_get_req() argument
1219 NL_SET_ERR_MSG_MOD(extack, in mpls_netconf_valid_get_req()
1227 devconf_mpls_policy, extack); in mpls_netconf_valid_get_req()
1231 devconf_mpls_policy, extack); in mpls_netconf_valid_get_req()
1243 NL_SET_ERR_MSG_MOD(extack, "Unsupported attribute in netconf get request"); in mpls_netconf_valid_get_req()
1253 struct netlink_ext_ack *extack) in mpls_netconf_get_devconf() argument
1263 err = mpls_netconf_valid_get_req(in_skb, nlh, tb, extack); in mpls_netconf_get_devconf()
1312 struct netlink_ext_ack *extack = cb->extack; in mpls_netconf_dump_devconf() local
1316 NL_SET_ERR_MSG_MOD(extack, "Invalid header for netconf dump request"); in mpls_netconf_dump_devconf()
1321 NL_SET_ERR_MSG_MOD(extack, "Invalid data after header in netconf dump request"); in mpls_netconf_dump_devconf()
1702 u32 label[], struct netlink_ext_ack *extack) in nla_get_labels() argument
1714 NL_SET_ERR_MSG_ATTR(extack, nla, in nla_get_labels()
1722 NL_SET_ERR_MSG(extack, "Too many labels"); in nla_get_labels()
1740 NL_SET_ERR_MSG_ATTR(extack, nla, in nla_get_labels()
1746 NL_SET_ERR_MSG_ATTR(extack, nla, in nla_get_labels()
1752 NL_SET_BAD_ATTR(extack, nla); in nla_get_labels()
1754 NL_SET_ERR_MSG(extack, in nla_get_labels()
1757 NL_SET_ERR_MSG(extack, in nla_get_labels()
1769 NL_SET_ERR_MSG_ATTR(extack, nla, in nla_get_labels()
1785 struct netlink_ext_ack *extack) in rtm_to_route_config() argument
1793 rtm_mpls_policy, extack); in rtm_to_route_config()
1801 NL_SET_ERR_MSG(extack, "Invalid address family in rtmsg"); in rtm_to_route_config()
1805 NL_SET_ERR_MSG(extack, "rtm_dst_len must be 20 for MPLS"); in rtm_to_route_config()
1809 NL_SET_ERR_MSG(extack, "rtm_src_len must be 0 for MPLS"); in rtm_to_route_config()
1813 NL_SET_ERR_MSG(extack, "rtm_tos must be 0 for MPLS"); in rtm_to_route_config()
1817 NL_SET_ERR_MSG(extack, in rtm_to_route_config()
1828 NL_SET_ERR_MSG(extack, in rtm_to_route_config()
1833 NL_SET_ERR_MSG(extack, in rtm_to_route_config()
1838 NL_SET_ERR_MSG(extack, "rtm_flags must be 0 for MPLS"); in rtm_to_route_config()
1863 cfg->rc_output_label, extack)) in rtm_to_route_config()
1870 &cfg->rc_label, extack)) in rtm_to_route_config()
1874 &cfg->rc_label, extack)) in rtm_to_route_config()
1879 NL_SET_ERR_MSG(extack, "MPLS does not support RTA_GATEWAY attribute"); in rtm_to_route_config()
1885 extack)) in rtm_to_route_config()
1900 NL_SET_ERR_MSG_ATTR(extack, nla, in rtm_to_route_config()
1910 NL_SET_ERR_MSG_ATTR(extack, nla, "Unknown attribute"); in rtm_to_route_config()
1922 struct netlink_ext_ack *extack) in mpls_rtm_delroute() argument
1931 err = rtm_to_route_config(skb, nlh, cfg, extack); in mpls_rtm_delroute()
1935 err = mpls_route_del(cfg, extack); in mpls_rtm_delroute()
1944 struct netlink_ext_ack *extack) in mpls_rtm_newroute() argument
1953 err = rtm_to_route_config(skb, nlh, cfg, extack); in mpls_rtm_newroute()
1957 err = mpls_route_add(cfg, extack); in mpls_rtm_newroute()
2086 struct netlink_ext_ack *extack = cb->extack; in mpls_valid_fib_dump_req() local
2092 NL_SET_ERR_MSG_MOD(extack, "Invalid header for FIB dump request"); in mpls_valid_fib_dump_req()
2100 NL_SET_ERR_MSG_MOD(extack, "Invalid values in header for FIB dump request"); in mpls_valid_fib_dump_req()
2111 rtm_mpls_policy, extack); in mpls_valid_fib_dump_req()
2125 NL_SET_ERR_MSG_MOD(extack, "Unsupported attribute in dump request"); in mpls_valid_fib_dump_req()
2282 struct netlink_ext_ack *extack) in mpls_valid_getroute_req() argument
2288 NL_SET_ERR_MSG_MOD(extack, in mpls_valid_getroute_req()
2295 rtm_mpls_policy, extack); in mpls_valid_getroute_req()
2301 NL_SET_ERR_MSG_MOD(extack, "Invalid values in header for get route request"); in mpls_valid_getroute_req()
2305 NL_SET_ERR_MSG_MOD(extack, in mpls_valid_getroute_req()
2311 rtm_mpls_policy, extack); in mpls_valid_getroute_req()
2316 NL_SET_ERR_MSG_MOD(extack, "rtm_dst_len must be 20 for MPLS"); in mpls_valid_getroute_req()
2329 NL_SET_ERR_MSG_MOD(extack, "Unsupported attribute in get route request"); in mpls_valid_getroute_req()
2338 struct netlink_ext_ack *extack) in mpls_getroute() argument
2356 err = mpls_valid_getroute_req(in_skb, in_nlh, tb, extack); in mpls_getroute()
2366 &in_label, extack)) { in mpls_getroute()
2371 if (!mpls_label_ok(net, &in_label, extack)) { in mpls_getroute()
2403 labels, extack) != 0) { in mpls_getroute()