From patchwork Thu Jun 16 07:12:29 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Jiale, SongX" X-Patchwork-Id: 112847 Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 31378A0547; Thu, 16 Jun 2022 09:12:38 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 1DA8842BD4; Thu, 16 Jun 2022 09:12:38 +0200 (CEST) Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by mails.dpdk.org (Postfix) with ESMTP id 471BA4114F for ; Thu, 16 Jun 2022 09:12:36 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1655363556; x=1686899556; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=pi7SRFGDhTzAMJFbZ8NnhHsmU1zMJB/8d9/T8G/6FUM=; b=bDrrkw4jqMQFIPsuUPd1JMa0TfHawfGDRMCVtOQVV95EGW3NaYKONkxW BGxucEnDyjs6RzOJA/HaXoku669OShDrOHh0YqOMZ+Z/f72d182y8wHoL QK9Bj5Gq1mxXTvILovf7IPmniRRSp3EM8y9T/hm8NtRt+z4bEKseDtTWN +ygyAloT87vPPQh5W5FnXjlMdB8N3fO3c/Z3Azi1RuVIi0HeulshfcwSH mSIfXVIv7oqjjzF0sdseg/BzUU5kwwrunY51jhaxOKQ+tOJgUHXWELRba Lpj8/1F7ZzjMv6jU2XRqzdM0dJXv1NJgtxdFTbfyAWgdN1W3cnO8UDBAl Q==; X-IronPort-AV: E=McAfee;i="6400,9594,10379"; a="304625671" X-IronPort-AV: E=Sophos;i="5.91,304,1647327600"; d="scan'208";a="304625671" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Jun 2022 00:12:34 -0700 X-IronPort-AV: E=Sophos;i="5.91,304,1647327600"; d="scan'208";a="641407601" Received: from unknown (HELO daily-regression-131.intel.com) ([10.239.252.131]) by fmsmga008-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Jun 2022 00:12:33 -0700 From: Jiale Song To: dts@dpdk.org Cc: Jiale Song Subject: [dts] [PATCH V1] tests/vxlan: wait link status up Date: Thu, 16 Jun 2022 15:12:29 +0800 Message-Id: <20220616071229.135754-1-songx.jiale@intel.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-BeenThere: dts@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: test suite reviews and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dts-bounces@dpdk.org the port status of some NICs changes slowly, so you should confirm that the port link status is up before sending the packet. Signed-off-by: Jiale Song --- tests/TestSuite_vxlan.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/TestSuite_vxlan.py b/tests/TestSuite_vxlan.py index 159e06b2..c69d7903 100644 --- a/tests/TestSuite_vxlan.py +++ b/tests/TestSuite_vxlan.py @@ -611,6 +611,7 @@ class TestVxlan(TestCase): config.outer_mac_dst = self.dut_port_mac config.create_pcap() + self.pmdout.wait_link_status_up(self.dut_port) # save the capture packet into pcap format inst = self.tester.tcpdump_sniff_packets(self.recv_iface) config.send_pcap(self.tester_iface) @@ -869,7 +870,6 @@ class TestVxlan(TestCase): self.enable_vxlan(self.dut_port) self.enable_vxlan(self.recv_port) - self.pmdout.wait_link_status_up(self.dut_port) # check normal ipv6 packet self.send_and_check( outer_ip6_src="FE80:0:0:0:0:0:0:0", outer_ip6_dst="FE80:0:0:0:0:0:0:1"