Patch "RDMA/core: Fix ENODEV error for iWARP test over vlan" has been added to the 6.6-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

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

to the 6.6-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     rdma-core-fix-enodev-error-for-iwarp-test-over-vlan.patch
and it can be found in the queue-6.6 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit 4823f638846364973118db6f32d66c709f5a72c5
Author: Anumula Murali Mohan Reddy <anumula@xxxxxxxxxxx>
Date:   Tue Oct 8 17:13:34 2024 +0530

    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: f8ef1be816bf ("RDMA/cma: Avoid GID lookups on iWARP devices")
    Signed-off-by: Anumula Murali Mohan Reddy <anumula@xxxxxxxxxxx>
    Signed-off-by: Potnuri Bharat Teja <bharat@xxxxxxxxxxx>
    Link: https://patch.msgid.link/20241008114334.146702-1-anumula@xxxxxxxxxxx
    Signed-off-by: Leon Romanovsky <leon@xxxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/drivers/infiniband/core/addr.c b/drivers/infiniband/core/addr.c
index f253295795f0a..fd78d678877c4 100644
--- a/drivers/infiniband/core/addr.c
+++ b/drivers/infiniband/core/addr.c
@@ -269,6 +269,8 @@ rdma_find_ndev_for_src_ip_rcu(struct net *net, const struct sockaddr *src_in)
 		break;
 #endif
 	}
+	if (!ret && dev && is_vlan_dev(dev))
+		dev = vlan_dev_real_dev(dev);
 	return ret ? ERR_PTR(ret) : dev;
 }
 




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux