From mboxrd@z Thu Jan 1 00:00:00 1970 From: Or Gerlitz Subject: Re: [PATCH] IB/cma: cma_match_net_dev needs to take into account port_num Date: Tue, 22 Dec 2015 12:47:39 +0200 Message-ID: <56792A4B.8060101@mellanox.com> References: <1450710084-22547-1-git-send-email-matanb@mellanox.com> Mime-Version: 1.0 Content-Type: text/plain; charset="windows-1252"; format=flowed Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1450710084-22547-1-git-send-email-matanb-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org> Sender: linux-rdma-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Matan Barak , Doug Ledford Cc: linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, Moni Shoua , Haggai Eran , Eran Ben Elisha List-Id: linux-rdma@vger.kernel.org On 12/21/2015 5:01 PM, Matan Barak wrote: > Previously, cma_match_net_dev called cma_protocol_roce which > tried to verify that the IB device uses RoCE protocol. However, > if rdma_id didn't have a bounded port, it used the first port > of the device. > > In VPI systems, the first port might be an IB port while the second > one could be an Ethernet port. This made requests for unbounded rdma_ids > that come from the Ethernet port fail. > Fixing this by passing the port of the request and checking this port > of the device. > > Fixes: b8cab5dab15f ('IB/cma: Accept connection without a valid netdev on RoCE') > Signed-off-by: Matan Barak seems that the patch is missing from patchworks, I can't explain that. -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html