Commit 5069d7e2 authored by Anumula Murali Mohan Reddy's avatar Anumula Murali Mohan Reddy Committed by Leon Romanovsky
Browse files

RDMA/core: Fix ENODEV error for iWARP test over vlan



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: f8ef1be8 ("RDMA/cma: Avoid GID lookups on iWARP devices")
Signed-off-by: default avatarAnumula Murali Mohan Reddy <anumula@chelsio.com>
Signed-off-by: default avatarPotnuri Bharat Teja <bharat@chelsio.com>
Link: https://patch.msgid.link/20241008114334.146702-1-anumula@chelsio.com


Signed-off-by: default avatarLeon Romanovsky <leon@kernel.org>
parent 6ff57a2e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment