Lines Matching refs:extack
63 tcf_proto_lookup_ops(const char *kind, struct netlink_ext_ack *extack) in tcf_proto_lookup_ops() argument
85 NL_SET_ERR_MSG(extack, "TC classifier not found"); in tcf_proto_lookup_ops()
156 struct netlink_ext_ack *extack) in tcf_proto_create() argument
165 tp->ops = tcf_proto_lookup_ops(kind, extack); in tcf_proto_create()
188 struct netlink_ext_ack *extack) in tcf_proto_destroy() argument
190 tp->ops->destroy(tp, extack); in tcf_proto_destroy()
377 struct netlink_ext_ack *extack) in tcf_block_offload_cmd() argument
384 bo.extack = extack; in tcf_block_offload_cmd()
390 struct netlink_ext_ack *extack) in tcf_block_offload_bind() argument
402 NL_SET_ERR_MSG(extack, "Bind to offloaded block failed as dev has offload disabled"); in tcf_block_offload_bind()
406 err = tcf_block_offload_cmd(block, dev, ei, TC_BLOCK_BIND, extack); in tcf_block_offload_bind()
438 struct netlink_ext_ack *extack) in tcf_chain0_head_change_cb_add() argument
445 NL_SET_ERR_MSG(extack, "Memory allocation for head change callback item failed"); in tcf_chain0_head_change_cb_add()
484 struct netlink_ext_ack *extack) in tcf_block_insert() argument
501 struct netlink_ext_ack *extack) in tcf_block_create() argument
507 NL_SET_ERR_MSG(extack, "Memory allocation for block failed"); in tcf_block_create()
539 struct netlink_ext_ack *extack) in tcf_block_find() argument
546 NL_SET_ERR_MSG(extack, "Block of given index was not found"); in tcf_block_find()
565 NL_SET_ERR_MSG(extack, "Parent Qdisc doesn't exists"); in tcf_block_find()
573 NL_SET_ERR_MSG(extack, "Qdisc not classful"); in tcf_block_find()
578 NL_SET_ERR_MSG(extack, "Class doesn't support blocks"); in tcf_block_find()
586 NL_SET_ERR_MSG(extack, "Specified class doesn't exist"); in tcf_block_find()
592 block = cops->tcf_block(*q, *cl, extack); in tcf_block_find()
596 …NL_SET_ERR_MSG(extack, "This filter block is shared. Please use the block index to manipulate the … in tcf_block_find()
665 struct netlink_ext_ack *extack) in tcf_block_get_ext() argument
680 block = tcf_block_create(net, q, ei->block_index, extack); in tcf_block_get_ext()
685 err = tcf_block_insert(block, net, extack); in tcf_block_get_ext()
697 err = tcf_chain0_head_change_cb_add(block, ei, extack); in tcf_block_get_ext()
701 err = tcf_block_offload_bind(block, q, ei, extack); in tcf_block_get_ext()
734 struct netlink_ext_ack *extack) in tcf_block_get() argument
742 return tcf_block_get_ext(p_block, q, &ei, extack); in tcf_block_get()
842 struct netlink_ext_ack *extack) in tcf_block_playback_offloads() argument
853 extack); in tcf_block_playback_offloads()
858 NL_SET_ERR_MSG(extack, "Filter HW offload failed - classifier without re-offloading support"); in tcf_block_playback_offloads()
868 extack); in tcf_block_playback_offloads()
875 struct netlink_ext_ack *extack) in __tcf_block_cb_register() argument
883 extack); in __tcf_block_cb_register()
900 void *cb_priv, struct netlink_ext_ack *extack) in tcf_block_cb_register() argument
905 extack); in tcf_block_cb_register()
1143 struct netlink_ext_ack *extack) in tfilter_del_notify() argument
1155 NL_SET_ERR_MSG(extack, "Failed to build del event notification"); in tfilter_del_notify()
1160 err = tp->ops->delete(tp, fh, last, extack); in tfilter_del_notify()
1172 NL_SET_ERR_MSG(extack, "Failed to send filter delete notification"); in tfilter_del_notify()
1190 struct netlink_ext_ack *extack) in tc_new_tfilter() argument
1216 err = nlmsg_parse(n, sizeof(*t), tca, TCA_MAX, rtm_tca_policy, extack); in tc_new_tfilter()
1235 NL_SET_ERR_MSG(extack, "Invalid filter command with priority of zero"); in tc_new_tfilter()
1243 t->tcm_ifindex, t->tcm_block_index, extack); in tc_new_tfilter()
1251 NL_SET_ERR_MSG(extack, "Specified chain index exceeds upper limit"); in tc_new_tfilter()
1257 NL_SET_ERR_MSG(extack, "Cannot create specified filter chain"); in tc_new_tfilter()
1265 NL_SET_ERR_MSG(extack, "Filter with specified priority/protocol not found"); in tc_new_tfilter()
1274 NL_SET_ERR_MSG(extack, "Filter kind and protocol must be specified"); in tc_new_tfilter()
1280 NL_SET_ERR_MSG(extack, "Need both RTM_NEWTFILTER and NLM_F_CREATE to create a new filter"); in tc_new_tfilter()
1289 protocol, prio, chain, extack); in tc_new_tfilter()
1296 NL_SET_ERR_MSG(extack, "Specified filter kind does not match existing one"); in tc_new_tfilter()
1305 NL_SET_ERR_MSG(extack, "Need both RTM_NEWTFILTER and NLM_F_CREATE to create a new filter"); in tc_new_tfilter()
1310 NL_SET_ERR_MSG(extack, "Filter already exists"); in tc_new_tfilter()
1316 NL_SET_ERR_MSG(extack, "Chain template is set to a different filter kind"); in tc_new_tfilter()
1323 extack); in tc_new_tfilter()
1344 struct netlink_ext_ack *extack) in tc_del_tfilter() argument
1365 err = nlmsg_parse(n, sizeof(*t), tca, TCA_MAX, rtm_tca_policy, extack); in tc_del_tfilter()
1375 NL_SET_ERR_MSG(extack, "Cannot flush filters with protocol, handle or kind set"); in tc_del_tfilter()
1382 t->tcm_ifindex, t->tcm_block_index, extack); in tc_del_tfilter()
1390 NL_SET_ERR_MSG(extack, "Specified chain index exceeds upper limit"); in tc_del_tfilter()
1403 NL_SET_ERR_MSG(extack, "Cannot find specified filter chain"); in tc_del_tfilter()
1419 NL_SET_ERR_MSG(extack, "Filter with specified priority/protocol not found"); in tc_del_tfilter()
1423 NL_SET_ERR_MSG(extack, "Specified filter kind does not match existing one"); in tc_del_tfilter()
1435 tcf_proto_destroy(tp, extack); in tc_del_tfilter()
1438 NL_SET_ERR_MSG(extack, "Specified filter handle not found"); in tc_del_tfilter()
1446 extack); in tc_del_tfilter()
1451 tcf_proto_destroy(tp, extack); in tc_del_tfilter()
1462 struct netlink_ext_ack *extack) in tc_get_tfilter() argument
1480 err = nlmsg_parse(n, sizeof(*t), tca, TCA_MAX, rtm_tca_policy, extack); in tc_get_tfilter()
1490 NL_SET_ERR_MSG(extack, "Invalid filter command with priority of zero"); in tc_get_tfilter()
1497 t->tcm_ifindex, t->tcm_block_index, extack); in tc_get_tfilter()
1505 NL_SET_ERR_MSG(extack, "Specified chain index exceeds upper limit"); in tc_get_tfilter()
1511 NL_SET_ERR_MSG(extack, "Cannot find specified filter chain"); in tc_get_tfilter()
1519 NL_SET_ERR_MSG(extack, "Filter with specified priority/protocol not found"); in tc_get_tfilter()
1523 NL_SET_ERR_MSG(extack, "Specified filter kind does not match existing one"); in tc_get_tfilter()
1531 NL_SET_ERR_MSG(extack, "Specified filter handle not found"); in tc_get_tfilter()
1537 NL_SET_ERR_MSG(extack, "Failed to send filter notify message"); in tc_get_tfilter()
1783 struct netlink_ext_ack *extack) in tc_chain_tmplt_add() argument
1792 ops = tcf_proto_lookup_ops(nla_data(tca[TCA_KIND]), extack); in tc_chain_tmplt_add()
1796 NL_SET_ERR_MSG(extack, "Chain templates are not supported with specified classifier"); in tc_chain_tmplt_add()
1800 tmplt_priv = ops->tmplt_create(net, chain, tca, extack); in tc_chain_tmplt_add()
1825 struct netlink_ext_ack *extack) in tc_ctl_chain() argument
1843 err = nlmsg_parse(n, sizeof(*t), tca, TCA_MAX, rtm_tca_policy, extack); in tc_ctl_chain()
1852 t->tcm_ifindex, t->tcm_block_index, extack); in tc_ctl_chain()
1858 NL_SET_ERR_MSG(extack, "Specified chain index exceeds upper limit"); in tc_ctl_chain()
1870 NL_SET_ERR_MSG(extack, "Filter chain already exists"); in tc_ctl_chain()
1875 NL_SET_ERR_MSG(extack, "Need both RTM_NEWCHAIN and NLM_F_CREATE to create a new chain"); in tc_ctl_chain()
1880 NL_SET_ERR_MSG(extack, "Failed to create filter chain"); in tc_ctl_chain()
1886 NL_SET_ERR_MSG(extack, "Cannot find specified filter chain"); in tc_ctl_chain()
1894 err = tc_chain_tmplt_add(chain, net, tca, extack); in tc_ctl_chain()
1921 NL_SET_ERR_MSG(extack, "Failed to send chain notify message"); in tc_ctl_chain()
1925 NL_SET_ERR_MSG(extack, "Unsupported message type"); in tc_ctl_chain()
2048 struct netlink_ext_ack *extack) in tcf_exts_validate() argument
2058 TCA_ACT_BIND, true, extack); in tcf_exts_validate()
2071 extack); in tcf_exts_validate()
2081 …NL_SET_ERR_MSG(extack, "Classifier actions are not supported per compile options (CONFIG_NET_CLS_A… in tcf_exts_validate()