diff mbox

[for-4.7] i40iw: Enable remote access rights for stag allocation

Message ID 1467064334-12064-1-git-send-email-shiraz.saleem@intel.com (mailing list archive)
State Accepted
Headers show

Commit Message

Shiraz Saleem June 27, 2016, 9:52 p.m. UTC
Fix to enable remote access rights when allocating stag.

Fixes: b7aee855d3b9 ("RDMA/i40iw: Add base memory management extensions")
Signed-off-by: Shiraz Saleem <shiraz.saleem@intel.com>
---
 drivers/infiniband/hw/i40iw/i40iw_verbs.c | 1 +
 1 file changed, 1 insertion(+)

Comments

Shiraz Saleem July 6, 2016, 5:32 p.m. UTC | #1
Doug -- This patch fixes a regression. Can you please include 
it in the next-rc for 4.7? 

On Mon, Jun 27, 2016 at 03:52:14PM -0600, Saleem, Shiraz wrote:
> Fix to enable remote access rights when allocating stag.
> 
> Fixes: b7aee855d3b9 ("RDMA/i40iw: Add base memory management extensions")
> Signed-off-by: Shiraz Saleem <shiraz.saleem@intel.com>
> ---
>  drivers/infiniband/hw/i40iw/i40iw_verbs.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/drivers/infiniband/hw/i40iw/i40iw_verbs.c b/drivers/infiniband/hw/i40iw/i40iw_verbs.c
> index 33959ed..283b64c 100644
> --- a/drivers/infiniband/hw/i40iw/i40iw_verbs.c
> +++ b/drivers/infiniband/hw/i40iw/i40iw_verbs.c
> @@ -1474,6 +1474,7 @@ static int i40iw_hw_alloc_stag(struct i40iw_device *iwdev, struct i40iw_mr *iwmr
>  	info->stag_idx = iwmr->stag >> I40IW_CQPSQ_STAG_IDX_SHIFT;
>  	info->pd_id = iwpd->sc_pd.pd_id;
>  	info->total_len = iwmr->length;
> +	info->remote_access = true;
>  	cqp_info->cqp_cmd = OP_ALLOC_STAG;
>  	cqp_info->post_sq = 1;
>  	cqp_info->in.u.alloc_stag.dev = &iwdev->sc_dev;
> -- 
> 2.8.0
> 
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Doug Ledford July 12, 2016, 2:59 p.m. UTC | #2
On 7/6/2016 1:32 PM, Shiraz Saleem wrote:
> Doug -- This patch fixes a regression. Can you please include 
> it in the next-rc for 4.7? 

Applied, thanks.

> On Mon, Jun 27, 2016 at 03:52:14PM -0600, Saleem, Shiraz wrote:
>> Fix to enable remote access rights when allocating stag.
>>
>> Fixes: b7aee855d3b9 ("RDMA/i40iw: Add base memory management extensions")
>> Signed-off-by: Shiraz Saleem <shiraz.saleem@intel.com>
>> ---
>>  drivers/infiniband/hw/i40iw/i40iw_verbs.c | 1 +
>>  1 file changed, 1 insertion(+)
>>
>> diff --git a/drivers/infiniband/hw/i40iw/i40iw_verbs.c b/drivers/infiniband/hw/i40iw/i40iw_verbs.c
>> index 33959ed..283b64c 100644
>> --- a/drivers/infiniband/hw/i40iw/i40iw_verbs.c
>> +++ b/drivers/infiniband/hw/i40iw/i40iw_verbs.c
>> @@ -1474,6 +1474,7 @@ static int i40iw_hw_alloc_stag(struct i40iw_device *iwdev, struct i40iw_mr *iwmr
>>  	info->stag_idx = iwmr->stag >> I40IW_CQPSQ_STAG_IDX_SHIFT;
>>  	info->pd_id = iwpd->sc_pd.pd_id;
>>  	info->total_len = iwmr->length;
>> +	info->remote_access = true;
>>  	cqp_info->cqp_cmd = OP_ALLOC_STAG;
>>  	cqp_info->post_sq = 1;
>>  	cqp_info->in.u.alloc_stag.dev = &iwdev->sc_dev;
>> -- 
>> 2.8.0
>>
diff mbox

Patch

diff --git a/drivers/infiniband/hw/i40iw/i40iw_verbs.c b/drivers/infiniband/hw/i40iw/i40iw_verbs.c
index 33959ed..283b64c 100644
--- a/drivers/infiniband/hw/i40iw/i40iw_verbs.c
+++ b/drivers/infiniband/hw/i40iw/i40iw_verbs.c
@@ -1474,6 +1474,7 @@  static int i40iw_hw_alloc_stag(struct i40iw_device *iwdev, struct i40iw_mr *iwmr
 	info->stag_idx = iwmr->stag >> I40IW_CQPSQ_STAG_IDX_SHIFT;
 	info->pd_id = iwpd->sc_pd.pd_id;
 	info->total_len = iwmr->length;
+	info->remote_access = true;
 	cqp_info->cqp_cmd = OP_ALLOC_STAG;
 	cqp_info->post_sq = 1;
 	cqp_info->in.u.alloc_stag.dev = &iwdev->sc_dev;