Lines Matching defs:extack
250 struct netlink_ext_ack *extack)
274 NL_SET_ERR_MSG(extack, "TC classifier not found");
375 struct netlink_ext_ack *extack)
384 tp->ops = tcf_proto_lookup_ops(kind, rtnl_held, extack);
416 bool sig_destroy, struct netlink_ext_ack *extack)
418 tp->ops->destroy(tp, rtnl_held, extack);
427 struct netlink_ext_ack *extack)
430 tcf_proto_destroy(tp, rtnl_held, true, extack);
594 struct netlink_ext_ack *extack);
752 bool shared, struct netlink_ext_ack *extack)
759 bo->extack = extack;
773 struct netlink_ext_ack extack = {};
779 &extack);
798 struct netlink_ext_ack *extack)
804 extack);
812 NL_SET_ERR_MSG(extack, "Driver ndo_setup_tc failed");
828 struct netlink_ext_ack *extack)
841 NL_SET_ERR_MSG(extack, "Bind to offloaded block failed as dev has offload disabled");
846 err = tcf_block_offload_cmd(block, dev, q, ei, FLOW_BLOCK_BIND, extack);
887 struct netlink_ext_ack *extack)
894 NL_SET_ERR_MSG(extack, "Memory allocation for head change callback item failed");
960 struct netlink_ext_ack *extack)
986 struct netlink_ext_ack *extack)
992 NL_SET_ERR_MSG(extack, "Memory allocation for block failed");
1151 struct netlink_ext_ack *extack)
1176 NL_SET_ERR_MSG(extack, "Parent Qdisc doesn't exists");
1184 NL_SET_ERR_MSG(extack, "Parent Qdisc doesn't exists");
1192 NL_SET_ERR_MSG(extack, "Qdisc not classful");
1198 NL_SET_ERR_MSG(extack, "Class doesn't support blocks");
1225 int ifindex, struct netlink_ext_ack *extack)
1236 NL_SET_ERR_MSG(extack, "Specified class doesn't exist");
1247 struct netlink_ext_ack *extack)
1254 NL_SET_ERR_MSG(extack, "Block of given index was not found");
1260 block = cops->tcf_block(q, cl, extack);
1265 NL_SET_ERR_MSG(extack, "This filter block is shared. Please use the block index to manipulate the filters");
1321 struct netlink_ext_ack *extack)
1328 err = __tcf_qdisc_find(net, q, parent, ifindex, true, extack);
1332 err = __tcf_qdisc_cl_find(*q, *parent, cl, ifindex, extack);
1336 block = __tcf_block_find(net, *q, *cl, ifindex, block_index, extack);
1427 struct netlink_ext_ack *extack)
1438 block = tcf_block_create(net, q, ei->block_index, extack);
1442 err = tcf_block_insert(block, net, extack);
1454 err = tcf_chain0_head_change_cb_add(block, ei, extack);
1458 err = tcf_block_offload_bind(block, q, ei, extack);
1485 struct netlink_ext_ack *extack)
1493 return tcf_block_get_ext(p_block, q, &ei, extack);
1526 struct netlink_ext_ack *extack)
1548 extack);
1553 NL_SET_ERR_MSG(extack, "Filter HW offload failed - classifier without re-offloading support");
1568 extack);
1584 bo->extack);
1898 struct netlink_ext_ack *extack)
1934 tcf_proto_put(tp, rtnl_held, extack);
1975 struct netlink_ext_ack *extack)
2016 if (extack && extack->_msg &&
2017 nla_put_string(skb, TCA_EXT_WARN_MSG, extack->_msg))
2035 bool rtnl_held, struct netlink_ext_ack *extack)
2047 false, rtnl_held, extack) <= 0) {
2064 bool rtnl_held, struct netlink_ext_ack *extack)
2076 false, rtnl_held, extack) <= 0) {
2077 NL_SET_ERR_MSG(extack, "Failed to build del event notification");
2082 err = tp->ops->delete(tp, fh, last, rtnl_held, extack);
2094 NL_SET_ERR_MSG(extack, "Failed to send filter delete notification");
2103 struct netlink_ext_ack *extack)
2110 event, false, true, extack);
2125 struct netlink_ext_ack *extack)
2152 rtm_tca_policy, extack);
2176 NL_SET_ERR_MSG(extack, "Invalid filter command with priority of zero");
2183 err = __tcf_qdisc_find(net, &q, &parent, t->tcm_ifindex, false, extack);
2188 NL_SET_ERR_MSG(extack, "Specified TC filter name too long");
2204 err = __tcf_qdisc_cl_find(q, parent, &cl, t->tcm_ifindex, extack);
2209 extack);
2218 NL_SET_ERR_MSG(extack, "Specified chain index exceeds upper limit");
2224 NL_SET_ERR_MSG(extack, "Cannot create specified filter chain");
2233 NL_SET_ERR_MSG(extack, "Filter with specified priority/protocol not found");
2249 NL_SET_ERR_MSG(extack, "Filter kind and protocol must be specified");
2255 NL_SET_ERR_MSG(extack, "Need both RTM_NEWTFILTER and NLM_F_CREATE to create a new filter");
2266 rtnl_held, extack);
2284 NL_SET_ERR_MSG(extack, "Specified filter kind does not match existing one");
2293 NL_SET_ERR_MSG(extack, "Need both RTM_NEWTFILTER and NLM_F_CREATE to create a new filter");
2299 NL_SET_ERR_MSG(extack, "Filter already exists");
2306 NL_SET_ERR_MSG(extack, "Chain template is set to a different filter kind");
2318 flags, extack);
2321 RTM_NEWTFILTER, false, rtnl_held, extack);
2359 struct netlink_ext_ack *extack)
2380 rtm_tca_policy, extack);
2390 NL_SET_ERR_MSG(extack, "Cannot flush filters with protocol, handle or kind set");
2396 err = __tcf_qdisc_find(net, &q, &parent, t->tcm_ifindex, false, extack);
2401 NL_SET_ERR_MSG(extack, "Specified TC filter name too long");
2416 err = __tcf_qdisc_cl_find(q, parent, &cl, t->tcm_ifindex, extack);
2421 extack);
2429 NL_SET_ERR_MSG(extack, "Specified chain index exceeds upper limit");
2442 NL_SET_ERR_MSG(extack, "Cannot find specified filter chain");
2449 chain, RTM_DELTFILTER, extack);
2459 NL_SET_ERR_MSG(extack, "Filter with specified priority/protocol not found");
2463 NL_SET_ERR_MSG(extack, "Specified filter kind does not match existing one");
2473 RTM_DELTFILTER, false, rtnl_held, extack);
2482 NL_SET_ERR_MSG(extack, "Specified filter handle not found");
2489 rtnl_held, extack);
2494 tcf_chain_tp_delete_empty(chain, tp, rtnl_held, extack);
2516 struct netlink_ext_ack *extack)
2537 rtm_tca_policy, extack);
2547 NL_SET_ERR_MSG(extack, "Invalid filter command with priority of zero");
2553 err = __tcf_qdisc_find(net, &q, &parent, t->tcm_ifindex, false, extack);
2558 NL_SET_ERR_MSG(extack, "Specified TC filter name too long");
2572 err = __tcf_qdisc_cl_find(q, parent, &cl, t->tcm_ifindex, extack);
2577 extack);
2585 NL_SET_ERR_MSG(extack, "Specified chain index exceeds upper limit");
2591 NL_SET_ERR_MSG(extack, "Cannot find specified filter chain");
2601 NL_SET_ERR_MSG(extack, "Filter with specified priority/protocol not found");
2605 NL_SET_ERR_MSG(extack, "Specified filter kind does not match existing one");
2613 NL_SET_ERR_MSG(extack, "Specified filter handle not found");
2619 NL_SET_ERR_MSG(extack, "Failed to send filter notify message");
2742 tcf_tfilter_dump_policy, cb->extack);
2833 struct netlink_ext_ack *extack)
2870 if (extack && extack->_msg &&
2871 nla_put_string(skb, TCA_EXT_WARN_MSG, extack->_msg))
2886 struct netlink_ext_ack *extack)
2900 seq, flags, event, extack) <= 0) {
2941 struct netlink_ext_ack *extack)
2952 NL_SET_ERR_MSG(extack, "Specified TC chain template name too long");
2956 ops = tcf_proto_lookup_ops(name, true, extack);
2961 NL_SET_ERR_MSG(extack, "Chain templates are not supported with specified classifier");
2966 tmplt_priv = ops->tmplt_create(net, chain, tca, extack);
2990 struct netlink_ext_ack *extack)
3006 rtm_tca_policy, extack);
3015 t->tcm_ifindex, t->tcm_block_index, extack);
3021 NL_SET_ERR_MSG(extack, "Specified chain index exceeds upper limit");
3036 NL_SET_ERR_MSG(extack, "Filter chain already exists");
3042 NL_SET_ERR_MSG(extack, "Need both RTM_NEWCHAIN and NLM_F_CREATE to create a new chain");
3048 NL_SET_ERR_MSG(extack, "Failed to create filter chain");
3055 NL_SET_ERR_MSG(extack, "Cannot find specified filter chain");
3075 err = tc_chain_tmplt_add(chain, net, tca, extack);
3082 RTM_NEWCHAIN, false, extack);
3086 chain, RTM_DELTFILTER, extack);
3096 n->nlmsg_flags, n->nlmsg_type, true, extack);
3098 NL_SET_ERR_MSG(extack, "Failed to send chain notify message");
3102 NL_SET_ERR_MSG(extack, "Unsupported message type");
3137 rtm_tca_policy, cb->extack);
3271 u32 flags, u32 fl_flags, struct netlink_ext_ack *extack)
3284 extack);
3290 extack);
3306 extack);
3315 NL_SET_ERR_MSG(extack, "Classifier actions are not supported per compile options (CONFIG_NET_CLS_ACT)");
3326 u32 flags, struct netlink_ext_ack *extack)
3329 flags, 0, extack);
3731 struct netlink_ext_ack *extack)
3736 extack);
3738 NL_SET_ERR_MSG(extack, "Action does not support offload");
3749 struct netlink_ext_ack *extack)
3772 err = tc_setup_offload_act(act, entry, &index, extack);
3801 struct netlink_ext_ack *extack)
3812 extack);
3838 struct netlink_ext_ack *extack)
3842 NL_SET_ERR_MSG(extack, "Block number may not be zero");
3852 struct netlink_ext_ack *extack)
3860 err = tcf_qevent_parse_block_index(block_index_attr, &block_index, extack);
3869 return tcf_block_get_ext(&qe->block, sch, &qe->info, extack);
3881 struct netlink_ext_ack *extack)
3889 err = tcf_qevent_parse_block_index(block_index_attr, &block_index, extack);
3895 NL_SET_ERR_MSG(extack, "Change of blocks is not supported");