RE: [EXT] Re: [PATCH net-next,v2 2/2] qed: Add XRC to RoCE

2020-05-20 Thread Yuval Basson
> From: Yuval Basson > Date: Tue, 19 May 2020 23:51:26 +0300 > > > @@ -1748,24 +1839,26 @@ static int qed_rdma_modify_srq(void > *rdma_cxt, > > u16 opaque_fid, srq_id; > > struct qed_bmap *bmap; > > u32 returned_id; > > + u16 offset; > > int rc; > > > > - bmap = &p_hwfn->p_rdm

Re: [PATCH net-next,v2 2/2] qed: Add XRC to RoCE

2020-05-19 Thread David Miller
From: Yuval Basson Date: Tue, 19 May 2020 23:51:26 +0300 > @@ -1748,24 +1839,26 @@ static int qed_rdma_modify_srq(void *rdma_cxt, > u16 opaque_fid, srq_id; > struct qed_bmap *bmap; > u32 returned_id; > + u16 offset; > int rc; > > - bmap = &p_hwfn->p_rdma_info->sr

[PATCH net-next,v2 2/2] qed: Add XRC to RoCE

2020-05-19 Thread Yuval Basson
Add support for XRC-SRQ's and XRC-QP's for upper layer driver. We maintain separate bitmaps for resource management for srq and xrc-srq, However, the range in FW is one, The xrc-srq's are first and then the srq's follow. Therefore we maintain a srq-id offset. v2: perform cleanups if XRC bitmpas a