interface: fix extra locking on fib/mfib table 42/31242/12
authorDmitry Vakrhushev <dmitry@netgate.com>
Thu, 11 Feb 2021 21:42:40 +0000 (00:42 +0300)
committerMatthew Smith <mgsmith@netgate.com>
Fri, 12 Mar 2021 13:47:40 +0000 (13:47 +0000)
commit4e3f7b2869925b0812a58d04c4bf6371e6773630
tree381bbb25035d8217c6ea9ce81724b49305cebbee
parent0ac8d857a553eb3fadcc2611004ed8492b3bcfa5
interface: fix extra locking on fib/mfib table

Unlocking previeous fib/mfib table before bind it to a new.

Currently if rebind interface table from one to another,
previous table's lock wouldn't decrease the locks count.

Type: fix

Change-Id: I09340baf1c7039aed3be15ee231eded7364b213e
Signed-off-by: Dmitry Vakrhushev <dmitry@netgate.com>
src/vnet/interface_api.c