diff options
| author | Pedro Tammela <[email protected]> | 2023-12-01 17:50:15 +0000 |
|---|---|---|
| committer | Paolo Abeni <[email protected]> | 2023-12-05 10:15:08 +0000 |
| commit | f9bfc8eb1342c7ddbe1b7be9d1ebd5bc80fb72b0 (patch) | |
| tree | 541e27b7d2f3783bc878f86dc0054cea56c9ec8d /drivers/net/ethernet/intel/ice/ice_common.h | |
| parent | net/sched: act_api: stop loop over ops array on NULL in tcf_action_init (diff) | |
| download | kernel-f9bfc8eb1342c7ddbe1b7be9d1ebd5bc80fb72b0.tar.gz kernel-f9bfc8eb1342c7ddbe1b7be9d1ebd5bc80fb72b0.zip | |
net/sched: act_api: use tcf_act_for_each_action in tcf_idr_insert_many
The actions array is contiguous, so stop processing whenever a NULL
is found. This is already the assumption for tcf_action_destroy[1],
which is called from tcf_actions_init.
[1] https://elixir.bootlin.com/linux/v6.7-rc3/source/net/sched/act_api.c#L1115
Acked-by: Jamal Hadi Salim <[email protected]>
Signed-off-by: Pedro Tammela <[email protected]>
Acked-by: Marcelo Ricardo Leitner <[email protected]>
Signed-off-by: Paolo Abeni <[email protected]>
Diffstat (limited to 'drivers/net/ethernet/intel/ice/ice_common.h')
0 files changed, 0 insertions, 0 deletions
