diff options
author | Arne Kappen <akappen@inet.tu-berlin.de> | 2016-08-18 11:35:29 +0200 |
---|---|---|
committer | Felix Fietkau <nbd@nbd.name> | 2016-08-26 10:38:50 +0200 |
commit | 8bf5df1d052a853579c0474dabc87af2d113fb53 (patch) | |
tree | cece5a620676a437299aff688a2a6294deda5dd8 /bridge.c | |
parent | f56a7fbaa6f155c654e7d01b5c4c0594f21239d6 (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.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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, |