Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 48933d0

Browse files
mustafakismailLeon Romanovsky
authored andcommitted
i40iw: Use correct address in dst_neigh_lookup for IPv6
Use of incorrect structure address for IPv6 neighbor lookup causes connections to IPv6 addresses to fail. Fix this by using correct address in call to dst_neigh_lookup. Fixes: f27b474 ("i40iw: add connection management code") Signed-off-by: Mustafa Ismail <[email protected]> Signed-off-by: Shiraz Saleem <[email protected]> Signed-off-by: Doug Ledford <[email protected]>
1 parent e55c33c commit 48933d0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/infiniband/hw/i40iw/i40iw_cm.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2093,7 +2093,7 @@ static int i40iw_addr_resolve_neigh_ipv6(struct i40iw_device *iwdev,
20932093
if (netif_is_bond_slave(netdev))
20942094
netdev = netdev_master_upper_dev_get(netdev);
20952095

2096-
neigh = dst_neigh_lookup(dst, &dst_addr);
2096+
neigh = dst_neigh_lookup(dst, dst_addr.sin6_addr.in6_u.u6_addr32);
20972097

20982098
rcu_read_lock();
20992099
if (neigh) {

0 commit comments

Comments
 (0)