[SRU][F:linux-bluefield][PATCH v1 1/5] net/sched: Provide act to offload action

Bartlomiej Zolnierkiewicz bartlomiej.zolnierkiewicz at canonical.com
Tue Mar 28 16:25:01 UTC 2023


On Thu, Mar 23, 2023 at 8:18 PM William Tu <witu at nvidia.com> wrote:
>
> From: Paul Blakey <paulb at nvidia.com>
>
> BugLink: https://bugs.launchpad.net/bugs/2012571
>
> To support act stats, provide the action instance
> in flow offload operation. This instance will be
> saved by drivers, and used to directly update the
> stats on.
>
> Signed-off-by: Paul Blakey <paulb at nvidia.com>
> Reviewed-by: William Tu <witu at nvidia.com>

Your "Signed-off-by:" is also needed here (as this patch is submitted by you).

The patch/commit summary line should be prefixed with "UBUNTU: SAUCE:
" as this is not a cherry-pick/bacport.

> ---
>  include/net/flow_offload.h | 1 +
>  net/sched/cls_api.c        | 1 +
>  2 files changed, 2 insertions(+)
>
> diff --git a/include/net/flow_offload.h b/include/net/flow_offload.h
> index e9686f7e5cdf..d9e2e5d905ee 100644
> --- a/include/net/flow_offload.h
> +++ b/include/net/flow_offload.h
> @@ -166,6 +166,7 @@ typedef void (*action_destr)(void *priv);
>
>  struct flow_action_entry {
>         enum flow_action_id             id;
> +       void                            *act;
>         action_destr                    destructor;
>         void                            *destructor_priv;
>         union {
> diff --git a/net/sched/cls_api.c b/net/sched/cls_api.c
> index 5d933c9e9cc0..384a4d815849 100644
> --- a/net/sched/cls_api.c
> +++ b/net/sched/cls_api.c
> @@ -3518,6 +3518,7 @@ int tc_setup_flow_action(struct flow_action *flow_action,
>                 struct flow_action_entry *entry;
>
>                 entry = &flow_action->entries[j];
> +               entry->act = act;

entry->act doesn't seem to be used in later patches. I assume that
patch this is a preparatory one for the future changes so please
consider submitting it together with patches that actually make use of
it.

Best Regards,
Bartlomiej

>                 spin_lock_bh(&act->tcfa_lock);
>                 if (is_tcf_gact_ok(act)) {
>                         entry->id = FLOW_ACTION_ACCEPT;



More information about the kernel-team mailing list