Received: by 2002:a05:7412:da14:b0:e2:908c:2ebd with SMTP id fe20csp2270131rdb; Mon, 9 Oct 2023 20:43:26 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEB7HFdwUwA7UdITlMoB1z4atlKcHQkytSTr+hDbKRFR3mpr0UNiHwxKhHGj1sgFz3lZbp2 X-Received: by 2002:a05:6a21:798a:b0:171:ccc6:7a6b with SMTP id bh10-20020a056a21798a00b00171ccc67a6bmr637166pzc.55.1696909405791; Mon, 09 Oct 2023 20:43:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696909405; cv=none; d=google.com; s=arc-20160816; b=g8+hUUPyLN2cTQZVXQ1tWgV6B7d6V/G1ATdAQONw+g/dWoWFxSUPzA65Ky8m8Qepj1 NE/I6tMAkdAHbnEbjSrB5Fjy0H+XQnCdgb0KHRFwuGMRv7XorCcwmNfo92tMDoNxOJ2T BGoqOhFQN6RcazN1vGDxT5fVdM6vOUCFWp4lQNbkekC6UWGOw1bs8owHv/Sr4CCxQDi/ 1plZ+z3GZzpOTcJ+bTT9B1s1+NfNbn42kjlDEhDtFBsWwQozxAvF7hAKvnUL0fndttNj hzDsDVCZ0z9nbKpb/S9N5Ru3lClem9ZxEPK9Jo4Gl+cJjn8PbfoG7s+5aFfDL6T/1EjJ 8buQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=jaC1CNi7JQmmxrWwxbdaMek4eXwXT8OMu+wQdUBVHH8=; fh=+W5JjCrxRxLMIOEdKUxQ2rBUnjEhAumrSNVW7Iv5zpA=; b=ND2zsfNabA30lOIsrdRoUQpKk3eh67CQyjhv9Lf2zkHGmqXqMSF+0RL6KoyBxX4+8b deU8wpxFF6X622uXs5SjGtKMlbbz3TruFvViOYWyduJ26shVSXw8xTinBQQQG0W6X7Y5 Utkf4ANncbLdIiCnRRHnXn15RFP0c2lT5G7F/GX/EaA4IQ+ZBgUcCnkimlyKMB1XYGn0 jGzmMCBxf2llLDYMyx7HhGOP1Um2W5PbV8ziU4+zFwkPRFMlf12oVCrZwpgWwD0eGgWD EQ0LnrCyOmqMcazyNTHmSijuSYdkwXT7qClXPyuLJmpX4/04zM3PLqgSXB17GBDtwv0S f2pg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from morse.vger.email (morse.vger.email. [23.128.96.31]) by mx.google.com with ESMTPS id iw19-20020a170903045300b001c0cb378f04si1164805plb.335.2023.10.09.20.43.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Oct 2023 20:43:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) client-ip=23.128.96.31; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id ADBF68201B3B; Mon, 9 Oct 2023 20:43:23 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1441993AbjJJDnO (ORCPT + 99 others); Mon, 9 Oct 2023 23:43:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51110 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1378482AbjJJDnM (ORCPT ); Mon, 9 Oct 2023 23:43:12 -0400 Received: from mail-yw1-f172.google.com (mail-yw1-f172.google.com [209.85.128.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A4C4B92; Mon, 9 Oct 2023 20:43:11 -0700 (PDT) Received: by mail-yw1-f172.google.com with SMTP id 00721157ae682-5a24b03e22eso64084637b3.0; Mon, 09 Oct 2023 20:43:11 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696909391; x=1697514191; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=jaC1CNi7JQmmxrWwxbdaMek4eXwXT8OMu+wQdUBVHH8=; b=AlCHB8RLVm/jnH2cdJHHbEWDS5uwiLYvvNGdanxdPiuMKmxQ9TaMTGOE/XBaXOBaN5 F/Dpl189PjBIoWmrVDmTTvIF155n1qm9qdAgj+tMMnKoggOzDINj4qLh26Kj3chqJSUI BmLKyYogNlS9q6VMa2jWNdWYtAoKa0UAT806xstpuIxwobxcZD4QxigAlQyOaTkx0jc6 6XpvXNpY0ahSC0RpXUxy/JIqn9WhroOWKeqdU+DgpUzMCAaDOzYZIK6BD6fDdr8CreJO jxsKcUfgigZq3h1/5pVHQpy4mZUeaHdPFqnTjoJbIX4JmBuhwvsMjUfLUM2Mv2OHWIsy Uuxg== X-Gm-Message-State: AOJu0YyEftlHUqM/nmuW9SiZ9vJiUP1+BUBFiQprFDtZJD9cnfpkjmv/ wChCeu3Y5PPTzI+FOwUwveyIpX+UoQw= X-Received: by 2002:a81:df04:0:b0:5a1:fb1d:740a with SMTP id c4-20020a81df04000000b005a1fb1d740amr17465761ywn.51.1696909390819; Mon, 09 Oct 2023 20:43:10 -0700 (PDT) Received: from liuwe-devbox-debian-v2 ([20.69.120.36]) by smtp.gmail.com with ESMTPSA id d9-20020a639909000000b0059b2316be86sm543016pge.46.2023.10.09.20.43.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Oct 2023 20:43:10 -0700 (PDT) Date: Tue, 10 Oct 2023 03:43:08 +0000 From: Wei Liu To: Ani Sinha Cc: Shradha Gupta , linux-kernel@vger.kernel.org, linux-hyperv@vger.kernel.org, "K. Y. Srinivasan" , Haiyang Zhang , Wei Liu , Dexuan Cui , Long Li , Michael Kelley , Olaf Hering , Shradha Gupta Subject: Re: [PATCH v8] hv/hv_kvp_daemon:Support for keyfile based connection profile Message-ID: References: <1696847920-31125-1-git-send-email-shradhagupta@linux.microsoft.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=2.6 required=5.0 tests=MAILING_LIST_MULTI, RCVD_IN_SBL_CSS,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (morse.vger.email [0.0.0.0]); Mon, 09 Oct 2023 20:43:23 -0700 (PDT) X-Spam-Level: ** On Mon, Oct 09, 2023 at 05:32:35PM +0530, Ani Sinha wrote: > > > > On 09-Oct-2023, at 4:08 PM, Shradha Gupta wrote: > > > > Ifcfg config file support in NetworkManger is deprecated. This patch > > provides support for the new keyfile config format for connection > > profiles in NetworkManager. The patch modifies the hv_kvp_daemon code > > to generate the new network configuration in keyfile > > format(.ini-style format) along with a ifcfg format configuration. > > The ifcfg format configuration is also retained to support easy > > backward compatibility for distro vendors. These configurations are > > stored in temp files which are further translated using the > > hv_set_ifconfig.sh script. This script is implemented by individual > > distros based on the network management commands supported. > > For example, RHEL's implementation could be found here: > > https://gitlab.com/redhat/centos-stream/src/hyperv-daemons/-/blob/c9s/hv_set_ifconfig.sh > > Debian's implementation could be found here: > > https://github.com/endlessm/linux/blob/master/debian/cloud-tools/hv_set_ifconfig > > > > The next part of this support is to let the Distro vendors consume > > these modified implementations to the new configuration format. > > > > Tested-on: Rhel9(Hyper-V, Azure)(nm and ifcfg files verified) > > Signed-off-by: Shradha Gupta > > Reviewed-by: Saurabh Sengar > > Reviewed-by: Ani Sinha Applied to hyperv-fixes. Thanks.