> 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
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
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