]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
RDMA/core: Resolve MAC of next-hop device without ARP support
authorParav Pandit <parav@nvidia.com>
Tue, 16 Sep 2025 11:11:01 +0000 (14:11 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 15 Oct 2025 09:56:35 +0000 (11:56 +0200)
commit4703174764ab41a80fbbab9cc1d5e029b9defbe7
treecb58ec13ab6826d71cbe3af0a6b78971aeacb982
parent05639cb84e3c37a8d674a25927d687b5e8185c6a
RDMA/core: Resolve MAC of next-hop device without ARP support

[ Upstream commit 200651b9b8aadfbbec852f0e5d042d9abe75e2ab ]

Currently, if the next-hop netdevice does not support ARP resolution,
the destination MAC address is silently set to zero without reporting
an error. This leads to incorrect behavior and may result in packet
transmission failures.

Fix this by deferring MAC resolution to the IP stack via neighbour
lookup, allowing proper resolution or error reporting as appropriate.

Fixes: 7025fcd36bd6 ("IB: address translation to map IP toIB addresses (GIDs)")
Signed-off-by: Parav Pandit <parav@nvidia.com>
Reviewed-by: Vlad Dumitrescu <vdumitrescu@nvidia.com>
Signed-off-by: Edward Srouji <edwards@nvidia.com>
Link: https://patch.msgid.link/20250916111103.84069-3-edwards@nvidia.com
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/infiniband/core/addr.c