summaryrefslogtreecommitdiffhomepage
path: root/bridge.c
diff options
context:
space:
mode:
authorArne Kappen <akappen@inet.tu-berlin.de>2016-08-18 11:35:29 +0200
committerFelix Fietkau <nbd@nbd.name>2016-08-26 10:38:50 +0200
commit8bf5df1d052a853579c0474dabc87af2d113fb53 (patch)
treecece5a620676a437299aff688a2a6294deda5dd8 /bridge.c
parentf56a7fbaa6f155c654e7d01b5c4c0594f21239d6 (diff)
device: add device handler list
Device handlers now also declare if they have bridge capabilities and include a string to prefix device names for their types. Signed-off-by: Arne Kappen <akappen@inet.tu-berlin.de> Signed-off-by: Felix Fietkau <nbd@nbd.name> [cleanup/fixes]
Diffstat (limited to 'bridge.c')
-rw-r--r--bridge.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/bridge.c b/bridge.c
index 0c538ba..bcece52 100644
--- a/bridge.c
+++ b/bridge.c
@@ -84,6 +84,9 @@ struct device_type bridge_device_type = {
.name = "bridge",
.config_params = &bridge_attr_list,
+ .bridge_capability = true,
+ .name_prefix = "br",
+
.create = bridge_create,
.config_init = bridge_config_init,
.reload = bridge_reload,