From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by mx.groups.io with SMTP id smtpd.web12.2813.1571056650330826411 for ; Mon, 14 Oct 2019 05:37:30 -0700 Authentication-Results: mx.groups.io; dkim=missing; spf=pass (domain: intel.com, ip: 192.55.52.93, mailfrom: maciej.rabeda@intel.com) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga102.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 14 Oct 2019 05:37:29 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.67,295,1566889200"; d="scan'208";a="207959573" Received: from mrabeda-mobl.ger.corp.intel.com ([10.102.8.43]) by fmsmga001.fm.intel.com with ESMTP; 14 Oct 2019 05:37:28 -0700 From: "Rabeda, Maciej" To: devel@edk2.groups.io Cc: Siyuan Fu , Jiaxin Wu Subject: [PATCH v2 0/1] Remove UNDI calls from SNP during ExitBootServices Date: Mon, 14 Oct 2019 14:37:27 +0200 Message-Id: <20191014123728.14252-1-maciej.rabeda@intel.com> X-Mailer: git-send-email 2.17.0.windows.1 REF: https://bugzilla.tianocore.org/show_bug.cgi?id=1974 Removing calls to UNDI->Shutdown() and Stop() functions in ExitBootServices event notification function. Since SNP event reacting to ExitBootServices is only calling those two functions, there is no need to create that event at all. Adding PCD to control creation of event reacting to ExitBootServices() call so that systems with UNDIs relying on SNP to call their Shutdown() and Stop() can still work. Cc: Siyuan Fu Cc: Jiaxin Wu Maciej Rabeda (1): NetworkPkg/SnpDxe: Remove ExitBootServices event NetworkPkg/SnpDxe/Snp.c | 38 +++++++++++--------- NetworkPkg/NetworkPkg.dec | 7 ++++ NetworkPkg/SnpDxe/Snp.h | 1 + NetworkPkg/SnpDxe/SnpDxe.inf | 3 ++ 4 files changed, 32 insertions(+), 17 deletions(-) -- 2.17.0.windows.1 -------------------------------------------------------------------- Intel Technology Poland sp. z o.o. ul. Slowackiego 173 | 80-298 Gdansk | Sad Rejonowy Gdansk Polnoc | VII Wydzial Gospodarczy Krajowego Rejestru Sadowego - KRS 101882 | NIP 957-07-52-316 | Kapital zakladowy 200.000 PLN. Ta wiadomosc wraz z zalacznikami jest przeznaczona dla okreslonego adresata i moze zawierac informacje poufne. W razie przypadkowego otrzymania tej wiadomosci, prosimy o powiadomienie nadawcy oraz trwale jej usuniecie; jakiekolwiek przegladanie lub rozpowszechnianie jest zabronione. This e-mail and any attachments may contain confidential material for the sole use of the intended recipient(s). If you are not the intended recipient, please contact the sender and delete all copies; any review or distribution by others is strictly prohibited.