]> www.infradead.org Git - users/jedix/linux-maple.git/commit
vxlan: Insert FDB into hash table in vxlan_fdb_create()
authorIdo Schimmel <idosch@nvidia.com>
Tue, 15 Apr 2025 12:11:31 +0000 (15:11 +0300)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 22 Apr 2025 09:11:15 +0000 (11:11 +0200)
commit69281e0fe18ab60e7b67e328214ffbd8609b13b4
tree7eeeffdfe7fd0171d80875b24a1d6e770aafb694
parent884dd448f1ac8b5c5c0dcef9bcaab7c16ee48276
vxlan: Insert FDB into hash table in vxlan_fdb_create()

Commit 7c31e54aeee5 ("vxlan: do not destroy fdb if register_netdevice()
is failed") split the insertion of FDB entries into the FDB hash table
from the function where they are created.

This was done in order to work around a problem that is no longer
possible after the previous patch. Simplify the code and move the body
of vxlan_fdb_insert() back into vxlan_fdb_create().

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