]> www.infradead.org Git - users/dwmw2/linux.git/commit
vxlan: vxlan_core: Make vxlan_flush() more generic for future use
authorAmit Cohen <amcohen@nvidia.com>
Mon, 9 Oct 2023 10:06:09 +0000 (13:06 +0300)
committerDavid S. Miller <davem@davemloft.net>
Fri, 13 Oct 2023 09:00:30 +0000 (10:00 +0100)
commitbfe36bf7811c3171e546a956377ea16e89ecf838
treedf525d446fb5d2cb5744a13cde68abc83b8b33f0
parent38985e8c278b82e6d4d62d4acd57c761cc23ce63
vxlan: vxlan_core: Make vxlan_flush() more generic for future use

The function vxlan_flush() gets a boolean called 'do_all' and in case
that it is false, it does not flush entries with state 'NUD_PERMANENT'
or 'NUD_NOARP'. The following patches will add support for FDB flush
with parameters from user space. Make the function more generic, so it
can be used later.

Signed-off-by: Amit Cohen <amcohen@nvidia.com>
Reviewed-by: Petr Machata <petrm@nvidia.com>
Reviewed-by: Ido Schimmel <idosch@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/vxlan/vxlan_core.c