mirror of
https://github.com/SCST-project/scst.git
synced 2026-09-19 14:34:18 +00:00
ib_srpt: Port to Linux kernel v4.21
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7853 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
+6
-2
@@ -605,7 +605,9 @@ static void srpt_mgmt_method_get(struct srpt_port *sp, struct ib_mad *rq_mad,
|
||||
static void srpt_mad_send_handler(struct ib_mad_agent *mad_agent,
|
||||
struct ib_mad_send_wc *mad_wc)
|
||||
{
|
||||
#if HAVE_RDMA_DESTROY_AH
|
||||
#if HAVE_RDMA_DESTROY_AH_WITH_FLAGS
|
||||
rdma_destroy_ah(mad_wc->send_buf->ah, RDMA_DESTROY_AH_SLEEPABLE);
|
||||
#elif HAVE_RDMA_DESTROY_AH
|
||||
rdma_destroy_ah(mad_wc->send_buf->ah);
|
||||
#else
|
||||
ib_destroy_ah(mad_wc->send_buf->ah);
|
||||
@@ -684,7 +686,9 @@ static void srpt_mad_recv_handler(struct ib_mad_agent *mad_agent,
|
||||
ib_free_send_mad(rsp);
|
||||
|
||||
err_rsp:
|
||||
#if HAVE_RDMA_DESTROY_AH
|
||||
#if HAVE_RDMA_DESTROY_AH_WITH_FLAGS
|
||||
rdma_destroy_ah(ah, RDMA_DESTROY_AH_SLEEPABLE);
|
||||
#elif HAVE_RDMA_DESTROY_AH
|
||||
rdma_destroy_ah(ah);
|
||||
#else
|
||||
ib_destroy_ah(ah);
|
||||
|
||||
@@ -113,9 +113,11 @@ enum {
|
||||
SRP_CMD_ORDERED_Q = 0x2,
|
||||
SRP_CMD_ACA = 0x4,
|
||||
|
||||
#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 21, 0)
|
||||
SRP_LOGIN_RSP_MULTICHAN_NO_CHAN = 0x0,
|
||||
SRP_LOGIN_RSP_MULTICHAN_TERMINATED = 0x1,
|
||||
SRP_LOGIN_RSP_MULTICHAN_MAINTAINED = 0x2,
|
||||
#endif
|
||||
|
||||
MIN_SRPT_SQ_SIZE = 16,
|
||||
DEF_SRPT_SQ_SIZE = 256,
|
||||
|
||||
Reference in New Issue
Block a user