* [PATCH net 0/2] qed*: Rdma fixes
@ 2018-05-08 18:29 Michal Kalderon
2018-05-08 18:29 ` [PATCH net 1/2] qed: Fix l2 initializations over iWARP personality Michal Kalderon
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Michal Kalderon @ 2018-05-08 18:29 UTC (permalink / raw)
To: michal.kalderon, davem
Cc: netdev, linux-rdma, chad.dupuis, Michal Kalderon,
Sudarsana Kalluru
This patch series include two fixes for bugs related to rdma.
The first has to do with loading the driver over an iWARP
device.
The second fixes a previous commit that added proper link
indication for iWARP / RoCE.
Signed-off-by: Michal Kalderon <Michal.Kalderon@cavium.com>
Signed-off-by: Sudarsana Kalluru <Sudarsana.Kalluru@cavium.com>
Michal Kalderon (2):
qed: Fix l2 initializations over iWARP personality
qede: Fix gfp flags sent to rdma event node allocation
drivers/net/ethernet/qlogic/qed/qed_l2.c | 6 ++----
drivers/net/ethernet/qlogic/qede/qede_rdma.c | 2 +-
2 files changed, 3 insertions(+), 5 deletions(-)
--
2.9.5
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH net 1/2] qed: Fix l2 initializations over iWARP personality
2018-05-08 18:29 [PATCH net 0/2] qed*: Rdma fixes Michal Kalderon
@ 2018-05-08 18:29 ` Michal Kalderon
2018-05-08 18:29 ` [PATCH net 2/2] qede: Fix gfp flags sent to rdma event node allocation Michal Kalderon
2018-05-10 19:22 ` [PATCH net 0/2] qed*: Rdma fixes David Miller
2 siblings, 0 replies; 4+ messages in thread
From: Michal Kalderon @ 2018-05-08 18:29 UTC (permalink / raw)
To: michal.kalderon, davem
Cc: netdev, linux-rdma, chad.dupuis, Michal Kalderon,
Sudarsana Kalluru
If qede driver was loaded on a device configured for iWARP
the l2 mutex wouldn't be allocated, and some l2 related
resources wouldn't be freed.
fixes: c851a9dc4359 ("qed: Introduce iWARP personality")
Signed-off-by: Michal Kalderon <Michal.Kalderon@cavium.com>
Signed-off-by: Sudarsana Kalluru <Sudarsana.Kalluru@cavium.com>
---
drivers/net/ethernet/qlogic/qed/qed_l2.c | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/drivers/net/ethernet/qlogic/qed/qed_l2.c b/drivers/net/ethernet/qlogic/qed/qed_l2.c
index e874504..8667799 100644
--- a/drivers/net/ethernet/qlogic/qed/qed_l2.c
+++ b/drivers/net/ethernet/qlogic/qed/qed_l2.c
@@ -115,8 +115,7 @@ int qed_l2_alloc(struct qed_hwfn *p_hwfn)
void qed_l2_setup(struct qed_hwfn *p_hwfn)
{
- if (p_hwfn->hw_info.personality != QED_PCI_ETH &&
- p_hwfn->hw_info.personality != QED_PCI_ETH_ROCE)
+ if (!QED_IS_L2_PERSONALITY(p_hwfn))
return;
mutex_init(&p_hwfn->p_l2_info->lock);
@@ -126,8 +125,7 @@ void qed_l2_free(struct qed_hwfn *p_hwfn)
{
u32 i;
- if (p_hwfn->hw_info.personality != QED_PCI_ETH &&
- p_hwfn->hw_info.personality != QED_PCI_ETH_ROCE)
+ if (!QED_IS_L2_PERSONALITY(p_hwfn))
return;
if (!p_hwfn->p_l2_info)
--
2.9.5
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH net 2/2] qede: Fix gfp flags sent to rdma event node allocation
2018-05-08 18:29 [PATCH net 0/2] qed*: Rdma fixes Michal Kalderon
2018-05-08 18:29 ` [PATCH net 1/2] qed: Fix l2 initializations over iWARP personality Michal Kalderon
@ 2018-05-08 18:29 ` Michal Kalderon
2018-05-10 19:22 ` [PATCH net 0/2] qed*: Rdma fixes David Miller
2 siblings, 0 replies; 4+ messages in thread
From: Michal Kalderon @ 2018-05-08 18:29 UTC (permalink / raw)
To: michal.kalderon, davem
Cc: netdev, linux-rdma, chad.dupuis, Michal Kalderon,
Sudarsana Kalluru
A previous commit 4609adc27175 ("qede: Fix qedr link update")
added a flow that could allocate rdma event objects from an
interrupt path (link notification). Therefore the kzalloc call
should be done with GFP_ATOMIC.
fixes: 4609adc27175 ("qede: Fix qedr link update")
Signed-off-by: Michal Kalderon <Michal.Kalderon@cavium.com>
Signed-off-by: Sudarsana Kalluru <Sudarsana.Kalluru@cavium.com>
---
drivers/net/ethernet/qlogic/qede/qede_rdma.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/ethernet/qlogic/qede/qede_rdma.c b/drivers/net/ethernet/qlogic/qede/qede_rdma.c
index 50b142f..1900bf7 100644
--- a/drivers/net/ethernet/qlogic/qede/qede_rdma.c
+++ b/drivers/net/ethernet/qlogic/qede/qede_rdma.c
@@ -238,7 +238,7 @@ qede_rdma_get_free_event_node(struct qede_dev *edev)
}
if (!found) {
- event_node = kzalloc(sizeof(*event_node), GFP_KERNEL);
+ event_node = kzalloc(sizeof(*event_node), GFP_ATOMIC);
if (!event_node) {
DP_NOTICE(edev,
"qedr: Could not allocate memory for rdma work\n");
--
2.9.5
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH net 0/2] qed*: Rdma fixes
2018-05-08 18:29 [PATCH net 0/2] qed*: Rdma fixes Michal Kalderon
2018-05-08 18:29 ` [PATCH net 1/2] qed: Fix l2 initializations over iWARP personality Michal Kalderon
2018-05-08 18:29 ` [PATCH net 2/2] qede: Fix gfp flags sent to rdma event node allocation Michal Kalderon
@ 2018-05-10 19:22 ` David Miller
2 siblings, 0 replies; 4+ messages in thread
From: David Miller @ 2018-05-10 19:22 UTC (permalink / raw)
To: Michal.Kalderon; +Cc: netdev, linux-rdma, chad.dupuis, Sudarsana.Kalluru
From: Michal Kalderon <Michal.Kalderon@cavium.com>
Date: Tue, 8 May 2018 21:29:17 +0300
> This patch series include two fixes for bugs related to rdma.
> The first has to do with loading the driver over an iWARP
> device.
> The second fixes a previous commit that added proper link
> indication for iWARP / RoCE.
>
> Signed-off-by: Michal Kalderon <Michal.Kalderon@cavium.com>
> Signed-off-by: Sudarsana Kalluru <Sudarsana.Kalluru@cavium.com>
Series applied, thanks.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2018-05-10 19:22 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-05-08 18:29 [PATCH net 0/2] qed*: Rdma fixes Michal Kalderon
2018-05-08 18:29 ` [PATCH net 1/2] qed: Fix l2 initializations over iWARP personality Michal Kalderon
2018-05-08 18:29 ` [PATCH net 2/2] qede: Fix gfp flags sent to rdma event node allocation Michal Kalderon
2018-05-10 19:22 ` [PATCH net 0/2] qed*: Rdma fixes David Miller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).