]> 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, 3 Dec 2024 14:00:53 +0000 (19:30 +0530)
committerLeon Romanovsky <leon@kernel.org>
Tue, 10 Dec 2024 08:58:03 +0000 (03:58 -0500)
commita4048c83fd87c65657a4acb17d639092d4b6133d
tree55b1ba7bdee18a0d2ec8b0b991be4450fbf79045
parentd507d29bfde3fee6a74d098a9ac640b8fc1a549b
RDMA/core: Fix ENODEV error for iWARP test over vlan

If traffic is over vlan, cma_validate_port() fails to match
net_device ifindex with bound_if_index and results in ENODEV error.
As iWARP gid table is static, it contains entry corresponding  to
only one net device which is either real netdev or vlan netdev for
cases like  siw attached to a vlan interface.
This patch fixes the issue by assigning bound_if_index with net
device index, if real net device obtained from bound if index matches
with net device retrieved from gid table

Fixes: f8ef1be816bf ("RDMA/cma: Avoid GID lookups on iWARP devices")
Link: https://lore.kernel.org/all/ZzNgdrjo1kSCGbRz@chelsio.com/
Signed-off-by: Anumula Murali Mohan Reddy <anumula@chelsio.com>
Signed-off-by: Potnuri Bharat Teja <bharat@chelsio.com>
Link: https://patch.msgid.link/20241203140052.3985-1-anumula@chelsio.com
Signed-off-by: Leon Romanovsky <leon@kernel.org>
drivers/infiniband/core/cma.c