[OpenWrt-Devel] [PATCH 2/2] netifd: Don't call set_state for external device in device_claim

Felix Fietkau nbd at openwrt.org
Tue Sep 1 08:49:29 EDT 2015

On 2015-09-01 14:43, Hans Dedecker wrote:
> The function set_state disable is not called for external devices in device_release
> which means for external vlan/macvlan devices they won't be deleted.
> As a result of this the set_state enable call for external devices by device_claim fails
> as vlan/macvlan devices cannot be created since the device already exists in the kernel.
> Therefore move the external device check from device_set_state to device_claim so
> external vlan/macvlan devices are not created again and can also be external.
Why/how do vlan/macvlan devices become external?

- Felix
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org

More information about the openwrt-devel mailing list