Netdev List
 help / color / mirror / Atom feed
* [PATCH net-next 0/4] net/sched: act_api: contiguous action arrays
@ 2023-11-30 15:20 Pedro Tammela
  2023-11-30 15:20 ` [PATCH net-next 1/4] net/sched: act_api: use tcf_act_for_each_action Pedro Tammela
                   ` (4 more replies)
  0 siblings, 5 replies; 7+ messages in thread
From: Pedro Tammela @ 2023-11-30 15:20 UTC (permalink / raw)
  To: netdev
  Cc: davem, edumazet, kuba, pabeni, jhs, xiyou.wangcong, jiri,
	mleitner, Pedro Tammela

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.

Pedro Tammela (4):
  net/sched: act_api: use tcf_act_for_each_action
  net/sched: act_api: avoid non-contiguous action array
  net/sched: act_api: stop loop over ops array on NULL in
    tcf_action_init
  net/sched: act_api: use tcf_act_for_each_action in tcf_idr_insert_many

 net/sched/act_api.c | 57 ++++++++++++++++++++++++---------------------
 1 file changed, 30 insertions(+), 27 deletions(-)

-- 
2.40.1


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2023-12-01 17:34 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-11-30 15:20 [PATCH net-next 0/4] net/sched: act_api: contiguous action arrays Pedro Tammela
2023-11-30 15:20 ` [PATCH net-next 1/4] net/sched: act_api: use tcf_act_for_each_action Pedro Tammela
2023-11-30 15:20 ` [PATCH net-next 2/4] net/sched: act_api: avoid non-contiguous action array Pedro Tammela
2023-11-30 15:20 ` [PATCH net-next 3/4] net/sched: act_api: stop loop over ops array on NULL in tcf_action_init Pedro Tammela
2023-11-30 15:20 ` [PATCH net-next 4/4] net/sched: act_api: use tcf_act_for_each_action in tcf_idr_insert_many Pedro Tammela
2023-12-01 17:33 ` [PATCH net-next 0/4] net/sched: act_api: contiguous action arrays Jakub Kicinski
2023-12-01 17:34   ` Pedro Tammela

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox