mbox series

[RFC,net-next,0/4] net/sched: optimizations around action binding and init

Message ID 20231128160631.663351-1-pctammela@mojatatu.com (mailing list archive)
Headers show
Series net/sched: optimizations around action binding and init | expand

Message

Pedro Tammela Nov. 28, 2023, 4:06 p.m. UTC
Patches 1 and 2 are scaling optimizations for action binding in
rtnl-less filters. We saw a noticeable lock contention when testing
in a 56 core system, which disappeared after the patches.

Patches 3 and 4 propagate the expectation that such arrays are contiguous
and don't admit holes in them into leaf functions.

Pedro Tammela (4):
  net/sched: act_api: rely on rcu in tcf_idr_check_alloc
  net/sched: act_api: skip idr replace on bound actions
  net/sched: act_api: stop loop over ops array on NULL in
    tcf_action_init
  net/sched: act_api: stop loop over actions array on NULL in
    tcf_idr_insert_many

 include/net/act_api.h |  2 +-
 net/sched/act_api.c   | 75 ++++++++++++++++++++++++-------------------
 net/sched/cls_api.c   |  2 +-
 3 files changed, 44 insertions(+), 35 deletions(-)