Re: [PATCH v2 for-next] RDMA/hns: Adjust definition of FRMR fields

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Feb 09, 2021 at 04:38:43PM +0800, Weihang Li wrote:
> @@ -545,7 +545,10 @@ static int set_rc_opcode(struct hns_roce_v2_rc_send_wqe *rc_sq_wqe,
>  		rc_sq_wqe->va = cpu_to_le64(atomic_wr(wr)->remote_addr);
>  		break;
>  	case IB_WR_REG_MR:
> -		set_frmr_seg(rc_sq_wqe, reg_wr(wr));
> +		if (hr_dev->pci_dev->revision >= PCI_REVISION_ID_HIP09)
> +			set_frmr_seg(rc_sq_wqe, reg_wr(wr));
> +		else
> +			ret = -EOPNOTSUPP;

The driver must also clear IB_DEVICE_MEM_MGT_EXTENSIONS if it won't
support IB_WR_REG_MR

Jason



[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Photo]     [Yosemite News]     [Yosemite Photos]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux