lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Date:   Mon, 18 May 2020 16:52:53 -0700 (PDT)
From:   David Miller <davem@...emloft.net>
To:     ybason@...vell.com
Cc:     netdev@...r.kernel.org, mkalderon@...vell.com
Subject: Re: [PATCH net-next 2/2] qed: Add XRC to RoCE

From: Yuval Basson <ybason@...vell.com>
Date: Tue, 19 May 2020 01:21:00 +0300

> --- a/drivers/net/ethernet/qlogic/qed/qed_rdma.c
> +++ b/drivers/net/ethernet/qlogic/qed/qed_rdma.c
> @@ -212,6 +212,15 @@ static int qed_rdma_alloc(struct qed_hwfn *p_hwfn)
>  		goto free_rdma_port;
>  	}
>  
> +	/* Allocate bit map for XRC Domains */
> +	rc = qed_rdma_bmap_alloc(p_hwfn, &p_rdma_info->xrcd_map,
> +				 QED_RDMA_MAX_XRCDS, "XRCD");
> +	if (rc) {
> +		DP_VERBOSE(p_hwfn, QED_MSG_RDMA,
> +			   "Failed to allocate xrcd_map,rc = %d\n", rc);
> +		return rc;
> +	}

You need to perform cleanups rather than just return 'rc'.

> @@ -271,6 +280,19 @@ static int qed_rdma_alloc(struct qed_hwfn *p_hwfn)
>  		goto free_cid_map;
>  	}
>  
> +	/* The first SRQ follows the last XRC SRQ. This means that the
> +	 * SRQ IDs start from an offset equals to max_xrc_srqs.
> +	 */
> +	p_rdma_info->srq_id_offset = p_hwfn->p_cxt_mngr->xrc_srq_count;
> +	rc = qed_rdma_bmap_alloc(p_hwfn,
> +				 &p_rdma_info->xrc_srq_map,
> +				 p_hwfn->p_cxt_mngr->xrc_srq_count, "XRC SRQ");
> +	if (rc) {
> +		DP_VERBOSE(p_hwfn, QED_MSG_RDMA,
> +			   "Failed to allocate xrc srq bitmap, rc = %d\n", rc);
> +		return rc;

Likewise.

Powered by blists - more mailing lists