bonding: add/del secondary mac address callback 36/23436/5
authorMatthew Smith <mgsmith@netgate.com>
Thu, 14 Nov 2019 16:36:02 +0000 (10:36 -0600)
committerMatthew Smith <mgsmith@netgate.com>
Mon, 2 Dec 2019 18:20:24 +0000 (18:20 +0000)
commite83aa456bdb885277ba615808b63a33cb5a8e352
tree056ccb4b3d03598e85449ef2567f899a664f5dc8
parent73aff479bd7fcf8583e5193405e43faa822194c8
bonding: add/del secondary mac address callback

Type: feature

Add a callback to the bond device class which allows a secondary
mac address to be added/deleted.

The desired operation is performed on all the hardware interfaces
which belong to the bond interface. This allows virtual MAC
addresses to be used on bond interfaces without requiring the
hardware interfaces to have promiscuous mode enabled.

When a hardware interface is added or removed from a bond, if there
are any secondary MAC addresses configured on the bond, they are
added or removed from the hardware interface.

Change-Id: If9488078b4d7869ecc56ef6853f3cc9891211860
Signed-off-by: Matthew Smith <mgsmith@netgate.com>
src/vnet/bonding/cli.c
src/vnet/bonding/device.c