]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
bridge: fdb: converge fdb_delete_by functions into one
authorNikolay Aleksandrov <nikolay@cumulusnetworks.com>
Mon, 13 Feb 2017 13:59:11 +0000 (14:59 +0100)
committerDavid S. Miller <davem@davemloft.net>
Tue, 14 Feb 2017 17:41:03 +0000 (12:41 -0500)
commit5019ab50f26c247abb510a80635b25b64b6c1f4b
tree1b39637ff17b3908b6267dbd4c0596f59b17961c
parent410b3d48f5111a28bb8d4c3d3dc5984c1baf7fc9
bridge: fdb: converge fdb_delete_by functions into one

We can simplify the logic of entries pointing to the bridge by
converging the fdb_delete_by functions, this would allow us to use the
same function for both cases since the fdb's dst is set to NULL if it is
pointing to the bridge thus we can always check for a port match.

Signed-off-by: Nikolay Aleksandrov <nikolay@cumulusnetworks.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/bridge/br_fdb.c