chiark / gitweb /
networkd: netdev - inform when we take over an existing netdev
authorTom Gundersen <teg@jklm.no>
Wed, 4 Mar 2015 09:33:50 +0000 (10:33 +0100)
committerTom Gundersen <teg@jklm.no>
Wed, 4 Mar 2015 10:01:39 +0000 (11:01 +0100)
The crucial point here is that we will not change the settings of a netdev created by someone else
we simply use it as is and trust it was set up as intended.

This is confusing in the case of the pre-created netdev's (bond0 etc.), the solution should probably
be to simply make the kernel stop creating these devices as they are pretty useless.

src/network/networkd-netdev.c

index 3d7cc734513bdf2dbbfaf2f07e3d7b98bdc5622a..e98040d6ec02eece858c1845de1d00c60b293e94 100644 (file)
@@ -260,7 +260,7 @@ static int netdev_create_handler(sd_rtnl *rtnl, sd_rtnl_message *m, void *userda
 
         r = sd_rtnl_message_get_errno(m);
         if (r == -EEXIST)
 
         r = sd_rtnl_message_get_errno(m);
         if (r == -EEXIST)
-                log_netdev_debug(netdev, "netdev exists, using existing");
+                log_info_netdev(netdev, "netdev exists, using existing without changing its parameters");
         else if (r < 0) {
                 log_warning_netdev(netdev, "netdev could not be created: %s", strerror(-r));
                 netdev_drop(netdev);
         else if (r < 0) {
                 log_warning_netdev(netdev, "netdev could not be created: %s", strerror(-r));
                 netdev_drop(netdev);