Skip to content

sched: act: ife: UAPI checks and performance tweaks

Alexander Aring netdev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 4 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3sched: act: ife: move encode/decode check to initnet/sched/act_ife.c+8 -111 reply
2/3sched: act: ife: migrate to use per-cpu countersnet/sched/act_ife.c+11 -181 reply
3/3sched: act: ife: update parameters via rcu handlinginclude/net/tc_act/tc_ife.h net/sched/act_ife.c+67 -301 reply

Reviews trailers per patch

All 3 patches have a Reviewed-by or Acked-by.

PatchJamal Hadi Salim
1/3A-b
2/3A-b
3/3A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH net-next 0/3] sched: act: ife: UAPI checks and performance tweaks

Hi,

this patch series contains at first a patch which adds a check for IFE_ENCODE and IFE_DECODE when a ife act gets created or updated and adding handling of these cases only inside the act callback only.

The second patch use per-cpu counters and move the spinlock around so that the spinlock is less being held in act callback.

The last patch use rcu for update parameters and also move the spinlock for the same purpose as in patch 2.

Notes:
- There is still a spinlock around for protecting the metalist and a rw-lock for another list. Should be migrated to a rcu list, ife possible.

- I use still dereference in dump callback, so I think what I didn't got was what happened when rcu_assign_pointer will do when rcu read lock is held. I suppose the pointer will be updated, then we don't have any issue here.

Alexander Aring (3):
sched: act: ife: move encode/decode check to init
sched: act: ife: migrate to use per-cpu counters
sched: act: ife: update parameters via rcu handling

 include/net/tc_act/tc_ife.h |  10 +++-
 net/sched/act_ife.c         | 135 +++++++++++++++++++++++++-------------------
 2 files changed, 86 insertions(+), 59 deletions(-)
Signature · 1 line
2.11.0