Lines Matching refs:extack
287 struct netlink_ext_ack *extack) in tcf_generic_walker() argument
297 NL_SET_ERR_MSG(extack, "tcf_generic_walker: unknown command"); in tcf_generic_walker()
794 struct netlink_ext_ack *extack) in tcf_action_init_1() argument
805 err = nla_parse_nested(tb, TCA_ACT_MAX, nla, NULL, extack); in tcf_action_init_1()
811 NL_SET_ERR_MSG(extack, "TC action kind must be specified"); in tcf_action_init_1()
815 NL_SET_ERR_MSG(extack, "TC action name too long"); in tcf_action_init_1()
822 NL_SET_ERR_MSG(extack, "TC cookie size above the maximum"); in tcf_action_init_1()
828 NL_SET_ERR_MSG(extack, "No memory to generate TC cookie"); in tcf_action_init_1()
835 NL_SET_ERR_MSG(extack, "TC action name too long"); in tcf_action_init_1()
863 NL_SET_ERR_MSG(extack, "Failed to load TC action module"); in tcf_action_init_1()
871 rtnl_held, extack); in tcf_action_init_1()
874 extack); in tcf_action_init_1()
892 NL_SET_ERR_MSG(extack, "Failed to init TC action chain"); in tcf_action_init_1()
899 NL_SET_ERR_MSG(extack, "Invalid control action value"); in tcf_action_init_1()
920 bool rtnl_held, struct netlink_ext_ack *extack) in tcf_action_init() argument
928 err = nla_parse_nested(tb, TCA_ACT_MAX_PRIO, nla, NULL, extack); in tcf_action_init()
934 rtnl_held, extack); in tcf_action_init()
1034 struct netlink_ext_ack *extack) in tcf_get_notify() argument
1043 NL_SET_ERR_MSG(extack, "Failed to fill netlink attributes while adding TC action"); in tcf_get_notify()
1053 struct netlink_ext_ack *extack) in tcf_action_get_1() argument
1061 err = nla_parse_nested(tb, TCA_ACT_MAX, nla, NULL, extack); in tcf_action_get_1()
1068 NL_SET_ERR_MSG(extack, "Invalid TC action index value"); in tcf_action_get_1()
1076 NL_SET_ERR_MSG(extack, "Specified TC action not found"); in tcf_action_get_1()
1080 if (ops->lookup(net, &a, index, extack) == 0) in tcf_action_get_1()
1094 struct netlink_ext_ack *extack) in tca_action_flush() argument
1113 err = nla_parse_nested(tb, TCA_ACT_MAX, nla, NULL, extack); in tca_action_flush()
1121 NL_SET_ERR_MSG(extack, "Cannot flush unknown TC action"); in tca_action_flush()
1128 NL_SET_ERR_MSG(extack, "Failed to create TC action flush notification"); in tca_action_flush()
1138 NL_SET_ERR_MSG(extack, "Failed to add new netlink message"); in tca_action_flush()
1142 err = ops->walk(net, skb, &dcb, RTM_DELACTION, ops, extack); in tca_action_flush()
1158 NL_SET_ERR_MSG(extack, "Failed to send TC action flush notification"); in tca_action_flush()
1200 u32 portid, size_t attr_size, struct netlink_ext_ack *extack) in tcf_del_notify() argument
1212 NL_SET_ERR_MSG(extack, "Failed to fill netlink TC action attributes"); in tcf_del_notify()
1220 NL_SET_ERR_MSG(extack, "Failed to delete TC action"); in tcf_del_notify()
1234 u32 portid, int event, struct netlink_ext_ack *extack) in tca_action_gd() argument
1242 ret = nla_parse_nested(tb, TCA_ACT_MAX_PRIO, nla, NULL, extack); in tca_action_gd()
1248 return tca_action_flush(net, tb[1], n, portid, extack); in tca_action_gd()
1250 NL_SET_ERR_MSG(extack, "Invalid netlink attributes while flushing TC action"); in tca_action_gd()
1255 act = tcf_action_get_1(net, tb[i], n, portid, extack); in tca_action_gd()
1268 ret = tcf_get_notify(net, portid, n, actions, event, extack); in tca_action_gd()
1270 ret = tcf_del_notify(net, n, actions, portid, attr_size, extack); in tca_action_gd()
1282 u32 portid, size_t attr_size, struct netlink_ext_ack *extack) in tcf_add_notify() argument
1294 NL_SET_ERR_MSG(extack, "Failed to fill netlink attributes while adding TC action"); in tcf_add_notify()
1308 struct netlink_ext_ack *extack) in tcf_action_add() argument
1315 &attr_size, true, extack); in tcf_action_add()
1318 ret = tcf_add_notify(net, n, actions, portid, attr_size, extack); in tcf_action_add()
1333 struct netlink_ext_ack *extack) in tc_ctl_action() argument
1345 extack); in tc_ctl_action()
1350 NL_SET_ERR_MSG(extack, "Netlink action attributes missing"); in tc_ctl_action()
1367 extack); in tc_ctl_action()
1373 portid, RTM_DELACTION, extack); in tc_ctl_action()
1377 portid, RTM_GETACTION, extack); in tc_ctl_action()