OpenCloudOS-Kernel/drivers/infiniband
Anumula Murali Mohan Reddy b7bf17f4f9 RDMA/core: Fix ENODEV error for iWARP test over vlan
[ Upstream commit 5069d7e202f640a36cf213a432296c85113a52f7 ]

If traffic is over vlan, cma_validate_port() fails to match vlan
net_device ifindex with bound_if_index and results in ENODEV error.
It is because rdma_copy_src_l2_addr() always assigns bound_if_index with
real net_device ifindex.
This patch fixes the issue by assigning bound_if_index with vlan
net_device index if traffic is over vlan.

Fixes: f8ef1be816 ("RDMA/cma: Avoid GID lookups on iWARP devices")
Signed-off-by: Anumula Murali Mohan Reddy <anumula@chelsio.com>
Signed-off-by: Potnuri Bharat Teja <bharat@chelsio.com>
Link: https://patch.msgid.link/20241008114334.146702-1-anumula@chelsio.com
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-11-01 01:58:18 +01:00
..
core RDMA/core: Fix ENODEV error for iWARP test over vlan 2024-11-01 01:58:18 +01:00
hw RDMA/bnxt_re: Add a check for memory allocation 2024-11-01 01:58:18 +01:00
sw RDMA/rxe: Don't set BTH_ACK_MASK for UC or UD QPs 2024-08-03 08:53:59 +02:00
ulp RDMA/rtrs-srv: Avoid null pointer deref during path establishment 2024-10-17 15:24:17 +02:00
Kconfig RDMA: Disable IB HW for UML 2022-12-04 15:22:03 +02:00
Makefile