Merge branch 'net-sched-act_api-contiguous-action-arrays'
authorPaolo Abeni <pabeni@redhat.com>
Tue, 5 Dec 2023 10:15:10 +0000 (11:15 +0100)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 5 Dec 2023 10:15:10 +0000 (11:15 +0100)
commit4aee43f3e0fa77a1f79f9302ebd4787e6988b277
tree541e27b7d2f3783bc878f86dc0054cea56c9ec8d
parent030033d47788d14b56f02391bb22eaf3c2ed7f87
parentf9bfc8eb1342c7ddbe1b7be9d1ebd5bc80fb72b0
Merge branch 'net-sched-act_api-contiguous-action-arrays'

Pedro Tammela says:

====================
net/sched: act_api: contiguous action arrays

When dealing with action arrays in act_api it's natural to ask if they
are always contiguous (no NULL pointers in between). Yes, they are in
all cases so far, so make use of the already present tcf_act_for_each_action
macro to explicitly document this assumption.

There was an instance where it was not, but it was refactorable (patch 2)
to make the array contiguous.

v1->v2:
- Respin
- Added Jamal's acked-by
====================

Link: https://lore.kernel.org/r/20231201175015.214214-1-pctammela@mojatatu.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>