mbox series

[ipsec,0/2] xfrm: respect ip proto rules criteria in xfrm dst lookups

Message ID 20240901235737.2757335-1-eyal.birger@gmail.com (mailing list archive)
Headers show
Series xfrm: respect ip proto rules criteria in xfrm dst lookups | expand

Message

Eyal Birger Sept. 1, 2024, 11:57 p.m. UTC
This series fixes the route lookup when done for xfrm to regard
L4 criteria specified in ip rules.

The first patch is a minor refactor to allow passing more parameters
to dst lookup functions.
The second patch actually passes L4 information to these lookup functions.

Signed-off-by: Eyal Birger <eyal.birger@gmail.com>

Eyal Birger (2):
  xfrm: extract dst lookup parameters into a struct
  xfrm: respect ip protocols rules criteria when performing dst lookups

 include/net/xfrm.h      | 28 ++++++++++++-----------
 net/ipv4/xfrm4_policy.c | 40 +++++++++++++++------------------
 net/ipv6/xfrm6_policy.c | 31 +++++++++++++-------------
 net/xfrm/xfrm_device.c  | 11 ++++++---
 net/xfrm/xfrm_policy.c  | 49 +++++++++++++++++++++++++++++++----------
 5 files changed, 94 insertions(+), 65 deletions(-)

Comments

Steffen Klassert Sept. 2, 2024, 8 a.m. UTC | #1
On Sun, Sep 01, 2024 at 04:57:35PM -0700, Eyal Birger wrote:
> This series fixes the route lookup when done for xfrm to regard
> L4 criteria specified in ip rules.
> 
> The first patch is a minor refactor to allow passing more parameters
> to dst lookup functions.
> The second patch actually passes L4 information to these lookup functions.
> 
> Signed-off-by: Eyal Birger <eyal.birger@gmail.com>
> 
> Eyal Birger (2):
>   xfrm: extract dst lookup parameters into a struct
>   xfrm: respect ip protocols rules criteria when performing dst lookups

Hm, your patchset does not apply to the ipsec tree. Can you check
and rebase it?