From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-yb0-x236.google.com (mail-yb0-x236.google.com [IPv6:2607:f8b0:4002:c09::236]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 858BE1A1DEF for ; Fri, 30 Sep 2016 04:38:26 -0700 (PDT) Received: by mail-yb0-x236.google.com with SMTP id e2so27224541ybi.1 for ; Fri, 30 Sep 2016 04:38:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to; bh=hbRYj215YjujZ4xrUF2b1DziETWqOAFpqmMiXC2nOQ8=; b=d5u0YBDSR+8O1jBu73guu+KgD2wIP4YuUNI0S8ofsD1sG0SOt/wwqWRUdyjMYvxAsr SaeikcGq7xascvZESGDp/ONVFOXUdqBGF8QivZ6XZH0TdePPAsUSCXxjmHVbGc4Zv1Oq wHU9DZ1riOZIkovnydZxOnSXZVZjSCjJBsYfNKAT0K3Uf4093qw/BITT6jOPHppbsGc9 T/kJQS3pEbqqexVbGcYEsNSCB8lhJ0JrYiwburKFszCN0y0/qE0oPLUwKxq5yZKFExha WpDXttLs191YpMC63MWlIIWbUWNRkLIiCjgcuJGJtm/v+n2SRZ2JkWBSi7DaTqq0T3nA 5HRg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=hbRYj215YjujZ4xrUF2b1DziETWqOAFpqmMiXC2nOQ8=; b=NhdnxuKndOAus9a36GnIF9qrhZ9cZBTB1OntC76tFpQyi9gNqVj1yjrkkPH0jS0SmD JkoxXhAXQkolVHV7WK+a7itNJuabVUlmWlueCYp6Mp5ugDn1HEyCpMpmDw27Gr41Z3P9 CjEju8Xs7IPmFUq78slOWqlzXOrWDeoxtGgJO72jTCjo+MsM89+p9avt4wNx2r4WQ4V7 nxLpUC8k6poU6Zz4mesI4r8+jokENE8yXylRHpIj6bT7286CjXiuGB2mvB/c+rJOdigu qRQJ89H3isGKbo1lNDWIZ+GybBnnTZa4bgbWTII94uZmSb4DMafInnqNg5hM8Dkk5vvZ t/EA== X-Gm-Message-State: AA6/9RkwroRYP0CO8CERJBwIGPLARcD6LtF14qkUFAciv8vW4P8adKOemEJHhxYWzVRELoh2zJu7L006ESqHtA== X-Received: by 10.37.219.131 with SMTP id g125mr3826999ybf.42.1475235504835; Fri, 30 Sep 2016 04:38:24 -0700 (PDT) MIME-Version: 1.0 Received: by 10.13.232.20 with HTTP; Fri, 30 Sep 2016 04:38:24 -0700 (PDT) From: Sudarsanan kalaivanan Date: Fri, 30 Sep 2016 17:08:24 +0530 Message-ID: To: edk2-devel@lists.01.org X-Content-Filtered-By: Mailman/MimeDel 2.1.21 Subject: Confirmation Regarding setting the Ip4config2 variable as Non volatile X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 30 Sep 2016 11:38:26 -0000 Content-Type: text/plain; charset=UTF-8 Hi, I have been using EFI_IP4_CONFIG2_PROTOCOL, setdata function for setting the policy as* Ip4Config2PolicyDhcp*, to start the Auto configuration. Now by default the instance Policy is set as *Ip4Config2PolicyStatic, * during Initialization of the instance( in Ip4Config2Impl.c). Now when I am trying to set the instance policy as *Ip4Config2PolicyDhcp *from my driver , the policy is setting successfully and the auto configuration is also done . But when the system is resetted using a cold or warm reboot, the policy which was set by my driver as *Ip4Config2PolicyDhcp *remains the same. So when I was trying to configure the policy again , the configuration get Aborted, since the Instance policy and the data policy are same. I found that during the system reboot, all the data which was configured gets erased, but the configuration policy Set by me remains same( *Ip4Config2PolicyDhcp*), since *IP4_CONFIG2_VARIABLE_ATTRIBUTE variable (*in Ip4Config2Impl.h) is set as *EFI_VARIABLE_NON_VOLATILE**. *I Just removed the *EFI_VARIABLE_NON_VOLATILE*, and my configuration was succeeding and I was getting proper data. Can anyone please let me know whether is this an expected implementation to save the policy as same throughout the entire flash? Kindly help me on this query. Regards, Sudarsan