On 24/04/2019 16:03, Edward Cree wrote:
> static int efx_tc_flower_replace(struct efx_nic *efx,
> struct net_device *net_dev,
> struct tc_cls_flower_offload *tc)
> {
> struct efx_tc_action_set *act;
>
> /* parse the match */
>
> tcf_exts_for_each_action(i, a, tc->exts) {
> if (a->ops && a->ops->stats_update) {
> /* act is the hw action we're building */
> act->count = allocate_a_counter();
Also, this was actually taking a->tcfa_index, allowing multiple rules to
share a counter. The action index doesn't seem to be available in the
new flow_offload API.
-Ed