* FAILED: patch "[PATCH] IB/cma: Fix RDMA port validation for iWarp" failed to apply to 4.4-stable tree
@ 2016-03-01 21:34 gregkh
2016-03-01 22:52 ` Steve Wise
0 siblings, 1 reply; 3+ messages in thread
From: gregkh @ 2016-03-01 21:34 UTC (permalink / raw)
To: matanb, dledford, hariprasad, stable, swise; +Cc: stable
The patch below does not apply to the 4.4-stable tree.
If someone wants it applied there, or to any other stable or longterm
tree, then please email the backport, including the original git commit
id to <stable@vger.kernel.org>.
thanks,
greg k-h
------------------ original commit in Linus's tree ------------------
>From 649367735ee5dedb128d9fac0b86ba7e0fe7ae3b Mon Sep 17 00:00:00 2001
From: Matan Barak <matanb@mellanox.com>
Date: Thu, 7 Jan 2016 11:19:29 +0200
Subject: [PATCH] IB/cma: Fix RDMA port validation for iWarp
cma_validate_port wrongly assumed that Ethernet devices are RoCE
devices and thus their ndev should be matched in the GID table.
This broke the iWarp support. Fixing that matching the ndev only if
we work on a RoCE port.
Cc: <stable@vger.kernel.org> # 4.4.x-
Fixes: abae1b71dd37 ('IB/cma: cma_validate_port should verify the port
and netdevice')
Reported-by: Hariprasad Shenai <hariprasad@chelsio.com>
Tested-by: Hariprasad Shenai <hariprasad@chelsio.com>
Signed-off-by: Matan Barak <matanb@mellanox.com>
Reviewed-by: Steve Wise <swise@opengridcomputing.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
diff --git a/drivers/infiniband/core/cma.c b/drivers/infiniband/core/cma.c
index 559ee3d27b4a..a811594b0b59 100644
--- a/drivers/infiniband/core/cma.c
+++ b/drivers/infiniband/core/cma.c
@@ -551,7 +551,7 @@ static inline int cma_validate_port(struct ib_device *device, u8 port,
if ((dev_type != ARPHRD_INFINIBAND) && rdma_protocol_ib(device, port))
return ret;
- if (dev_type == ARPHRD_ETHER) {
+ if (dev_type == ARPHRD_ETHER && rdma_protocol_roce(device, port)) {
ndev = dev_get_by_index(&init_net, bound_if_index);
if (ndev && ndev->flags & IFF_LOOPBACK) {
pr_info("detected loopback device\n");
^ permalink raw reply related [flat|nested] 3+ messages in thread
* RE: FAILED: patch "[PATCH] IB/cma: Fix RDMA port validation for iWarp" failed to apply to 4.4-stable tree
2016-03-01 21:34 FAILED: patch "[PATCH] IB/cma: Fix RDMA port validation for iWarp" failed to apply to 4.4-stable tree gregkh
@ 2016-03-01 22:52 ` Steve Wise
2016-03-01 23:08 ` Greg KH
0 siblings, 1 reply; 3+ messages in thread
From: Steve Wise @ 2016-03-01 22:52 UTC (permalink / raw)
To: gregkh, matanb, dledford, hariprasad, stable; +Cc: stable
> The patch below does not apply to the 4.4-stable tree.
> If someone wants it applied there, or to any other stable or longterm
> tree, then please email the backport, including the original git commit
> id to <stable@vger.kernel.org>.
>
> thanks,
>
> greg k-h
Hey Greg, I just posted the backport. Not sure if I did the comment correctly...
Thanks,
Steve.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: FAILED: patch "[PATCH] IB/cma: Fix RDMA port validation for iWarp" failed to apply to 4.4-stable tree
2016-03-01 22:52 ` Steve Wise
@ 2016-03-01 23:08 ` Greg KH
0 siblings, 0 replies; 3+ messages in thread
From: Greg KH @ 2016-03-01 23:08 UTC (permalink / raw)
To: Steve Wise; +Cc: matanb, dledford, hariprasad, stable
On Tue, Mar 01, 2016 at 04:52:46PM -0600, Steve Wise wrote:
> > The patch below does not apply to the 4.4-stable tree.
> > If someone wants it applied there, or to any other stable or longterm
> > tree, then please email the backport, including the original git commit
> > id to <stable@vger.kernel.org>.
> >
> > thanks,
> >
> > greg k-h
>
>
> Hey Greg, I just posted the backport. Not sure if I did the comment correctly...
It was wonderful, thanks.
greg k-h
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2016-03-01 23:08 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-03-01 21:34 FAILED: patch "[PATCH] IB/cma: Fix RDMA port validation for iWarp" failed to apply to 4.4-stable tree gregkh
2016-03-01 22:52 ` Steve Wise
2016-03-01 23:08 ` Greg KH
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox