From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=192.55.52.93; helo=mga11.intel.com; envelope-from=jiaxin.wu@intel.com; receiver=edk2-devel@lists.01.org Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 3C1BB21180F22 for ; Thu, 25 Oct 2018 01:56:16 -0700 (PDT) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by fmsmga102.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 25 Oct 2018 01:56:16 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.54,423,1534834800"; d="scan'208";a="274313286" Received: from jiaxinwu-mobl.ccr.corp.intel.com ([10.239.192.155]) by fmsmga005.fm.intel.com with ESMTP; 25 Oct 2018 01:56:15 -0700 From: Jiaxin Wu To: edk2-devel@lists.01.org Cc: Ye Ting , Fu Siyuan , Wu Jiaxin Date: Thu, 25 Oct 2018 16:56:11 +0800 Message-Id: <20181025085613.2828-1-Jiaxin.wu@intel.com> X-Mailer: git-send-email 2.17.1.windows.2 Subject: [Patch 0/2] Mtftp: Correct the total received and saved block number. X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 25 Oct 2018 08:56:17 -0000 The block returned from Mtftp4RemoveBlockNum is not the total received and saved block number if it works in passive (Slave) mode. The issue was exposed by the EMS test. Cc: Ye Ting Cc: Fu Siyuan Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Wu Jiaxin Jiaxin Wu (2): MdeModulePke/Mtftp4Dxe: Correct the total received and saved block number. NetworkPkg/Mtftp6Dxe: Correct the total received and saved block number. .../Universal/Network/Mtftp4Dxe/Mtftp4Impl.h | 6 +++++- .../Universal/Network/Mtftp4Dxe/Mtftp4Rrq.c | 16 +++++++++++----- .../Universal/Network/Mtftp4Dxe/Mtftp4Support.c | 10 +++++----- .../Universal/Network/Mtftp4Dxe/Mtftp4Support.h | 6 +++--- .../Universal/Network/Mtftp4Dxe/Mtftp4Wrq.c | 6 +++--- NetworkPkg/Mtftp6Dxe/Mtftp6Impl.h | 6 +++++- NetworkPkg/Mtftp6Dxe/Mtftp6Rrq.c | 16 +++++++++++----- NetworkPkg/Mtftp6Dxe/Mtftp6Support.c | 10 +++++----- NetworkPkg/Mtftp6Dxe/Mtftp6Support.h | 8 ++++---- NetworkPkg/Mtftp6Dxe/Mtftp6Wrq.c | 6 +++--- 10 files changed, 55 insertions(+), 35 deletions(-) -- 2.17.1.windows.2