From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from foss.arm.com (foss.arm.com [217.140.101.70]) by dpdk.org (Postfix) with ESMTP id CFB5A2F4F for ; Tue, 4 Sep 2018 10:29:52 +0200 (CEST) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 3E05580D; Tue, 4 Sep 2018 01:29:52 -0700 (PDT) Received: from phil-VirtualBox.shanghai.arm.com (unknown [10.169.109.153]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 751103F614; Tue, 4 Sep 2018 01:29:51 -0700 (PDT) From: Phil Yang Date: Tue, 4 Sep 2018 16:26:18 +0800 Message-Id: <1536049595-22271-5-git-send-email-phil.yang@arm.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1536049595-22271-1-git-send-email-phil.yang@arm.com> References: <1523526771-7437-1-git-send-email-phil.yang@arm.com> <1536049595-22271-1-git-send-email-phil.yang@arm.com> Subject: [dts] [PATCH v5 05/22] tests/l2fwd_crypto: replaced sniff_packets to tester.tcpdump_sniff_packets X-BeenThere: dts@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: test suite reviews and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 04 Sep 2018 08:29:53 -0000 From: Phil Yang Make packet sniff run on the Tester. Signed-off-by: Phil Yang Suggested-by: Marvin Liu --- tests/TestSuite_l2fwd_crypto.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/TestSuite_l2fwd_crypto.py b/tests/TestSuite_l2fwd_crypto.py index d559909..ea35a29 100644 --- a/tests/TestSuite_l2fwd_crypto.py +++ b/tests/TestSuite_l2fwd_crypto.py @@ -38,7 +38,7 @@ import sys import utils import commands from test_case import TestCase -from packet import Packet, sniff_packets, load_sniff_packets, save_packets +from packet import Packet, save_packets from cryptography.hazmat.primitives.ciphers import Cipher, algorithms, modes from cryptography.hazmat.backends import default_backend @@ -501,7 +501,7 @@ class TestL2fwdCrypto(TestCase): payload = self.__format_hex_to_list(test_vector["input"]) - inst = sniff_packets(self.rx_interface, timeout=5) + inst = self.tester.tcpdump_sniff_packets(self.rx_interface, timeout=5) PACKET_COUNT = 65 pkt = Packet() @@ -512,7 +512,7 @@ class TestL2fwdCrypto(TestCase): pkt.send_pkt(tx_port=self.tx_interface, count=PACKET_COUNT) pkt.pktgen.pkt.show() - pkt_rec = load_sniff_packets(inst) + pkt_rec = self.tester.load_tcpdump_sniff_packets(inst) for pkt_r in pkt_rec: packet_hex = pkt_r.strip_element_layer4("load") -- 2.7.4