netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/4] xfrm: Add support for RFC 9611 per cpu xfrm states
@ 2024-10-07  6:44 Steffen Klassert
  2024-10-07  6:44 ` [PATCH 1/4] xfrm: Add support for per cpu xfrm state handling Steffen Klassert
                   ` (4 more replies)
  0 siblings, 5 replies; 15+ messages in thread
From: Steffen Klassert @ 2024-10-07  6:44 UTC (permalink / raw)
  To: Tobias Brunner, Antony Antony, Daniel Xu, Paul Wouters,
	Simon Horman, Sabrina Dubroca, netdev
  Cc: Steffen Klassert, devel

This patchset implements the xfrm part of per cpu SAs as specified in
RFC 9611.

Patch 1 adds the cpu as a lookup key and config option to to generate
acquire messages for each cpu.

Patch 2 caches outbound states at the policy.

Patch 3 caches inbound states on a new percpu state cache.

Patch 4 restricts percpu SA attributes to specific netlink message types.

Please review and test.

---

Changes from v1:

- Add compat layer attributes

- Fix a 'use always slowpath' condition

- Document get_cpu() usage

- Fix forgotten update of xfrm_expire_msgsize()

^ permalink raw reply	[flat|nested] 15+ messages in thread
* Re: [PATCH 1/4] xfrm: Add support for per cpu xfrm state handling.
@ 2024-11-11 20:42 Kees Bakker
  2024-11-12 11:03 ` Steffen Klassert
  0 siblings, 1 reply; 15+ messages in thread
From: Kees Bakker @ 2024-11-11 20:42 UTC (permalink / raw)
  To: Steffen Klassert, netdev

Hi Steffen,

Sorry for the direct email. Did you perhaps forgot a "goto out_cancel" here?

diff --git a/net/xfrm/xfrm_user.c b/net/xfrm/xfrm_user.c
[...]
@@ -2576,6 +2603,8 @@ static int build_aevent(struct sk_buff *skb, 
struct xfrm_state *x, const struct
      err = xfrm_if_id_put(skb, x->if_id);
      if (err)
          goto out_cancel;
+    if (x->pcpu_num != UINT_MAX)
+        err = nla_put_u32(skb, XFRMA_SA_PCPU, x->pcpu_num);

      if (x->dir) {
          err = nla_put_u8(skb, XFRMA_SA_DIR, x->dir);

-- 
Kees Bakker

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

end of thread, other threads:[~2024-11-14 11:00 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-10-07  6:44 [PATCH 0/4] xfrm: Add support for RFC 9611 per cpu xfrm states Steffen Klassert
2024-10-07  6:44 ` [PATCH 1/4] xfrm: Add support for per cpu xfrm state handling Steffen Klassert
2024-10-08 16:47   ` Simon Horman
2024-10-11  8:22     ` Steffen Klassert
2024-10-10 18:22   ` kernel test robot
2024-10-07  6:44 ` [PATCH 2/4] xfrm: Cache used outbound xfrm states at the policy Steffen Klassert
2024-10-07 14:26   ` Jakub Kicinski
2024-10-11  8:21     ` Steffen Klassert
2024-10-07  6:44 ` [PATCH 3/4] xfrm: Add an inbound percpu state cache Steffen Klassert
2024-10-07  6:44 ` [PATCH 4/4] xfrm: Restrict percpu SA attribute to specific netlink message types Steffen Klassert
2024-10-07  6:48 ` [PATCH 0/4] xfrm: Add support for RFC 9611 per cpu xfrm states Steffen Klassert
  -- strict thread matches above, loose matches on Subject: below --
2024-11-11 20:42 [PATCH 1/4] xfrm: Add support for per cpu xfrm state handling Kees Bakker
2024-11-12 11:03 ` Steffen Klassert
2024-11-12 19:21   ` Kees Bakker
2024-11-14 10:59     ` Steffen Klassert

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).