network/netdev: generate persistent MAC address for batadv and bridge

This mostly reverts 489f01f806 and
deb2cfa4c6.

As now MACAddress=none is supported. So, users can still disable MAC
address assignment.
This commit is contained in:
Yu Watanabe
2021-11-28 12:04:55 +09:00
parent aaa5ca57ae
commit 5b8bdd20c6
3 changed files with 5 additions and 4 deletions
+1
View File
@@ -203,4 +203,5 @@ const NetDevVTable batadv_vtable = {
.post_create = netdev_batadv_post_create,
.create_type = NETDEV_CREATE_MASTER,
.iftype = ARPHRD_ETHER,
.generate_mac = true,
};
+1
View File
@@ -278,4 +278,5 @@ const NetDevVTable bridge_vtable = {
.post_create = netdev_bridge_post_create,
.create_type = NETDEV_CREATE_MASTER,
.iftype = ARPHRD_ETHER,
.generate_mac = true,
};