mem.c (16217dc79dbc599b110dda26d0421df47904bba4) | mem.c (49b53a93a64ab0aaec10851b004297a3ac885433) |
---|---|
1/* 2 * Copyright (c) 2009-2010 Chelsio, Inc. All rights reserved. 3 * 4 * This software is available to you under a choice of one of two 5 * licenses. You may choose to be licensed under the terms of the GNU 6 * General Public License (GPL) Version 2, available from the file 7 * COPYING in the main directory of this source tree, or the 8 * OpenIB.org BSD license below: --- 681 unchanged lines hidden (view full) --- 690 mhp->attr.pbl_size = max_num_sg; 691 ret = allocate_stag(&rhp->rdev, &stag, php->pdid, 692 mhp->attr.pbl_size, mhp->attr.pbl_addr); 693 if (ret) 694 goto err2; 695 mhp->attr.pdid = php->pdid; 696 mhp->attr.type = FW_RI_STAG_NSMR; 697 mhp->attr.stag = stag; | 1/* 2 * Copyright (c) 2009-2010 Chelsio, Inc. All rights reserved. 3 * 4 * This software is available to you under a choice of one of two 5 * licenses. You may choose to be licensed under the terms of the GNU 6 * General Public License (GPL) Version 2, available from the file 7 * COPYING in the main directory of this source tree, or the 8 * OpenIB.org BSD license below: --- 681 unchanged lines hidden (view full) --- 690 mhp->attr.pbl_size = max_num_sg; 691 ret = allocate_stag(&rhp->rdev, &stag, php->pdid, 692 mhp->attr.pbl_size, mhp->attr.pbl_addr); 693 if (ret) 694 goto err2; 695 mhp->attr.pdid = php->pdid; 696 mhp->attr.type = FW_RI_STAG_NSMR; 697 mhp->attr.stag = stag; |
698 mhp->attr.state = 1; | 698 mhp->attr.state = 0; |
699 mmid = (stag) >> 8; 700 mhp->ibmr.rkey = mhp->ibmr.lkey = stag; 701 if (insert_handle(rhp, &rhp->mmidr, mhp, mmid)) { 702 ret = -ENOMEM; 703 goto err3; 704 } 705 706 PDBG("%s mmid 0x%x mhp %p stag 0x%x\n", __func__, mmid, mhp, stag); --- 66 unchanged lines hidden --- | 699 mmid = (stag) >> 8; 700 mhp->ibmr.rkey = mhp->ibmr.lkey = stag; 701 if (insert_handle(rhp, &rhp->mmidr, mhp, mmid)) { 702 ret = -ENOMEM; 703 goto err3; 704 } 705 706 PDBG("%s mmid 0x%x mhp %p stag 0x%x\n", __func__, mmid, mhp, stag); --- 66 unchanged lines hidden --- |