History

net: bridge: Receive notification about successful FDB offload

When a new static FDB is added to the bridge a notification is sent to the driver for offload. In case of successful offload the driver should notify the bridge back, which in turn should mark the FDB as offloaded. Currently, externally learned is equivalent for being offloaded which is not correct due to the fact that FDBs which are added from user-space are also marked as externally learned. In order to specify if an FDB was successfully offloaded a new flag is introduced.

Arkadi Sharshevsky committed 9 years ago

Commit 9fe8bce1 parent 6b26b515 files · +37 −3Browse files

Showing the changes to include/net/switchdev.h (1 of 5 files). Show all

Unified · Split

include/net/switchdev.h+1−0
@@ -159,6 +159,7 @@ enum switchdev_notifier_type { · 158 unmodified lines
159159 SWITCHDEV_FDB_DEL_TO_BRIDGE,
160160 SWITCHDEV_FDB_ADD_TO_DEVICE,
161161 SWITCHDEV_FDB_DEL_TO_DEVICE,
162+ SWITCHDEV_FDB_OFFLOADED,
162163 };
163164
164165 struct switchdev_notifier_info {