bridge: netlink: add fdb flush
Simple attribute that flushes the bridge's fdb. Signed-off-by: Nikolay Aleksandrov <nikolay@cumulusnetworks.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
Родитель
111189abc5
Коммит
150217c688
|
@ -244,6 +244,7 @@ enum {
|
|||
IFLA_BR_TOPOLOGY_CHANGE_TIMER,
|
||||
IFLA_BR_GC_TIMER,
|
||||
IFLA_BR_GROUP_ADDR,
|
||||
IFLA_BR_FDB_FLUSH,
|
||||
__IFLA_BR_MAX,
|
||||
};
|
||||
|
||||
|
|
|
@ -859,6 +859,9 @@ static int br_changelink(struct net_device *brdev, struct nlattr *tb[],
|
|||
br_recalculate_fwd_mask(br);
|
||||
}
|
||||
|
||||
if (data[IFLA_BR_FDB_FLUSH])
|
||||
br_fdb_flush(br);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче