Merge branch 'mlx' into merge-test
此提交包含在:
@@ -186,8 +186,8 @@ int mthca_create_ah(struct mthca_dev *dev,
|
||||
|
||||
on_hca_fail:
|
||||
if (ah->type == MTHCA_AH_PCI_POOL) {
|
||||
ah->av = pci_pool_alloc(dev->av_table.pool,
|
||||
GFP_ATOMIC, &ah->avdma);
|
||||
ah->av = pci_pool_zalloc(dev->av_table.pool,
|
||||
GFP_ATOMIC, &ah->avdma);
|
||||
if (!ah->av)
|
||||
return -ENOMEM;
|
||||
|
||||
@@ -196,8 +196,6 @@ on_hca_fail:
|
||||
|
||||
ah->key = pd->ntmr.ibmr.lkey;
|
||||
|
||||
memset(av, 0, MTHCA_AV_SIZE);
|
||||
|
||||
av->port_pd = cpu_to_be32(pd->pd_num | (ah_attr->port_num << 24));
|
||||
av->g_slid = ah_attr->src_path_bits;
|
||||
av->dlid = cpu_to_be16(ah_attr->dlid);
|
||||
|
@@ -410,7 +410,9 @@ static int mthca_dealloc_pd(struct ib_pd *pd)
|
||||
}
|
||||
|
||||
static struct ib_ah *mthca_ah_create(struct ib_pd *pd,
|
||||
struct ib_ah_attr *ah_attr)
|
||||
struct ib_ah_attr *ah_attr,
|
||||
struct ib_udata *udata)
|
||||
|
||||
{
|
||||
int err;
|
||||
struct mthca_ah *ah;
|
||||
|
新增問題並參考
封鎖使用者