Skip to contentSkip to conversation

include/uapi/linux/xfrm.h: Fix XFRM_MSG_MAPPING ABI breakage

PATCH Superseded Eugene Syromiatnikov 3 participants 3 messages Sep 1, 2021 – Sep 2, 2021

Subsystems (4)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 include/uapi/linux/xfrm.h: Fix XFRM_MSG_MAPPING ABI breakage

Commit 2d151d39073a ("xfrm: Add possibility to set the default to block if we have no policy") broke ABI by changing the value of the XFRM_MSG_MAPPING enum item. Fix it by placing XFRM_MSG_SETDEFAULT/XFRM_MSG_GETDEFAULT to the end of the enum, right before __XFRM_MSG_MAX.

Fixes 2d151d39073a ("xfrm: Add possibility to set the default to block if we have no policy")
---
 include/uapi/linux/xfrm.h | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
include/uapi/linux/xfrm.h +3 -3
index b96c1ea..26f456b1 100644
@@ -213,13 +213,13 @@ enum {
 	XFRM_MSG_GETSPDINFO,
 #define XFRM_MSG_GETSPDINFO XFRM_MSG_GETSPDINFO
 
+	XFRM_MSG_MAPPING,
+#define XFRM_MSG_MAPPING XFRM_MSG_MAPPING
+
 	XFRM_MSG_SETDEFAULT,
 #define XFRM_MSG_SETDEFAULT XFRM_MSG_SETDEFAULT
 	XFRM_MSG_GETDEFAULT,
 #define XFRM_MSG_GETDEFAULT XFRM_MSG_GETDEFAULT
-
-	XFRM_MSG_MAPPING,
-#define XFRM_MSG_MAPPING XFRM_MSG_MAPPING
 	__XFRM_MSG_MAX
 };
 #define XFRM_MSG_MAX (__XFRM_MSG_MAX - 1)
Signature · 1 line
2.1.4
Acked-by on v1 1/1
#1 lore raw

Le 01/09/2021 à 17:34, Eugene Syromiatnikov a écrit :

Quoted 7 lines

Commit 2d151d39073a ("xfrm: Add possibility to set the default to block if we have no policy") broke ABI by changing the value of the XFRM_MSG_MAPPING enum item. Fix it by placing XFRM_MSG_SETDEFAULT/XFRM_MSG_GETDEFAULT to the end of the enum, right before __XFRM_MSG_MAX.

Fixes 2d151d39073a ("xfrm: Add possibility to set the default to block if we have no policy")
Reviewed-by on v1 1/1
#2 lore raw
In reply to Eugene Syromiatnikov
Quoted 7 lines · Eugene Syromiatnikov

Commit 2d151d39073a ("xfrm: Add possibility to set the default to block if we have no policy") broke ABI by changing the value of the XFRM_MSG_MAPPING enum item. Fix it by placing XFRM_MSG_SETDEFAULT/XFRM_MSG_GETDEFAULT to the end of the enum, right before __XFRM_MSG_MAX.

Fixes 2d151d39073a ("xfrm: Add possibility to set the default to block if we have no policy")

References: https://lore.kernel.org/netdev/[email protected]/

Signature · 1 line
ldv