Re: [RFC,net-next 3/9] net: schedule: add action gate offloading

From: Jakub Kicinski
Date: Fri Mar 06 2020 - 14:02:15 EST


On Fri, 6 Mar 2020 20:56:01 +0800 Po Liu wrote:
> +static int tcf_gate_get_entries(struct flow_action_entry *entry,
> + const struct tc_action *act)
> +{
> + entry->gate.entries = tcf_gate_get_list(act);
> +
> + if (!entry->gate.entries)
> + return -EINVAL;
> +
> + entry->destructor = tcf_gate_entry_destructor;
> + entry->destructor_priv = entry->gate.entries;

What's this destructor stuff doing? I don't it being called.

> + return 0;
> +}