[ovs-dev] [PATCH v2] vswitch: Allow user to set Ethernet address of any internal interface.

Ben Pfaff blp at nicira.com
Mon Oct 5 16:26:43 UTC 2009


Ian Campbell <Ian.Campbell at eu.citrix.com> writes:
> I forward-ported this and 1/2 from the previous posting (introduce
> iface_is_internal). Apart from some relatively minor context change
> issues the only thing I had to change was:
>
> diff -r 5309f8afbce9 vswitchd/bridge.c
> --- a/vswitchd/bridge.c Mon Oct 05 14:18:58 2009 +0100
> +++ b/vswitchd/bridge.c Mon Oct 05 14:47:07 2009 +0100
> @@ -3237,7 +3237,7 @@
>              VLOG_ERR("ignoring iface.%s.mac; use bridge.%s.mac instead",
>                       iface->name, iface->name);
>          } else {
> -            int error = netdev_nodev_set_etheraddr(iface->name, ea);
> +            int error = netdev_set_etheraddr(iface->netdev, ea);
>              if (error) {
>                  VLOG_ERR("interface %s: setting MAC failed (%s)",
>                           iface->name, strerror(error));

That's the correct merge.




More information about the dev mailing list