]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 1 Nov 2024 00:52:32 +0000 (01:52 +0100)
commit2e78ecb1220a0b1d3a20e4262a3e66eb8fdcf5cb
tree93c25cb211dbff47a4746fe65fd9fdc8a566abe9
parent4e19aca8db696b6ba4dd8c73657405e15c695f14
RDMA/cxgb4: Fix RDMA_CM_EVENT_UNREACHABLE error for iWARP

[ Upstream commit c659b405b82ead335bee6eb33f9691bf718e21e8 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/infiniband/hw/cxgb4/cm.c