]> git.openfabrics.org - ~adrianc/mstflint.git/commitdiff
Merge branch 'master' of git://git.openfabrics.org/~mohammads/mstflint
authorAdrian Chiris <adrianc@mellanox.com>
Wed, 2 Apr 2014 08:52:35 +0000 (11:52 +0300)
committerAdrian Chiris <adrianc@mellanox.com>
Wed, 2 Apr 2014 08:52:35 +0000 (11:52 +0300)
1  2 
mtcr_ul/mtcr_ul.c

index 1c101d44ecb4a0e2d7399bb9064b2300acbc2bb4,99379769e3853233c2e5c450cdccafa7729f8a75..74abbfd3d3b4d9851e39294a7ab2c87eb32505a2
@@@ -1127,22 -1106,9 +1127,22 @@@ int mget_mdevs_flags(mfile *mf, u_int32
      }
      return 0;
  }
 +
 +int mget_mdevs_type(mfile *mf, u_int32_t *mtype)
 +{
 +    if (mf == NULL || mtype == NULL) {
 +        errno = EINVAL;
 +        return 1;
 +    }
 +
 +    *mtype = mf->access_type;
 +    return 0;
 +}
 +
 +
  #define IBDR_MAX_NAME_SIZE 128
+ #define BDF_NAME_SIZE 12
+ #define DEV_DIR_MAX_SIZE 128
  static
  int get_inband_dev_from_pci(char* inband_dev, char* pci_dev)
  {