mbox series

[net-next,0/6] xfrm: Convert __xfrm4_dst_lookup() and its callers to dscp_t.

Message ID cover.1728982714.git.gnault@redhat.com (mailing list archive)
Headers show
Series xfrm: Convert __xfrm4_dst_lookup() and its callers to dscp_t. | expand

Message

Guillaume Nault Oct. 15, 2024, 9:11 a.m. UTC
This patch series continues to prepare users of ->flowi4_tos to a
future conversion of this field (__u8 to dscp_t). This time, we convert
__xfrm4_dst_lookup() and its call chain.

The objective is to eventually make all users of ->flowi4_tos use a
dscp_t value. Making ->flowi4_tos a dscp_t field will help avoiding
regressions where ECN bits are erroneously interpreted as DSCP bits.

Guillaume Nault (6):
  xfrm: Convert xfrm_get_tos() to dscp_t.
  xfrm: Convert xfrm_bundle_create() to dscp_t.
  xfrm: Convert xfrm_dst_lookup() to dscp_t.
  xfrm: Convert __xfrm_dst_lookup() to dscp_t.
  xfrm: Convert the ->dst_lookup() callback to dscp_t.
  xfrm: Convert __xfrm4_dst_lookup() to dscp_t.

 include/net/xfrm.h      |  7 ++++---
 net/ipv4/xfrm4_policy.c | 14 ++++++++------
 net/ipv6/xfrm6_policy.c |  5 +++--
 net/xfrm/xfrm_policy.c  | 20 ++++++++++----------
 4 files changed, 25 insertions(+), 21 deletions(-)

Note: I'm sending this series to net-next as these are generic
networking changes, although they only touch xfrm files. But I'm happy
to rebase over ipsec-next if that's prefered. Just let me know.