On Thu, Mar 12, 2020 at 05:50:24PM +0800, Weihang Li wrote: > From: Lang Cheng <chenglang@xxxxxxxxxx> > > Depth of qp shouldn't be allowed to be set to zero, after ensuring that, > subsequent process can be simplified. And when qp is changed from reset to > reset, the capability of minimum qp depth was used to identify hardware of > hip06, it should be changed into a more readable form. > > Signed-off-by: Lang Cheng <chenglang@xxxxxxxxxx> > Signed-off-by: Weihang Li <liweihang@xxxxxxxxxx> > --- > This patch is named "RDMA/hns: Support to set mininum depth of qp to 0" > before v3, and previous discussions can be found at: > https://patchwork.kernel.org/patch/11415067/ > > Changes since v3: > - Remove a "Reviewed-by" tag that hasn't been authorized. > > Changes since v2: > - Update this patch's name and description according to the modification of > code. > > Changes since v1: > - Fix comments from Leon about calculation of max_cnt, check for qp's depth > and modification of the prints. > - Optimize logic of codes to make them more readable. > - Replace dev_err() with ibdev_err(). > > drivers/infiniband/hw/hns/hns_roce_qp.c | 77 ++++++++++++++------------------- > 1 file changed, 33 insertions(+), 44 deletions(-) Applied to for-next, thanks Jason