set_config CONFIG_COMPAT_RPC_XPRT_OPS_HAS_ALLOC_SLOT y
fi
+if [[ ${CONFIG_COMPAT_RHEL_7_1} = "y" ]]; then
+ set_config CONFIG_COMPAT_RPC_XPRT_OPS_HAS_SECURE_PORT y
+fi
+
if [[ ${RHEL_MAJOR} -eq "6" ]]; then
set_config CONFIG_COMPAT_IS___SKB_TX_HASH y
set_config CONFIG_COMPAT_IS_BITMAP y
static void svc_rdma_detach(struct svc_xprt *xprt);
static void svc_rdma_free(struct svc_xprt *xprt);
static int svc_rdma_has_wspace(struct svc_xprt *xprt);
-+#if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 14, 0)
++#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3, 14, 0) || CONFIG_COMPAT_RPC_XPRT_OPS_HAS_SECURE_PORT)
static int svc_rdma_secure_port(struct svc_rqst *);
+#endif
static void rq_cq_reap(struct svcxprt_rdma *xprt);
.xpo_prep_reply_hdr = svc_rdma_prep_reply_hdr,
.xpo_has_wspace = svc_rdma_has_wspace,
.xpo_accept = svc_rdma_accept,
-+#if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 14, 0)
++#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3, 14, 0) || CONFIG_COMPAT_RPC_XPRT_OPS_HAS_SECURE_PORT)
.xpo_secure_port = svc_rdma_secure_port,
+#endif
};
return 1;
}
-+#if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 14, 0)
++#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3, 14, 0) || CONFIG_COMPAT_RPC_XPRT_OPS_HAS_SECURE_PORT)
static int svc_rdma_secure_port(struct svc_rqst *rqstp)
{
return 1;