Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp37969345rwd; Wed, 12 Jul 2023 00:49:49 -0700 (PDT) X-Google-Smtp-Source: APBJJlEB2zNuyD2S5F5NG+Mt5mhRdKp1AC3FfmkcKXhpz/dJHg46bAMO5jVcsQgsrX0yNSL+DiEs X-Received: by 2002:a17:906:39da:b0:98d:ef34:c0c8 with SMTP id i26-20020a17090639da00b0098def34c0c8mr13769156eje.67.1689148189291; Wed, 12 Jul 2023 00:49:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689148189; cv=none; d=google.com; s=arc-20160816; b=bum8DoOZzjV0bKMaVPWWvAGWCVnuZgrPcAa7A4fvYmG8DNDQLeS7wM8bdzEuPOrHo8 iu79kXHfDSqwXuv1srD3O1opxnSHPG7Pmg0ENGD5FwSiGZeHXgfS5GcqbAaRQa+pp9ZO 6qs3QIu46tGoDGkD/F8HFRqNXOBYo0ItkgLL+gymLVR7A3Hgu78AoXIaylgJt6r1ZL+c 7rfcYtOiaCgINOA16S+GDOFehvsW/kaxivFTOCUcgl80wRrzDXJYyM26PfVZC+8a4UQU S4gTdNQGl24aArbu96UMLWz9YKSTYHh4i3qS2bHrac5/CDgwfohDIzcn28Su0r2MuNr2 ShIg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:references:message-id :content-transfer-encoding:cc:date:in-reply-to:from:subject :mime-version:dkim-signature; bh=Wufi9rv0SDzDYEN3qmZtEV5G7f/6JaOzjp0WTDKMnGU=; fh=0Eg6MyRoqqsk++HxKjQwziZ5dSk9wC43p1tZIw9X1ns=; b=SuWreG4oeg4RfqEAnlBwPntkoN5zzUyePU043lBxYK/fpXY+vvYc5EuptP1Vqob/Jt Nvnm8Q9dHtAgmGd1rsbVlFU2JKty5N5Of1FHw57Ue25p774RmDzpwFS3T+Y3lFN07xwf g8m1AanXS2SoPjRajxYvdHFXw4VdQEdWw7IbzLgath7h4bkL64JcJu/MTcDKrCm2eS3c BfuvhfPQU6d2dc/Fdwwa3PT2yTlc20HlnWOzNARaxCIw2/CCl8ifO2FmTMGOMwS/+RIl 4+hIvueCFeZsteTS72wem8uroH5+yDVgaEsW8GvbeIZZhdfbUpkwty4AfLrPqjkAoll3 Po5A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=Yublc4id; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i2-20020a170906850200b00992f45c9348si3938050ejx.1010.2023.07.12.00.49.25; Wed, 12 Jul 2023 00:49:49 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=Yublc4id; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231475AbjGLHDo (ORCPT + 99 others); Wed, 12 Jul 2023 03:03:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49774 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230241AbjGLHDl (ORCPT ); Wed, 12 Jul 2023 03:03:41 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2F52D136 for ; Wed, 12 Jul 2023 00:02:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1689145377; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Wufi9rv0SDzDYEN3qmZtEV5G7f/6JaOzjp0WTDKMnGU=; b=Yublc4idzwoLMyDkgd0h8L1ogC1qbkhBonSXyblU3lkUqxvS+9+GCEsj7fCXTEFOS6Cyq0 5KOM2XC/gtuFko92XpF3mE1FpwdG3miko8oX6OWHOmp5fr50RFWnBSaFPEfwEPLvYKJM7m am8hXkuL+IGNMe05pnlgmTOEYwVfvcs= Received: from mail-pl1-f200.google.com (mail-pl1-f200.google.com [209.85.214.200]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-474-Te2ezKgxPc-L6MyyrocdeA-1; Wed, 12 Jul 2023 03:02:53 -0400 X-MC-Unique: Te2ezKgxPc-L6MyyrocdeA-1 Received: by mail-pl1-f200.google.com with SMTP id d9443c01a7336-1b895fa8929so70329625ad.0 for ; Wed, 12 Jul 2023 00:02:52 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689145372; x=1691737372; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Wufi9rv0SDzDYEN3qmZtEV5G7f/6JaOzjp0WTDKMnGU=; b=byTERIDzRj8/5cdB+CUx3pLJThSB73nDVnOFDwEvMSoDs3x4cNUqMqK6cyBMhQ8r9a AgBE4WqpGuM9qK1mL/BLhssbEUJFXyoISccBaleP2GFyJTrq1vzYDo0F7oM05soP3mby mKJlwRDDQVmTC7OIMXRlYYqHjiyihoxUV+4nTt1z1QNkuAuPyNcl2jPcxwlDwn0apfw1 eP6mB47ls5TGvN8vd76C31n5GkwIkf7UqWi9JfO3Ob7BSi4PImY/2x/DAxMM9i0uSRQU HhBMg4eoEysrwSeJ0UTlCePT2BYmNZ2cfncddABauNGEAN4j6RmUiyMw3RF08h6K68rz opWA== X-Gm-Message-State: ABy/qLZXhB7JoAySs6RfV/sJxLV1ZIemXqlmmuD/zd/ZJg61HYHU6Jv/ SZifdqzd/hasSpay5aySePT2JhTWLKc9blpPxPVuThnM5iLPpXqrcXuX3S1I6idDfoF08MUgV2S FoefO4E0hZcEAx5m4DDCoU+gN X-Received: by 2002:a17:902:f68c:b0:1b8:c1f:fcfc with SMTP id l12-20020a170902f68c00b001b80c1ffcfcmr15621563plg.11.1689145371890; Wed, 12 Jul 2023 00:02:51 -0700 (PDT) X-Received: by 2002:a17:902:f68c:b0:1b8:c1f:fcfc with SMTP id l12-20020a170902f68c00b001b80c1ffcfcmr15621546plg.11.1689145371595; Wed, 12 Jul 2023 00:02:51 -0700 (PDT) Received: from smtpclient.apple ([115.96.113.77]) by smtp.gmail.com with ESMTPSA id d5-20020a170903230500b001b672af624esm3143511plh.164.2023.07.12.00.02.46 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 12 Jul 2023 00:02:50 -0700 (PDT) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3696.120.41.1.3\)) Subject: Re: [PATCH v3] hv/hv_kvp_daemon: Add support for keyfile config based connection profile in NM From: Ani Sinha In-Reply-To: <20230523053627.GA10913@linuxonhyperv3.guj3yctzbm1etfxqx2vob5hsef.xx.internal.cloudapp.net> Date: Wed, 12 Jul 2023 12:32:43 +0530 Cc: Wei Liu , Olaf Hering , linux-kernel@vger.kernel.org, linux-hyperv@vger.kernel.org, "K. Y. Srinivasan" , Haiyang Zhang , Stephen Hemminger , Dexuan Cui , Long Li , Michael Kelley Content-Transfer-Encoding: quoted-printable Message-Id: <53E9AC1D-C907-4B55-97F2-FC10DCD4D470@redhat.com> References: <1683265875-3706-1-git-send-email-shradhagupta@linux.microsoft.com> <20230508095340.2ca1630f.olaf@aepfle.de> <20230508191246.2fcd6eb5.olaf@aepfle.de> <20230523053627.GA10913@linuxonhyperv3.guj3yctzbm1etfxqx2vob5hsef.xx.internal.cloudapp.net> To: Shradha Gupta X-Mailer: Apple Mail (2.3696.120.41.1.3) X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > On 23-May-2023, at 11:06 AM, Shradha Gupta = wrote: >=20 > On Mon, May 08, 2023 at 05:16:19PM +0000, Wei Liu wrote: >> On Mon, May 08, 2023 at 07:12:46PM +0200, Olaf Hering wrote: >>> Mon, 8 May 2023 16:47:54 +0000 Wei Liu : >>>=20 >>>> Olaf, is this a reviewed-by from you? :-) >>>=20 >>> Sorry, I did not review the new functionality, just tried to make = sure there will be no regression for existing consumers. >>=20 >> Okay, this is fine, too. Thank you for looking into this. >>=20 >>=20 >>>=20 >>> Olaf >>=20 >=20 > Gentle reminder. >=20 I have a comment about the following change: + error =3D fprintf(nmfile, "\n[ipv4]\n"); + if (error < 0) + goto setval_error; + + if (new_val->dhcp_enabled) { + error =3D kvp_write_file(nmfile, "method", "", = "auto"); + if (error < 0) + goto setval_error; + } else { + error =3D kvp_write_file(nmfile, "method", "", = "manual"); + if (error < 0) + goto setval_error; + } I think the method equally would apply for ipv6 as it applies for ipv4.=20= We can use = https://www.golinuxcloud.com/nmcli-command-examples-cheatsheet-centos-rhel= /#18_Disable_IPv6_Address_for_ethernet_connection_IPV6INIT as a = reference.=20 So setting the method should be common to both ipv4 and ipv6.