From nobody Sat Nov 23 17:12:57 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of lists.libvirt.org designates 8.43.85.245 as permitted sender) client-ip=8.43.85.245; envelope-from=devel-bounces@lists.libvirt.org; helo=lists.libvirt.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of lists.libvirt.org designates 8.43.85.245 as permitted sender) smtp.mailfrom=devel-bounces@lists.libvirt.org; dmarc=fail(p=none dis=none) header.from=gmail.com Return-Path: Received: from lists.libvirt.org (lists.libvirt.org [8.43.85.245]) by mx.zohomail.com with SMTPS id 1724700683349810.9484889438817; Mon, 26 Aug 2024 12:31:23 -0700 (PDT) Received: by lists.libvirt.org (Postfix, from userid 996) id 575F2D83; Mon, 26 Aug 2024 15:31:22 -0400 (EDT) Received: from lists.libvirt.org (localhost [IPv6:::1]) by lists.libvirt.org (Postfix) with ESMTP id 1CA86110D; Mon, 26 Aug 2024 15:30:48 -0400 (EDT) Received: by lists.libvirt.org (Postfix, from userid 996) id 1CDAFC7E; Mon, 26 Aug 2024 15:30:44 -0400 (EDT) Received: from mail-ot1-f49.google.com (mail-ot1-f49.google.com [209.85.210.49]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by lists.libvirt.org (Postfix) with ESMTPS id 94CB7B3A for ; Mon, 26 Aug 2024 15:30:43 -0400 (EDT) Received: by mail-ot1-f49.google.com with SMTP id 46e09a7af769-70df4b5cdd8so3792704a34.1 for ; Mon, 26 Aug 2024 12:30:43 -0700 (PDT) Received: from home.. ([2603:8081:c640:1::1002]) by smtp.gmail.com with ESMTPSA id 46e09a7af769-70e03b6024esm2045174a34.63.2024.08.26.12.30.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 Aug 2024 12:30:42 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on lists.libvirt.org X-Spam-Level: X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.4 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1724700643; x=1725305443; darn=lists.libvirt.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=M5PuOavmXvxToqu1KllpJU6Z3xM+G+yKZLYerFKnk/I=; b=eTOQlXU7ANvQZzlVO4MCTBAszyyzlEL2O4PjGVWUNBl9H3cPFJCzQKtpEnD+lRIxNq Tb1jNWqhW13Xx0hiDbxusEvf8fJhRz76InI4z/jVc+4d87nRCgn0wXPob4CkT8lrWxBT 5JiFxTc76odz80MAl5pGyyPTh+BORfIdqYfo62SRXFqegE8uGP7myVN70zXDKuwfIc7o dd0qEsvmGupPS993MRLS4zNj63Ma99G+8glY/C7wjZKxdUbzzRgwkln2myeMjDXcSN/U FNCuB6I4jDgtJOFnihU43wgPuHQVL5enx1xUZXLHu9qOkG1oPVRwyguYI+BFtqBEYhk/ lkQQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1724700643; x=1725305443; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=M5PuOavmXvxToqu1KllpJU6Z3xM+G+yKZLYerFKnk/I=; b=v7yc1hBWgADwe9HoP8mf2J6g63FgJ2Q+oyomtGDca/1UsQlwlpEB2HJz/x3qzYk849 kBzDnBAatqNMd8k6mejdVnCa2NylBFss2xF/hO+QiyjuvTtb8H01EhXbqIa3oJGoJCir UxzL0+P2169tFU7zAw1DwwPjlTy10gsddqs3dOZe+yKWUhilRzkgRZR3FCxF9t8z+zNX jwa+NhhbpjUUs7UmjNs5l6BttyPKiUW3drCBJFDrVO9bbYVwe7IMqMQN55l0mHZChmtD saRZjsViiRdw17xliYbwwa1I4+v0u51E2Xc4u41oBZIkHzBeY/nL8pEdTivhPjdgeLuh 48Pw== X-Gm-Message-State: AOJu0YzetiJcKCAWYz8r9m/BOuqgNgNFNkqMrS3eviuFNBs9Rl3dGN29 MO+o2BVmUee+Y4XnnNkkb6dJSFkfzX3JhqUxdKYj872lUpb+scYk/EVFCs7O X-Google-Smtp-Source: AGHT+IGEoaA5fb7BvnVdh+jRnqUpR+9fW6Eiq7VDSBTBryDf/pZcGrVDOhJQUL8ugEovQQNcO2dPng== X-Received: by 2002:a05:6830:698d:b0:703:6d5a:84a9 with SMTP id 46e09a7af769-70f48458fc9mr430900a34.26.1724700642668; Mon, 26 Aug 2024 12:30:42 -0700 (PDT) From: Praveen K Paladugu To: devel@lists.libvirt.org Subject: [PATCH 1/2] ch: Enable bridge network mode Date: Mon, 26 Aug 2024 14:30:39 -0500 Message-ID: <20240826193040.10373-2-praveenkpaladugu@gmail.com> X-Mailer: git-send-email 2.44.0 In-Reply-To: <20240826193040.10373-1-praveenkpaladugu@gmail.com> References: <20240826193040.10373-1-praveenkpaladugu@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Message-ID-Hash: Q3HXIWWTNKKVG7LLMIISFJL32A643USP X-Message-ID-Hash: Q3HXIWWTNKKVG7LLMIISFJL32A643USP X-MailFrom: praveenkpaladugu@gmail.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-config-1; header-match-config-2; header-match-config-3; header-match-devel.lists.libvirt.org-0; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; suspicious-header CC: liuwe@microsoft.com X-Mailman-Version: 3.2.2 Precedence: list List-Id: Development discussions about the libvirt library & tools Archived-At: List-Archive: List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZM-MESSAGEID: 1724700685382116600 Content-Type: text/plain; charset="utf-8" Tested with following interface config: Signed-off-by: Praveen K Paladugu Signed-off-by: Praveen K Paladugu --- src/ch/ch_interface.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ch/ch_interface.c b/src/ch/ch_interface.c index 47b02bc322..6f6724f960 100644 --- a/src/ch/ch_interface.c +++ b/src/ch/ch_interface.c @@ -79,6 +79,7 @@ virCHConnetNetworkInterfaces(virCHDriver *driver, return -1; =20 break; + case VIR_DOMAIN_NET_TYPE_BRIDGE: case VIR_DOMAIN_NET_TYPE_NETWORK: if (virDomainInterfaceBridgeConnect(vm, net, tapfds, @@ -89,7 +90,6 @@ virCHConnetNetworkInterfaces(virCHDriver *driver, NULL) < 0) return -1; break; - case VIR_DOMAIN_NET_TYPE_BRIDGE: case VIR_DOMAIN_NET_TYPE_DIRECT: case VIR_DOMAIN_NET_TYPE_USER: case VIR_DOMAIN_NET_TYPE_SERVER: --=20 2.44.0