]> www.infradead.org Git - users/jedix/linux-maple.git/commit
vxlan: Add a linked list of FDB entries
authorIdo Schimmel <idosch@nvidia.com>
Tue, 15 Apr 2025 12:11:35 +0000 (15:11 +0300)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 22 Apr 2025 09:11:15 +0000 (11:11 +0200)
commit8d45673d2d2e59d03e108c569a3e8c031aa534c8
treeb169fa4cbaee6b2271deb84d12a7ec42bbb80996
parent094adad91310d9f8f8485251129482f4f3e2c5b3
vxlan: Add a linked list of FDB entries

Currently, FDB entries are stored in a hash table with a fixed number of
buckets. The table is used for both lookups and entry traversal.
Subsequent patches will convert the table to rhashtable which is not
suitable for entry traversal.

In preparation for this conversion, add FDB entries to a linked list.
Subsequent patches will convert the driver to use this list when
traversing entries during dump, flush, etc.

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