Re: [PATCH] include/uapi/linux/xfrm.h: Fix XFRM_MSG_MAPPING ABI breakage

From: Dmitry V. Levin
Date: Thu Sep 02 2021 - 14:28:40 EST


On Wed, Sep 01, 2021 at 05:34:07PM +0200, Eugene Syromiatnikov wrote:
> 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")
> Signed-off-by: Eugene Syromiatnikov <esyr@xxxxxxxxxx>

References: https://lore.kernel.org/netdev/20210901151402.GA2557@xxxxxxxxxxxx/
Reviewed-by: Dmitry V. Levin <ldv@xxxxxxxxxxxx>


--
ldv