Commit a2bbb3a7 authored by Dong Chenchen's avatar Dong Chenchen
Browse files

net/kabi: Reserve space for net structures

hulk inclusion
category: feature
bugzilla: https://gitee.com/openeuler/kernel/issues/IBC1RH



--------------------------------

Reserve some fields beforehand for net subsystem related
structures prone to change.

Signed-off-by: default avatarDong Chenchen <dongchenchen2@huawei.com>
parent 46064348
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -46,6 +46,8 @@ struct flowi_common {

	KABI_RESERVE(1)
	KABI_RESERVE(2)
	KABI_RESERVE(3)
	KABI_RESERVE(4)
};

union flowi_uli {
+2 −0
Original line number Diff line number Diff line
@@ -34,5 +34,7 @@ struct netns_nf {

	KABI_RESERVE(1)
	KABI_RESERVE(2)
	KABI_RESERVE(3)
	KABI_RESERVE(4)
};
#endif
+2 −0
Original line number Diff line number Diff line
@@ -87,6 +87,8 @@ struct netns_xfrm {

	KABI_RESERVE(1)
	KABI_RESERVE(2)
	KABI_RESERVE(3)
	KABI_RESERVE(4)
};

#endif
+4 −0
Original line number Diff line number Diff line
@@ -294,6 +294,8 @@ struct xfrm_state {

	KABI_RESERVE(1)
	KABI_RESERVE(2)
	KABI_RESERVE(3)
	KABI_RESERVE(4)
};

static inline struct net *xs_net(struct xfrm_state *x)
@@ -562,6 +564,8 @@ struct xfrm_policy {

	KABI_RESERVE(1)
	KABI_RESERVE(2)
	KABI_RESERVE(3)
	KABI_RESERVE(4)
};

static inline struct net *xp_net(const struct xfrm_policy *xp)