Lines Matching refs:extack
340 struct netlink_ext_ack *extack) in qdisc_leaf() argument
346 NL_SET_ERR_MSG(extack, "Parent qdisc is not classful"); in qdisc_leaf()
352 NL_SET_ERR_MSG(extack, "Specified class not found"); in qdisc_leaf()
421 struct netlink_ext_ack *extack) in qdisc_get_rtab() argument
428 NL_SET_ERR_MSG(extack, "Invalid rate table parameters for searching"); in qdisc_get_rtab()
450 NL_SET_ERR_MSG(extack, "Failed to allocate new qdisc rate table"); in qdisc_get_rtab()
483 struct netlink_ext_ack *extack) in qdisc_get_stab() argument
493 extack); in qdisc_get_stab()
497 NL_SET_ERR_MSG(extack, "Size table base attribute is missing"); in qdisc_get_stab()
505 NL_SET_ERR_MSG(extack, "Size table data attribute is missing"); in qdisc_get_stab()
513 NL_SET_ERR_MSG(extack, "Invalid size of size table"); in qdisc_get_stab()
529 NL_SET_ERR_MSG(extack, "Invalid logarithmic size of size table"); in qdisc_get_stab()
840 struct netlink_ext_ack *extack) in qdisc_offload_graft_helper() argument
862 NL_SET_ERR_MSG(extack, "Offloading graft operation failed."); in qdisc_offload_graft_helper()
885 struct netlink_ext_ack *extack) in qdisc_offload_graft_root() argument
895 TC_SETUP_ROOT_QDISC, &graft_offload, extack); in qdisc_offload_graft_root()
900 struct netlink_ext_ack *extack) in tc_fill_qdisc() argument
968 if (extack && extack->_msg && in tc_fill_qdisc()
969 nla_put_string(skb, TCA_EXT_WARN_MSG, extack->_msg)) in tc_fill_qdisc()
994 struct netlink_ext_ack *extack) in qdisc_get_notify() argument
1005 RTM_NEWQDISC, extack) < 0) in qdisc_get_notify()
1021 struct netlink_ext_ack *extack) in qdisc_notify() argument
1035 0, RTM_DELQDISC, extack) < 0) in qdisc_notify()
1040 old ? NLM_F_REPLACE : 0, RTM_NEWQDISC, extack) < 0) in qdisc_notify()
1056 struct netlink_ext_ack *extack) in notify_and_destroy() argument
1059 qdisc_notify(net, skb, n, clid, old, new, extack); in notify_and_destroy()
1090 struct netlink_ext_ack *extack) in qdisc_graft() argument
1106 NL_SET_ERR_MSG(extack, "Device does not have an ingress queue"); in qdisc_graft()
1116 NL_SET_ERR_MSG(extack, in qdisc_graft()
1125 qdisc_offload_graft_root(dev, new, old, extack); in qdisc_graft()
1146 qdisc_notify(net, skb, n, classid, old, new, extack); in qdisc_graft()
1159 notify_and_destroy(net, skb, n, classid, old, new, extack); in qdisc_graft()
1181 NL_SET_ERR_MSG(extack, "Specified class not found"); in qdisc_graft()
1186 NL_SET_ERR_MSG(extack, "Cannot assign noqueue to a class"); in qdisc_graft()
1193 NL_SET_ERR_MSG(extack, "STAB not supported on a non root"); in qdisc_graft()
1196 err = cops->graft(parent, cl, new, &old, extack); in qdisc_graft()
1199 notify_and_destroy(net, skb, n, classid, old, new, extack); in qdisc_graft()
1205 struct netlink_ext_ack *extack) in qdisc_block_indexes_set() argument
1213 NL_SET_ERR_MSG(extack, "Ingress block index cannot be 0"); in qdisc_block_indexes_set()
1217 NL_SET_ERR_MSG(extack, "Ingress block sharing is not supported"); in qdisc_block_indexes_set()
1226 NL_SET_ERR_MSG(extack, "Egress block index cannot be 0"); in qdisc_block_indexes_set()
1230 NL_SET_ERR_MSG(extack, "Egress block sharing is not supported"); in qdisc_block_indexes_set()
1248 struct netlink_ext_ack *extack) in qdisc_create() argument
1259 NL_SET_ERR_MSG(extack, "Specified qdisc kind is unknown"); in qdisc_create()
1263 sch = qdisc_alloc(dev_queue, ops, extack); in qdisc_create()
1273 NL_SET_ERR_MSG(extack, in qdisc_create()
1283 NL_SET_ERR_MSG(extack, "Maximum number of qdisc handles was exceeded"); in qdisc_create()
1305 err = qdisc_block_indexes_set(sch, tca, extack); in qdisc_create()
1310 stab = qdisc_get_stab(tca[TCA_STAB], extack); in qdisc_create()
1319 err = ops->init(sch, tca[TCA_OPTIONS], extack); in qdisc_create()
1327 NL_SET_ERR_MSG(extack, "Cannot attach rate estimator to a multi-queue root qdisc"); in qdisc_create()
1338 NL_SET_ERR_MSG(extack, "Failed to generate new estimator"); in qdisc_create()
1367 struct netlink_ext_ack *extack) in qdisc_change() argument
1374 NL_SET_ERR_MSG(extack, "Change operation not supported by specified qdisc"); in qdisc_change()
1378 NL_SET_ERR_MSG(extack, "Change of blocks is not supported"); in qdisc_change()
1381 err = sch->ops->change(sch, tca[TCA_OPTIONS], extack); in qdisc_change()
1387 stab = qdisc_get_stab(tca[TCA_STAB], extack); in qdisc_change()
1468 struct netlink_ext_ack *extack, in __tc_get_qdisc() argument
1485 NL_SET_ERR_MSG(extack, "Failed to find qdisc with specified classid"); in __tc_get_qdisc()
1488 q = qdisc_leaf(p, clid, extack); in __tc_get_qdisc()
1496 NL_SET_ERR_MSG(extack, "Cannot find specified qdisc on specified device"); in __tc_get_qdisc()
1503 NL_SET_ERR_MSG(extack, "Invalid handle"); in __tc_get_qdisc()
1509 NL_SET_ERR_MSG(extack, "Failed to find qdisc with specified handle"); in __tc_get_qdisc()
1515 NL_SET_ERR_MSG(extack, "Invalid qdisc name: must match existing qdisc"); in __tc_get_qdisc()
1521 NL_SET_ERR_MSG(extack, "Classid cannot be zero"); in __tc_get_qdisc()
1525 NL_SET_ERR_MSG(extack, "Cannot delete qdisc with handle of zero"); in __tc_get_qdisc()
1528 err = qdisc_graft(dev, p, skb, n, clid, NULL, q, extack); in __tc_get_qdisc()
1538 struct netlink_ext_ack *extack) in tc_get_qdisc() argument
1547 rtm_tca_policy, extack); in tc_get_qdisc()
1556 err = __tc_get_qdisc(skb, n, extack, dev, tca, tcm); in tc_get_qdisc()
1582 struct netlink_ext_ack *extack, in __tc_modify_qdisc() argument
1599 NL_SET_ERR_MSG(extack, "Failed to find specified qdisc"); in __tc_modify_qdisc()
1603 NL_SET_ERR_MSG(extack, in __tc_modify_qdisc()
1607 q = qdisc_leaf(p, clid, extack); in __tc_modify_qdisc()
1624 NL_SET_ERR_MSG(extack, "NLM_F_REPLACE needed to override"); in __tc_modify_qdisc()
1628 NL_SET_ERR_MSG(extack, "Invalid minor handle"); in __tc_modify_qdisc()
1635 NL_SET_ERR_MSG(extack, "Cannot move an existing qdisc to a different parent"); in __tc_modify_qdisc()
1639 NL_SET_ERR_MSG(extack, "Exclusivity flag on, cannot override"); in __tc_modify_qdisc()
1644 NL_SET_ERR_MSG(extack, "Invalid qdisc name: must match existing qdisc"); in __tc_modify_qdisc()
1648 NL_SET_ERR_MSG(extack, in __tc_modify_qdisc()
1654 NL_SET_ERR_MSG(extack, "Qdisc parent/child loop detected"); in __tc_modify_qdisc()
1658 NL_SET_ERR_MSG(extack, "Ingress cannot graft directly"); in __tc_modify_qdisc()
1704 NL_SET_ERR_MSG(extack, "Handle cannot be zero"); in __tc_modify_qdisc()
1712 NL_SET_ERR_MSG(extack, "Specified qdisc not found"); in __tc_modify_qdisc()
1716 NL_SET_ERR_MSG(extack, "Exclusivity flag on, cannot modify"); in __tc_modify_qdisc()
1720 NL_SET_ERR_MSG(extack, "Invalid qdisc name: must match existing qdisc"); in __tc_modify_qdisc()
1723 err = qdisc_change(q, tca, extack); in __tc_modify_qdisc()
1725 qdisc_notify(sock_net(skb->sk), skb, n, clid, NULL, q, extack); in __tc_modify_qdisc()
1730 NL_SET_ERR_MSG(extack, "Qdisc not found. To create specify NLM_F_CREATE flag"); in __tc_modify_qdisc()
1738 tca, &err, extack); in __tc_modify_qdisc()
1740 NL_SET_ERR_MSG(extack, "Cannot find ingress queue for specified device"); in __tc_modify_qdisc()
1755 tca, &err, extack); in __tc_modify_qdisc()
1761 err = qdisc_graft(dev, p, skb, n, clid, q, NULL, extack); in __tc_modify_qdisc()
1796 struct netlink_ext_ack *extack) in tc_modify_qdisc() argument
1805 rtm_tca_policy, extack); in tc_modify_qdisc()
1817 err = __tc_modify_qdisc(skb, n, extack, dev, tca, tcm); in tc_modify_qdisc()
1894 rtm_tca_policy, cb->extack); in tc_dump_qdisc()
1944 int event, struct netlink_ext_ack *extack) in tc_fill_tclass() argument
1979 if (extack && extack->_msg && in tc_fill_tclass()
1980 nla_put_string(skb, TCA_EXT_WARN_MSG, extack->_msg)) in tc_fill_tclass()
1995 unsigned long cl, int event, struct netlink_ext_ack *extack) in tclass_notify() argument
2007 if (tc_fill_tclass(skb, q, cl, portid, n->nlmsg_seq, 0, event, extack) < 0) { in tclass_notify()
2018 unsigned long cl, struct netlink_ext_ack *extack) in tclass_get_notify() argument
2028 extack) < 0) { in tclass_get_notify()
2041 struct netlink_ext_ack *extack) in tclass_del_notify() argument
2056 RTM_DELTCLASS, extack) < 0) { in tclass_del_notify()
2064 err = cops->delete(q, cl, extack); in tclass_del_notify()
2161 struct netlink_ext_ack *extack, in __tc_ctl_tclass() argument
2252 err = tclass_del_notify(net, cops, skb, n, q, cl, extack); in __tc_ctl_tclass()
2257 err = tclass_get_notify(net, skb, n, q, cl, extack); in __tc_ctl_tclass()
2266 NL_SET_ERR_MSG(extack, "Shared blocks are not supported for classes"); in __tc_ctl_tclass()
2272 NL_SET_ERR_MSG(extack, "Cannot create traffic class with classid TC_H_ROOT"); in __tc_ctl_tclass()
2279 err = cops->change(q, clid, portid, tca, &new_cl, extack); in __tc_ctl_tclass()
2281 tclass_notify(net, skb, n, q, new_cl, RTM_NEWTCLASS, extack); in __tc_ctl_tclass()
2291 struct netlink_ext_ack *extack) in tc_ctl_tclass() argument
2300 rtm_tca_policy, extack); in tc_ctl_tclass()
2309 err = __tc_ctl_tclass(skb, n, extack, dev, tca, tcm); in tc_ctl_tclass()