]> git.openfabrics.org - compat-rdma/compat.git/commitdiff
Added macro for iSER on RHEL7.6
authorVladimir Sokolovsky <vlad@mellanox.com>
Wed, 28 Aug 2019 18:43:47 +0000 (13:43 -0500)
committerVladimir Sokolovsky <vlad@mellanox.com>
Wed, 28 Aug 2019 18:43:47 +0000 (13:43 -0500)
Signed-off-by: Vladimir Sokolovsky <vlad@mellanox.com>
config/rdma.m4

index d5b15d3ec5a4fea1f4d1f5d4284491ecba8e8d03..2b77c3cb646e1655b5bedfc219098108d4705fa9 100644 (file)
@@ -3958,6 +3958,23 @@ AC_DEFUN([LINUX_CONFIG_COMPAT],
                AC_MSG_RESULT(no)
        ])
 
+       AC_MSG_CHECKING([if scsi_host.h struct Scsi_Host has member virt_boundary_mask])
+       LB_LINUX_TRY_COMPILE([
+               #include <scsi/scsi_host.h>
+       ],[
+               struct Scsi_Host sh = {
+                       .virt_boundary_mask = 0,
+               };
+
+               return 0;
+       ],[
+               AC_MSG_RESULT(yes)
+               AC_DEFINE(HAVE_SCSI_HOST_VIRT_BOUNDARY_MASK, 1,
+                               [Scsi_Host has members virt_boundary_mask])
+       ],[
+               AC_MSG_RESULT(no)
+       ])
+
        AC_MSG_CHECKING([if scsi_host.h struct scsi_host_template has member track_queue_depth])
        LB_LINUX_TRY_COMPILE([
                #include <scsi/scsi_host.h>