From patchwork Tue Dec 22 20:05:37 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: dliu X-Patchwork-Id: 85660 Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 6D149A052A; Tue, 22 Dec 2020 21:05:51 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 22788CA34; Tue, 22 Dec 2020 21:05:50 +0100 (CET) Received: from mail-qv1-f46.google.com (mail-qv1-f46.google.com [209.85.219.46]) by dpdk.org (Postfix) with ESMTP id 4328FCA30 for ; Tue, 22 Dec 2020 21:05:48 +0100 (CET) Received: by mail-qv1-f46.google.com with SMTP id az16so6555592qvb.5 for ; Tue, 22 Dec 2020 12:05:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=iol.unh.edu; s=unh-iol; h=from:to:cc:subject:date:message-id; bh=IvWDsdV8jBCEcbU5Ippmh0wRri0LFoSm19E3SI/nEJc=; b=E3gSmgYiqXdZW/J1D2lS2ShnqRNMsVu3t19fctshNBz3XCYKLjfy7mZPNGyNEksD0X 5XWFmJRfUSbecHMqQkVPqRzS2USvenQGPNg7YwdAcOfoht5AUAWLyYZrpmJO20JEQCtd NHxoAh3XaGfn2JADx3/0jYzcOV22An+AzbWPo= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=IvWDsdV8jBCEcbU5Ippmh0wRri0LFoSm19E3SI/nEJc=; b=N52ZQdtDiTvM3TiMFSVzZpBlA+4CCGkmTSc0S4yTHVvJ6Zdj2i2CxzuDPYKjjT0vvX 0wFXXQShYG5jzpEmCynhyA0zaVfQQ2Lp/KFCaA/ch4LWz9VhGwaleKHfrvhoRo+XNt8i CE1/c2w1CflF+MDNv2HfwxvFi6DUPVAU7KVEE3HvhrEz8OEhaXfZSEn1ZG1MCoJOd8UX /ec5XRg37CRTP45AnD/RedvMjMmEv1p5ovYixpdQxloGogqatXYOdSgppQ/23pssTB3h XGJgmUqyoO+zQCRhAxWf8fZ0nEX3I+C7AAVa5hMinpFJKJLKPH1BQhP8+NVJKLI8Zfb8 K9NQ== X-Gm-Message-State: AOAM533bNMalC58kWQiFoZYEmoicFbOCN/PQ/bVb1684RpXp2H3Ikgag JJkEVfHSBYfRu2oinpXsp7VfKCpH7usJ2SWUJXzpSeBjQxxZ4xrXJyS7KYGefxxiyJQQkoCALOw sTCHABkQYoUn2oR3y/V6ZVxYi8HkzvfyaLunkIAXziFx8QXZXElwX X-Google-Smtp-Source: ABdhPJxQSFuf7wFXX+nVrCegk+JA0ekR2NmmTW0txoVEsTb18xUTLVqXt1M55thxinPPdUbbTloypA== X-Received: by 2002:a05:6214:15c1:: with SMTP id p1mr24036016qvz.8.1608667546158; Tue, 22 Dec 2020 12:05:46 -0800 (PST) Received: from traffictester.opnfv.iol.unh.edu (opnfv-vpn.iol.unh.edu. [132.177.125.250]) by smtp.gmail.com with ESMTPSA id x185sm13749579qkb.87.2020.12.22.12.05.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 22 Dec 2020 12:05:45 -0800 (PST) From: David Liu To: dts@dpdk.org Cc: lijuan.tu@intel.com, lylavoie@iol.unh.edu, dliu@iol.unh.edu Date: Tue, 22 Dec 2020 15:05:37 -0500 Message-Id: <20201222200537.63824-1-dliu@iol.unh.edu> X-Mailer: git-send-email 2.17.1 Subject: [dts] [PATCH] tests/Test_mtu_update:fix only config ports in one side of the machine. Start testpmd with different parameter in mlx4/mlx5 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: , Errors-To: dts-bounces@dpdk.org Sender: "dts" --- tests/TestSuite_mtu_update.py | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/tests/TestSuite_mtu_update.py b/tests/TestSuite_mtu_update.py index 6e425dcb..4fe697b4 100644 --- a/tests/TestSuite_mtu_update.py +++ b/tests/TestSuite_mtu_update.py @@ -51,8 +51,8 @@ import time from test_case import TestCase from pktgen import TRANSMIT_CONT -from framework.packet import Packet -from framework.settings import HEADER_SIZE +from packet import Packet +from settings import HEADER_SIZE ETHER_HEADER_LEN = 18 IP_HEADER_LEN = 20 @@ -208,6 +208,7 @@ class TestMtuUpdate(TestCase): @return: None """ self.admin_tester_port(self.tester.get_local_port(self.tx_port), f"mtu {mtu:d}") + self.admin_tester_port(self.tester.get_local_port(self.rx_port), f"mtu {mtu:d}") # # # @@ -220,7 +221,12 @@ class TestMtuUpdate(TestCase): """ self.set_mtu(packet_size + 1) - self.pmdout.start_testpmd("Default") + if self.kdriver == "mlx5_core" or self.kdriver == "mlx4_core": + # Mellanox will need extra options to start testpmd + self.pmdout.start_testpmd("Default", "--max-pkt-len=9500 --tx-offloads=0x8000 --enable-scatter -a") + else: + self.pmdout.start_testpmd("Default") + self.exec("port stop all") self.exec(f"port config mtu 0 {packet_size:d}") self.exec(f"port config mtu 1 {packet_size:d}")