[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [libvirt] [PATCHv2 6/6] interface: dev type support for bond interfaces



On 02/20/2013 02:56 PM, Doug Goldstein wrote:
> Patch has been accepted into net-next's 3.9 queue to correctly expose
> bond interfaces with the 'bond' devtype.
> ---
> I'd consider this patch optional until the fix lands in Linus' tree.

Optional but innocuous. ACK.

> ---
>  src/interface/interface_backend_udev.c | 3 +++
>  1 file changed, 3 insertions(+)
>
> diff --git a/src/interface/interface_backend_udev.c b/src/interface/interface_backend_udev.c
> index 9f1570c..70c4508 100644
> --- a/src/interface/interface_backend_udev.c
> +++ b/src/interface/interface_backend_udev.c
> @@ -1016,6 +1016,9 @@ udevIfaceGetIfaceDef(struct udev *udev, const char *name)
>          ifacedef->type = VIR_INTERFACE_TYPE_VLAN;
>      } else if (STREQ_NULLABLE(devtype, "bridge")) {
>          ifacedef->type = VIR_INTERFACE_TYPE_BRIDGE;
> +    } else if (STREQ_NULLABLE(devtype, "bond")) {
> +        /* This only works on modern kernels (3.9 and newer) */
> +        ifacedef->type = VIR_INTERFACE_TYPE_BOND;
>      }
>  
>      /* Fallback checks if the devtype check didn't work. */ 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]