Commit 730ec86f authored by Litao Jiao's avatar Litao Jiao
Browse files

anolis: net/smc: Expose SMCPROTO_SMC and SMCPROTO_SMC6 to userspace

anolis inclusion
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I76JHC
CVE: NA

Reference: https://gitee.com/anolis/cloud-kernel/commit/d4f40dd9761c7a3dcd8e7f83abbf70eb387fbf01



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

ANBZ: #5550

This patch exposes SMCPROTO_SMC and SMCPROTO_SMC6 to userspace by moving
them to in.h and in6.h.

Signed-off-by: default avatarWen Gu <guwen@linux.alibaba.com>
Reviewed-by: default avatarXuan Zhuo <xuanzhuo@linux.alibaba.com>
Acked-by: default avatarDust Li <dust.li@linux.alibaba.com>
Reviewed-by: default avatarTony Lu <tonylu@linux.alibaba.com>
Link: https://gitee.com/anolis/cloud-kernel/pulls/1754


Signed-off-by: default avatarLitao Jiao <jiaolitao@sangfor.com.cn>
parent 358a1f20
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -84,6 +84,9 @@ enum {
};
#endif

/* SMC protocol, IPv4 */
#define SMCPROTO_SMC	0

#if __UAPI_DEF_IN_ADDR
/* Internet address. */
struct in_addr {
+2 −0
Original line number Diff line number Diff line
@@ -95,6 +95,8 @@ struct in6_flowlabel_req {
#define IPV6_FL_S_USER		3
#define IPV6_FL_S_ANY		255

/* SMC protocol, IPv6 */
#define SMCPROTO_SMC6		1

/*
 *	Bitmask constant declarations to help applications select out the 
+0 −4
Original line number Diff line number Diff line
@@ -21,10 +21,6 @@
#define SMC_V1		1		/* SMC version V1 */
#define SMC_V2		2		/* SMC version V2 */
#define SMC_RELEASE	0

#define SMCPROTO_SMC		0	/* SMC protocol, IPv4 */
#define SMCPROTO_SMC6		1	/* SMC protocol, IPv6 */

#define SMC_MAX_ISM_DEVS	8	/* max # of proposed non-native ISM
					 * devices
					 */