* [PATCH net-next] qed: Fix ILT and XRCD bitmap memory leaks
@ 2020-07-21 11:34 Yuval Basson
2020-07-21 22:51 ` David Miller
2020-07-21 22:54 ` David Miller
0 siblings, 2 replies; 3+ messages in thread
From: Yuval Basson @ 2020-07-21 11:34 UTC (permalink / raw)
To: davem; +Cc: netdev, Yuval Basson, Michal Kalderon
- Free ILT lines used for XRC-SRQ's contexts.
- Free XRCD bitmap
Fixes: b8204ad878ce7 ("qed: changes to ILT to support XRC")
Fixes: 7bfb399eca460 ("qed: Add XRC to RoCE")
Signed-off-by: Michal Kalderon <mkalderon@marvell.com>
Signed-off-by: Yuval Basson <ybason@marvell.com>
---
drivers/net/ethernet/qlogic/qed/qed_cxt.c | 5 +++++
drivers/net/ethernet/qlogic/qed/qed_rdma.c | 1 +
2 files changed, 6 insertions(+)
diff --git a/drivers/net/ethernet/qlogic/qed/qed_cxt.c b/drivers/net/ethernet/qlogic/qed/qed_cxt.c
index 5362dc1..6c221e9 100644
--- a/drivers/net/ethernet/qlogic/qed/qed_cxt.c
+++ b/drivers/net/ethernet/qlogic/qed/qed_cxt.c
@@ -2335,6 +2335,11 @@ int qed_cxt_get_tid_mem_info(struct qed_hwfn *p_hwfn,
elem_size = SRQ_CXT_SIZE;
p_blk = &p_cli->pf_blks[SRQ_BLK];
break;
+ case QED_ELEM_XRC_SRQ:
+ p_cli = &p_hwfn->p_cxt_mngr->clients[ILT_CLI_TSDM];
+ elem_size = XRC_SRQ_CXT_SIZE;
+ p_blk = &p_cli->pf_blks[SRQ_BLK];
+ break;
case QED_ELEM_TASK:
p_cli = &p_hwfn->p_cxt_mngr->clients[ILT_CLI_CDUT];
elem_size = TYPE1_TASK_CXT_SIZE(p_hwfn);
diff --git a/drivers/net/ethernet/qlogic/qed/qed_rdma.c b/drivers/net/ethernet/qlogic/qed/qed_rdma.c
index e5648ca..a4bcde5 100644
--- a/drivers/net/ethernet/qlogic/qed/qed_rdma.c
+++ b/drivers/net/ethernet/qlogic/qed/qed_rdma.c
@@ -379,6 +379,7 @@ static void qed_rdma_resc_free(struct qed_hwfn *p_hwfn)
qed_rdma_bmap_free(p_hwfn, &p_hwfn->p_rdma_info->srq_map, 1);
qed_rdma_bmap_free(p_hwfn, &p_hwfn->p_rdma_info->real_cid_map, 1);
qed_rdma_bmap_free(p_hwfn, &p_hwfn->p_rdma_info->xrc_srq_map, 1);
+ qed_rdma_bmap_free(p_hwfn, &p_hwfn->p_rdma_info->xrcd_map, 1);
kfree(p_rdma_info->port);
kfree(p_rdma_info->dev);
--
1.8.3.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH net-next] qed: Fix ILT and XRCD bitmap memory leaks
2020-07-21 11:34 [PATCH net-next] qed: Fix ILT and XRCD bitmap memory leaks Yuval Basson
@ 2020-07-21 22:51 ` David Miller
2020-07-21 22:54 ` David Miller
1 sibling, 0 replies; 3+ messages in thread
From: David Miller @ 2020-07-21 22:51 UTC (permalink / raw)
To: ybason; +Cc: netdev, mkalderon
From: Yuval Basson <ybason@marvell.com>
Date: Tue, 21 Jul 2020 14:34:26 +0300
> - Free ILT lines used for XRC-SRQ's contexts.
> - Free XRCD bitmap
>
> Fixes: b8204ad878ce7 ("qed: changes to ILT to support XRC")
> Fixes: 7bfb399eca460 ("qed: Add XRC to RoCE")
> Signed-off-by: Michal Kalderon <mkalderon@marvell.com>
> Signed-off-by: Yuval Basson <ybason@marvell.com>
Applied.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH net-next] qed: Fix ILT and XRCD bitmap memory leaks
2020-07-21 11:34 [PATCH net-next] qed: Fix ILT and XRCD bitmap memory leaks Yuval Basson
2020-07-21 22:51 ` David Miller
@ 2020-07-21 22:54 ` David Miller
1 sibling, 0 replies; 3+ messages in thread
From: David Miller @ 2020-07-21 22:54 UTC (permalink / raw)
To: ybason; +Cc: netdev, mkalderon
From: Yuval Basson <ybason@marvell.com>
Date: Tue, 21 Jul 2020 14:34:26 +0300
> - Free ILT lines used for XRC-SRQ's contexts.
> - Free XRCD bitmap
>
> Fixes: b8204ad878ce7 ("qed: changes to ILT to support XRC")
> Fixes: 7bfb399eca460 ("qed: Add XRC to RoCE")
> Signed-off-by: Michal Kalderon <mkalderon@marvell.com>
> Signed-off-by: Yuval Basson <ybason@marvell.com>
Applied.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2020-07-21 22:54 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-21 11:34 [PATCH net-next] qed: Fix ILT and XRCD bitmap memory leaks Yuval Basson
2020-07-21 22:51 ` David Miller
2020-07-21 22:54 ` David Miller
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.