[MTHCA] Query AV is not supported now for memory devices. Return IB_UNSUPPORTED inste...
authorleonidk <leonidk@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Wed, 20 Sep 2006 12:30:28 +0000 (12:30 +0000)
committerleonidk <leonidk@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Wed, 20 Sep 2006 12:30:28 +0000 (12:30 +0000)
git-svn-id: svn://openib.tc.cornell.edu/gen1/trunk@505 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

hw/mthca/kernel/mthca_av.c

index 84838da..ba029d0 100644 (file)
@@ -181,7 +181,7 @@ int mthca_read_ah(struct mthca_dev *dev, struct mthca_ah *ah,
                  struct ib_ud_header *header)
 {
        if (ah->type == MTHCA_AH_ON_HCA)
-               return -EINVAL;
+               return -ENOSYS;
 
        header->lrh.service_level   = (u8)(cl_ntoh32(ah->av->sl_tclass_flowlabel) >> 28);
        header->lrh.destination_lid = ah->av->dlid;