On Fri, Oct 12, 2018 at 1:39 PM Davide Caratti <dcara...@redhat.com> wrote: > Several TC actions allow users to specify a fallback control action, that > is usually stored in the action private data. 'goto chain x' never worked > for that case, because the action handler was never initialized. There is > only one 'goto_chain' handle per action: extend act_api to disallow 'goto > chain' specified more than once in a rule. If the fallback control action > is legally configured, use it to properly initialize the chain.
Why not just validate the fallback action in each action init()? For example, checking tcfg_paction in tcf_gact_init(). I don't see the need of making it generic.