History

bridge: add API to notify bridge driver of learned FBD on offloaded device

When the swdev device learns a new mac/vlan on a port, it sends some async notification to the driver and the driver installs an FDB in the device. To give a holistic system view, the learned mac/vlan should be reflected in the bridge's FBD table, so the user, using normal iproute2 cmds, can view what is currently learned by the device. This API on the bridge driver gives a way for the swdev driver to install an FBD entry in the bridge FBD table. (And remove one). This is equivalent to the device running these cmds: bridge fdb [add|del] <mac> dev <dev> vid <vlan id> master This patch needs some extra eyeballs for review, in paricular around the locking and contexts.

Scott Feldman committed 11 years ago

Commit cf6b8e11 parent 38dcf354 files · +111 −2Browse files

Showing the changes to include/uapi/linux (1 of 4 files). Show all

Unified · Split

include/uapi/linux/neighbour.h+1−0
@@ -38,6 +38,7 @@ enum { · 37 unmodified lines
38#define NTF_SELF 0x0238#define NTF_SELF 0x02
39#define NTF_MASTER 0x0439#define NTF_MASTER 0x04
40#define NTF_PROXY 0x08 /* == ATF_PUBL */40#define NTF_PROXY 0x08 /* == ATF_PUBL */
41#define NTF_EXT_LEARNED 0x10
41#define NTF_ROUTER 0x8042#define NTF_ROUTER 0x80
42 43
43/*44/*