]> www.infradead.org Git - users/jedix/linux-maple.git/commit
RDMA/core: Fix ENODEV error for iWARP test over vlan
authorAnumula Murali Mohan Reddy <anumula@chelsio.com>
Tue, 8 Oct 2024 11:43:34 +0000 (17:13 +0530)
committerLeon Romanovsky <leon@kernel.org>
Tue, 8 Oct 2024 12:07:41 +0000 (15:07 +0300)
commit5069d7e202f640a36cf213a432296c85113a52f7
tree4324a19f1f2d949896eb1cacf0554a5068bd97e1
parent6ff57a2ea7c2911f80457a5a3a5b4370756ad475
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: f8ef1be816bf ("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>
drivers/infiniband/core/addr.c