lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20231128160631.663351-1-pctammela@mojatatu.com>
Date: Tue, 28 Nov 2023 13:06:27 -0300
From: Pedro Tammela <pctammela@...atatu.com>
To: netdev@...r.kernel.org
Cc: davem@...emloft.net,
	edumazet@...gle.com,
	kuba@...nel.org,
	pabeni@...hat.com,
	jhs@...atatu.com,
	xiyou.wangcong@...il.com,
	jiri@...nulli.us,
	vladbu@...dia.com,
	mleitner@...hat.com,
	Pedro Tammela <pctammela@...atatu.com>
Subject: [PATCH RFC net-next 0/4] net/sched: optimizations around action binding and init

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(-)

-- 
2.40.1


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ