Message ID | 20231130152041.13513-1-pctammela@mojatatu.com (mailing list archive) |
---|---|
Headers | show |
Series | net/sched: act_api: contiguous action arrays | expand |
On Thu, 30 Nov 2023 12:20:37 -0300 Pedro Tammela wrote: > 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. Hi Pedro, this appears not to apply.
On 01/12/2023 14:33, Jakub Kicinski wrote: > On Thu, 30 Nov 2023 12:20:37 -0300 Pedro Tammela wrote: >> 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. > > Hi Pedro, this appears not to apply. Oops, will respin, thanks!