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.
Showing the changes to include/net/switchdev.h (1 of 5 files). Show all
Unified · Split
| @@ -159,6 +159,7 @@ enum switchdev_notifier_type { · 158 unmodified lines | |||
| 159 | SWITCHDEV_FDB_DEL_TO_BRIDGE, | 159 | SWITCHDEV_FDB_DEL_TO_BRIDGE, |
| 160 | SWITCHDEV_FDB_ADD_TO_DEVICE, | 160 | SWITCHDEV_FDB_ADD_TO_DEVICE, |
| 161 | SWITCHDEV_FDB_DEL_TO_DEVICE, | 161 | SWITCHDEV_FDB_DEL_TO_DEVICE, |
| 162 | SWITCHDEV_FDB_OFFLOADED, | ||
| 162 | }; | 163 | }; |
| 163 | 164 | ||
| 164 | struct switchdev_notifier_info { | 165 | struct switchdev_notifier_info { |