]> www.infradead.org Git - users/jedix/linux-maple.git/commit
RDMA/cxgb4: Fix RDMA_CM_EVENT_UNREACHABLE error for iWARP
authorAnumula Murali Mohan Reddy <anumula@chelsio.com>
Mon, 7 Oct 2024 13:23:11 +0000 (18:53 +0530)
committerJason Gunthorpe <jgg@nvidia.com>
Fri, 11 Oct 2024 16:55:53 +0000 (13:55 -0300)
commitc659b405b82ead335bee6eb33f9691bf718e21e8
treeaea1a309f420421cb65dc0243535622981e43273
parent4e1e3dd88a4cedd5ccc1a3fc3d71e03b70a7a791
RDMA/cxgb4: Fix RDMA_CM_EVENT_UNREACHABLE error for iWARP

ip_dev_find() always returns real net_device address, whether traffic is
running on a vlan or real device, if traffic is over vlan, filling
endpoint struture with real ndev and an attempt to send a connect request
will results in RDMA_CM_EVENT_UNREACHABLE error.  This patch fixes the
issue by using vlan_dev_real_dev().

Fixes: 830662f6f032 ("RDMA/cxgb4: Add support for active and passive open connection with IPv6 address")
Link: https://patch.msgid.link/r/20241007132311.70593-1-anumula@chelsio.com
Signed-off-by: Anumula Murali Mohan Reddy <anumula@chelsio.com>
Signed-off-by: Potnuri Bharat Teja <bharat@chelsio.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/infiniband/hw/cxgb4/cm.c