]> www.infradead.org Git - users/jedix/linux-maple.git/commit
vxlan: Relocate assignment of default remote device
authorIdo Schimmel <idosch@nvidia.com>
Tue, 15 Apr 2025 12:11:33 +0000 (15:11 +0300)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 22 Apr 2025 09:11:15 +0000 (11:11 +0200)
commit6ba480cca25f26bd0f0e328b2d2f8eab6bde7cc0
tree234f13a2f9ddc3ea17f47a06a4a2773ea3d0b1b4
parentccc203b9a846c1d5262b5c60565ff79930c13477
vxlan: Relocate assignment of default remote device

The default FDB entry can be associated with a net device if a physical
device (i.e., 'dev PHYS_DEV') was specified during the creation of the
VXLAN device.

The assignment of the net device pointer to 'dst->remote_dev' logically
belongs in the if block that resolves the pointer from the specified
ifindex, so move it there.

Reviewed-by: Petr Machata <petrm@nvidia.com>
Signed-off-by: Ido Schimmel <idosch@nvidia.com>
Link: https://patch.msgid.link/20250415121143.345227-6-idosch@nvidia.com
Reviewed-by: Nikolay Aleksandrov <razor@blackwall.org>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
drivers/net/vxlan/vxlan_core.c