mirror_iproute2/bridge
Roopa Prabhu a1987cd17f bridge: support for static fdb entries
There is no intuitive option to add static fdb entries today.
'temp' seems to have a side effect of adding
'static' fdb entries. But the name and intent
of 'temp' does not say anything about it being static.

example:
bridge fdb add operates as follows:

$bridge fdb add 00:01:02:03:04:05 dev eth0 master
$bridge fdb add 00:01:02:03:04:06 dev eth0 master temp
$bridge fdb add 00:01:02:03:04:07 dev eth0 master local

$bridge fdb show
00:01:02:03:04:05 dev eth0 permanent
00:01:02:03:04:06 dev eth0 static
00:01:02:03:04:07 dev eth0 permanent
00:01:02:03:04:08 dev eth0 <<== dynamic, ageable learned mac

This patch adds a new bridge fdb type 'static' which
makes sure NUD_NOARP and NUD_REACHABLE is set for static
entries. This effectively is nothing but what 'temp'
does today. But the name 'temp' is misleading.

After the patch:
$bridge fdb add 00:01:02:03:04:06 dev eth0 master static

$bridge fdb show
00:01:02:03:04:06 dev eth0 static

'temp' could ideally be a dynamic mac that can age (ie just
NUD_REACHABLE). But, 'temp' sets 'NUD_NOARP' and 'NUD_REACHABLE'.
Too late to change 'temp' now. But, we are thinking of introduing a
'dynamic' keyword after this patch that only sets NUD_REACHABLE.

Signed-off-by: Wilson Kok <wkok@cumulusnetworks.com>
Signed-off-by: Roopa Prabhu <roopa@cumulusnetworks.com>
2016-02-07 11:41:09 -08:00
..
.gitignore Add bridge command 2012-08-01 15:23:49 -07:00
br_common.h iproute2: bridge vlan show new option to print ranges 2015-02-05 10:46:31 -08:00
bridge.c bridge: add batch command support 2015-10-12 09:24:15 -07:00
fdb.c bridge: support for static fdb entries 2016-02-07 11:41:09 -08:00
link.c libnetlink: add size argument to rtnl_talk 2015-05-27 13:00:21 -07:00
Makefile bridge: Allow to easy change network namespace 2014-12-27 10:22:32 -08:00
mdb.c bridge: add calls to fflush in fdb and mdb print functions 2015-10-18 21:57:06 -07:00
monitor.c libnetlink: introduce rtnl_listen_filter_t 2015-05-21 15:28:56 -07:00
vlan.c libnetlink: add size argument to rtnl_talk 2015-05-27 13:00:21 -07:00