Lines Matching refs:extack

129 		     struct netlink_ext_ack *extack)  in tcf_proto_lookup_ops()  argument
153 NL_SET_ERR_MSG(extack, "TC classifier not found"); in tcf_proto_lookup_ops()
253 struct netlink_ext_ack *extack) in tcf_proto_create() argument
262 tp->ops = tcf_proto_lookup_ops(kind, rtnl_held, extack); in tcf_proto_create()
294 bool sig_destroy, struct netlink_ext_ack *extack) in tcf_proto_destroy() argument
296 tp->ops->destroy(tp, rtnl_held, extack); in tcf_proto_destroy()
305 struct netlink_ext_ack *extack) in tcf_proto_put() argument
308 tcf_proto_destroy(tp, rtnl_held, true, extack); in tcf_proto_put()
691 struct netlink_ext_ack *extack) in tc_indr_block_call() argument
699 .extack = extack, in tc_indr_block_call()
716 struct netlink_ext_ack *extack) in tcf_block_offload_cmd() argument
726 bo.extack = extack; in tcf_block_offload_cmd()
738 struct netlink_ext_ack *extack) in tcf_block_offload_bind() argument
751 NL_SET_ERR_MSG(extack, "Bind to offloaded block failed as dev has offload disabled"); in tcf_block_offload_bind()
756 err = tcf_block_offload_cmd(block, dev, ei, FLOW_BLOCK_BIND, extack); in tcf_block_offload_bind()
762 tc_indr_block_call(block, dev, ei, FLOW_BLOCK_BIND, extack); in tcf_block_offload_bind()
773 tc_indr_block_call(block, dev, ei, FLOW_BLOCK_BIND, extack); in tcf_block_offload_bind()
804 struct netlink_ext_ack *extack) in tcf_chain0_head_change_cb_add() argument
811 NL_SET_ERR_MSG(extack, "Memory allocation for head change callback item failed"); in tcf_chain0_head_change_cb_add()
877 struct netlink_ext_ack *extack) in tcf_block_insert() argument
903 struct netlink_ext_ack *extack) in tcf_block_create() argument
909 NL_SET_ERR_MSG(extack, "Memory allocation for block failed"); in tcf_block_create()
1069 struct netlink_ext_ack *extack) in __tcf_qdisc_find() argument
1094 NL_SET_ERR_MSG(extack, "Parent Qdisc doesn't exists"); in __tcf_qdisc_find()
1102 NL_SET_ERR_MSG(extack, "Parent Qdisc doesn't exists"); in __tcf_qdisc_find()
1110 NL_SET_ERR_MSG(extack, "Qdisc not classful"); in __tcf_qdisc_find()
1116 NL_SET_ERR_MSG(extack, "Class doesn't support blocks"); in __tcf_qdisc_find()
1143 int ifindex, struct netlink_ext_ack *extack) in __tcf_qdisc_cl_find() argument
1154 NL_SET_ERR_MSG(extack, "Specified class doesn't exist"); in __tcf_qdisc_cl_find()
1165 struct netlink_ext_ack *extack) in __tcf_block_find() argument
1172 NL_SET_ERR_MSG(extack, "Block of given index was not found"); in __tcf_block_find()
1178 block = cops->tcf_block(q, cl, extack); in __tcf_block_find()
1183 …NL_SET_ERR_MSG(extack, "This filter block is shared. Please use the block index to manipulate the … in __tcf_block_find()
1239 struct netlink_ext_ack *extack) in tcf_block_find() argument
1246 err = __tcf_qdisc_find(net, q, parent, ifindex, true, extack); in tcf_block_find()
1250 err = __tcf_qdisc_cl_find(*q, *parent, cl, ifindex, extack); in tcf_block_find()
1254 block = __tcf_block_find(net, *q, *cl, ifindex, block_index, extack); in tcf_block_find()
1345 struct netlink_ext_ack *extack) in tcf_block_get_ext() argument
1356 block = tcf_block_create(net, q, ei->block_index, extack); in tcf_block_get_ext()
1360 err = tcf_block_insert(block, net, extack); in tcf_block_get_ext()
1372 err = tcf_chain0_head_change_cb_add(block, ei, extack); in tcf_block_get_ext()
1376 err = tcf_block_offload_bind(block, q, ei, extack); in tcf_block_get_ext()
1403 struct netlink_ext_ack *extack) in tcf_block_get() argument
1411 return tcf_block_get_ext(p_block, q, &ei, extack); in tcf_block_get()
1444 struct netlink_ext_ack *extack) in tcf_block_playback_offloads() argument
1463 extack); in tcf_block_playback_offloads()
1468 NL_SET_ERR_MSG(extack, "Filter HW offload failed - classifier without re-offloading support"); in tcf_block_playback_offloads()
1480 extack); in tcf_block_playback_offloads()
1496 bo->extack); in tcf_block_bind()
1716 struct netlink_ext_ack *extack) in tcf_chain_tp_delete_empty() argument
1752 tcf_proto_put(tp, rtnl_held, extack); in tcf_chain_tp_delete_empty()
1869 bool rtnl_held, struct netlink_ext_ack *extack) in tfilter_del_notify() argument
1882 NL_SET_ERR_MSG(extack, "Failed to build del event notification"); in tfilter_del_notify()
1887 err = tp->ops->delete(tp, fh, last, rtnl_held, extack); in tfilter_del_notify()
1899 NL_SET_ERR_MSG(extack, "Failed to send filter delete notification"); in tfilter_del_notify()
1927 struct netlink_ext_ack *extack) in tc_new_tfilter() argument
1956 rtm_tca_policy, extack); in tc_new_tfilter()
1977 NL_SET_ERR_MSG(extack, "Invalid filter command with priority of zero"); in tc_new_tfilter()
1984 err = __tcf_qdisc_find(net, &q, &parent, t->tcm_ifindex, false, extack); in tc_new_tfilter()
1989 NL_SET_ERR_MSG(extack, "Specified TC filter name too long"); in tc_new_tfilter()
2005 err = __tcf_qdisc_cl_find(q, parent, &cl, t->tcm_ifindex, extack); in tc_new_tfilter()
2010 extack); in tc_new_tfilter()
2018 NL_SET_ERR_MSG(extack, "Specified chain index exceeds upper limit"); in tc_new_tfilter()
2024 NL_SET_ERR_MSG(extack, "Cannot create specified filter chain"); in tc_new_tfilter()
2033 NL_SET_ERR_MSG(extack, "Filter with specified priority/protocol not found"); in tc_new_tfilter()
2049 NL_SET_ERR_MSG(extack, "Filter kind and protocol must be specified"); in tc_new_tfilter()
2055 NL_SET_ERR_MSG(extack, "Need both RTM_NEWTFILTER and NLM_F_CREATE to create a new filter"); in tc_new_tfilter()
2067 extack); in tc_new_tfilter()
2085 NL_SET_ERR_MSG(extack, "Specified filter kind does not match existing one"); in tc_new_tfilter()
2094 NL_SET_ERR_MSG(extack, "Need both RTM_NEWTFILTER and NLM_F_CREATE to create a new filter"); in tc_new_tfilter()
2100 NL_SET_ERR_MSG(extack, "Filter already exists"); in tc_new_tfilter()
2106 NL_SET_ERR_MSG(extack, "Chain template is set to a different filter kind"); in tc_new_tfilter()
2113 rtnl_held, extack); in tc_new_tfilter()
2154 struct netlink_ext_ack *extack) in tc_del_tfilter() argument
2178 rtm_tca_policy, extack); in tc_del_tfilter()
2188 NL_SET_ERR_MSG(extack, "Cannot flush filters with protocol, handle or kind set"); in tc_del_tfilter()
2194 err = __tcf_qdisc_find(net, &q, &parent, t->tcm_ifindex, false, extack); in tc_del_tfilter()
2199 NL_SET_ERR_MSG(extack, "Specified TC filter name too long"); in tc_del_tfilter()
2214 err = __tcf_qdisc_cl_find(q, parent, &cl, t->tcm_ifindex, extack); in tc_del_tfilter()
2219 extack); in tc_del_tfilter()
2227 NL_SET_ERR_MSG(extack, "Specified chain index exceeds upper limit"); in tc_del_tfilter()
2240 NL_SET_ERR_MSG(extack, "Cannot find specified filter chain"); in tc_del_tfilter()
2257 NL_SET_ERR_MSG(extack, "Filter with specified priority/protocol not found"); in tc_del_tfilter()
2261 NL_SET_ERR_MSG(extack, "Specified filter kind does not match existing one"); in tc_del_tfilter()
2280 NL_SET_ERR_MSG(extack, "Specified filter handle not found"); in tc_del_tfilter()
2287 rtnl_held, extack); in tc_del_tfilter()
2292 tcf_chain_tp_delete_empty(chain, tp, rtnl_held, extack); in tc_del_tfilter()
2314 struct netlink_ext_ack *extack) in tc_get_tfilter() argument
2335 rtm_tca_policy, extack); in tc_get_tfilter()
2345 NL_SET_ERR_MSG(extack, "Invalid filter command with priority of zero"); in tc_get_tfilter()
2351 err = __tcf_qdisc_find(net, &q, &parent, t->tcm_ifindex, false, extack); in tc_get_tfilter()
2356 NL_SET_ERR_MSG(extack, "Specified TC filter name too long"); in tc_get_tfilter()
2370 err = __tcf_qdisc_cl_find(q, parent, &cl, t->tcm_ifindex, extack); in tc_get_tfilter()
2375 extack); in tc_get_tfilter()
2383 NL_SET_ERR_MSG(extack, "Specified chain index exceeds upper limit"); in tc_get_tfilter()
2389 NL_SET_ERR_MSG(extack, "Cannot find specified filter chain"); in tc_get_tfilter()
2399 NL_SET_ERR_MSG(extack, "Filter with specified priority/protocol not found"); in tc_get_tfilter()
2403 NL_SET_ERR_MSG(extack, "Specified filter kind does not match existing one"); in tc_get_tfilter()
2411 NL_SET_ERR_MSG(extack, "Specified filter handle not found"); in tc_get_tfilter()
2417 NL_SET_ERR_MSG(extack, "Failed to send filter notify message"); in tc_get_tfilter()
2533 NULL, cb->extack); in tc_dump_tfilter()
2721 struct netlink_ext_ack *extack) in tc_chain_tmplt_add() argument
2730 ops = tcf_proto_lookup_ops(nla_data(tca[TCA_KIND]), true, extack); in tc_chain_tmplt_add()
2734 NL_SET_ERR_MSG(extack, "Chain templates are not supported with specified classifier"); in tc_chain_tmplt_add()
2738 tmplt_priv = ops->tmplt_create(net, chain, tca, extack); in tc_chain_tmplt_add()
2762 struct netlink_ext_ack *extack) in tc_ctl_chain() argument
2781 rtm_tca_policy, extack); in tc_ctl_chain()
2790 t->tcm_ifindex, t->tcm_block_index, extack); in tc_ctl_chain()
2796 NL_SET_ERR_MSG(extack, "Specified chain index exceeds upper limit"); in tc_ctl_chain()
2811 NL_SET_ERR_MSG(extack, "Filter chain already exists"); in tc_ctl_chain()
2817 NL_SET_ERR_MSG(extack, "Need both RTM_NEWCHAIN and NLM_F_CREATE to create a new chain"); in tc_ctl_chain()
2823 NL_SET_ERR_MSG(extack, "Failed to create filter chain"); in tc_ctl_chain()
2830 NL_SET_ERR_MSG(extack, "Cannot find specified filter chain"); in tc_ctl_chain()
2850 err = tc_chain_tmplt_add(chain, net, tca, extack); in tc_ctl_chain()
2873 NL_SET_ERR_MSG(extack, "Failed to send chain notify message"); in tc_ctl_chain()
2877 NL_SET_ERR_MSG(extack, "Unsupported message type"); in tc_ctl_chain()
2913 rtm_tca_policy, cb->extack); in tc_dump_chain()
3013 bool rtnl_held, struct netlink_ext_ack *extack) in tcf_exts_validate() argument
3024 extack); in tcf_exts_validate()
3037 rtnl_held, extack); in tcf_exts_validate()
3046 …NL_SET_ERR_MSG(extack, "Classifier actions are not supported per compile options (CONFIG_NET_CLS_A… in tcf_exts_validate()