Thread (24 messages) read the whole thread 24 messages, 2 authors, 2023-03-15

Re: [PATCH net-next 08/11] vxlan: mdb: Add an internal flag to indicate MDB usage

From: Nikolay Aleksandrov <razor@blackwall.org>
Date: 2023-03-14 12:28:29
Also in: bridge

On 13/03/2023 16:53, Ido Schimmel wrote:
Add an internal flag to indicate whether MDB entries are configured or
not. Set the flag after installing the first MDB entry and clear it
before deleting the last one.

The flag will be consulted by the data path which will only perform an
MDB lookup if the flag is set, thereby keeping the MDB overhead to a
minimum when the MDB is not used.

Another option would have been to use a static key, but it is global and
not per-device, unlike the current approach.

Signed-off-by: Ido Schimmel <idosch@nvidia.com>
---
 drivers/net/vxlan/vxlan_mdb.c | 7 +++++++
 include/net/vxlan.h           | 1 +
 2 files changed, 8 insertions(+)
Reviewed-by: Nikolay Aleksandrov <razor@blackwall.org>

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help