]> git.ipfire.org Git - thirdparty/iproute2.git/commit
bridge/fdb: add flag/indication for FDB entry synced from offload device
authorScott Feldman <sfeldma@gmail.com>
Thu, 4 Dec 2014 08:57:15 +0000 (09:57 +0100)
committerStephen Hemminger <shemming@brocade.com>
Wed, 10 Dec 2014 00:34:44 +0000 (16:34 -0800)
commit28467b7f3facd6114b2fbe0c9fecf57adbd52e12
tree2d5f4cea3e634c55ec659e2e1586fa3cda115e84
parentc9b8aef6ae3845dfa12d3f7ec6afb29ce3bea89b
bridge/fdb: add flag/indication for FDB entry synced from offload device

Add NTF_EXT_LEARNED flag to neigh flags to indicate FDB entry learned by
device has been learned externally to bridge FDB.  For these entries,
add "external" annotation in bridge fdb show output:

  00:02:00:00:03:00 dev swp2 used 2/2 master br0 external
  00:02:00:00:03:00 dev swp2 self permanent

In the example above, 00:02:00:00:03:00 is shown twice on dev swp2.  The
first entry if from the bridge (master) and is marked as "external" by
the offload device.  The second entry is from the brport offload device (self),
and was learned by the device.

Signed-off-by: Scott Feldman <sfeldma@gmail.com>
Signed-off-by: Jiri Pirko <jiri@resnulli.us>
Acked-by: Jamal Hadi Salim <jhs@mojatatu.com>
bridge/fdb.c