From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 6CCE4A054A; Fri, 19 Feb 2021 09:20:16 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 5904540395; Fri, 19 Feb 2021 09:20:16 +0100 (CET) Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by mails.dpdk.org (Postfix) with ESMTP id 8D42840042 for ; Fri, 19 Feb 2021 09:20:14 +0100 (CET) IronPort-SDR: Phg4b7pTBvyRhlgQgtRaY8g4VF8LqSWSnLjzwMn2pcz92gRbbWPtF+9IYdU3vUMWjtGx+8pmL4 Dk4F9B4y6o9Q== X-IronPort-AV: E=McAfee;i="6000,8403,9899"; a="182985588" X-IronPort-AV: E=Sophos;i="5.81,189,1610438400"; d="scan'208";a="182985588" Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 Feb 2021 00:20:13 -0800 IronPort-SDR: De98m1GUzmMWDqT/BIVWuzahVMB2L/xatVh+PnC0WV6+Qplo49kLC+kuEK30RnUCKpeLnb/XB1 kCDlJywhmzdg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.81,189,1610438400"; d="scan'208";a="440174926" Received: from fmsmsx603.amr.corp.intel.com ([10.18.126.83]) by orsmga001.jf.intel.com with ESMTP; 19 Feb 2021 00:20:13 -0800 Received: from shsmsx603.ccr.corp.intel.com (10.109.6.143) by fmsmsx603.amr.corp.intel.com (10.18.126.83) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2106.2; Fri, 19 Feb 2021 00:20:12 -0800 Received: from shsmsx601.ccr.corp.intel.com (10.109.6.141) by SHSMSX603.ccr.corp.intel.com (10.109.6.143) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2106.2; Fri, 19 Feb 2021 16:20:10 +0800 Received: from shsmsx601.ccr.corp.intel.com ([10.109.6.141]) by SHSMSX601.ccr.corp.intel.com ([10.109.6.141]) with mapi id 15.01.2106.002; Fri, 19 Feb 2021 16:20:10 +0800 From: "Tu, Lijuan" To: "Xia, YanX" , "dts@dpdk.org" CC: "Xia, YanX" Thread-Topic: [dts] [PATCH V1] tests/TestSuite_mtu_update.py: modify dts to adapt ixgbe Thread-Index: AQHW/gL4O8cHQ8TjXUWUkERKgmx3AKpfMgPg Date: Fri, 19 Feb 2021 08:20:10 +0000 Message-ID: References: <20210208101532.8424-1-yanx.xia@intel.com> In-Reply-To: <20210208101532.8424-1-yanx.xia@intel.com> Accept-Language: zh-CN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-reaction: no-action dlp-version: 11.5.1.3 dlp-product: dlpe-windows x-originating-ip: [10.239.127.36] Content-Type: text/plain; charset="iso-2022-jp" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dts] [PATCH V1] tests/TestSuite_mtu_update.py: modify dts to adapt ixgbe 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 Sender: "dts" > -----Original Message----- > From: dts On Behalf Of Xia Yan > Sent: 2021=1B$BG/=1B(B2=1B$B7n=1B(B8=1B$BF|=1B(B 18:16 > To: dts@dpdk.org > Cc: Xia, YanX > Subject: [dts] [PATCH V1] tests/TestSuite_mtu_update.py: modify dts to ad= apt > ixgbe >=20 > modify jumbo frames and add command to adapt ixgbe >=20 > Signed-off-by: Xia Yan > --- > tests/TestSuite_mtu_update.py | 14 +++++++++----- > 1 file changed, 9 insertions(+), 5 deletions(-) >=20 > diff --git a/tests/TestSuite_mtu_update.py b/tests/TestSuite_mtu_update.p= y > index 239272f2..5282754e 100644 > --- a/tests/TestSuite_mtu_update.py > +++ b/tests/TestSuite_mtu_update.py > @@ -108,8 +108,12 @@ class TestMtuUpdate(TestCase): > # The packet total size include ethernet header, ip header, and = payload. > # ethernet header length is 18 bytes, ip standard header length = is 20 bytes. > # pktlen =3D pktsize - ETHER_HEADER_LEN > - max_pktlen =3D pktsize + ETHER_HEADER_LEN + VLAN * 2 > - padding =3D max_pktlen - IP_HEADER_LEN - ETHER_HEADER_LEN > + if self.kdriver =3D=3D "ixgbe": > + max_pktlen =3D pktsize + ETHER_HEADER_LEN + VLAN > + padding =3D max_pktlen - IP_HEADER_LEN - ETHER_HEADER_LEN-VL= AN > + else: > + max_pktlen =3D pktsize + ETHER_HEADER_LEN + VLAN * 2 > + padding =3D max_pktlen - IP_HEADER_LEN - ETHER_HEADER_LEN > out =3D self.send_scapy_packet(port_id, > f'Ether(dst=3Ddutmac, > src=3D"52:00:00:00:00:00")/IP()/Raw(load=3D"\x50"*{padding})') > return out > @@ -226,18 +230,18 @@ class TestMtuUpdate(TestCase): > # Mellanox will need extra options to start testpmd > self.pmdout.start_testpmd("Default", "--max-pkt-len=3D9500 -= -tx- > offloads=3D0x8000 --enable-scatter -a") > else: > - self.pmdout.start_testpmd("Default") > + self.pmdout.start_testpmd("Default", > + "--tx-offload=3D0x00008000") Why enable DEV_TX_OFFLOAD_MULTI_SEGS ? >=20 > 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}") > self.verify(int(self.pmdout.get_detail_from_port_info("MTU: ", "= \d+", 0)) > =3D=3D packet_size, "MTU did not update") > self.verify(int(self.pmdout.get_detail_from_port_info("MTU: ", "= \d+", 1)) > =3D=3D packet_size, "MTU did not update") > - > + self.exec("port config 1 tx_offload multi_segs on") > self.exec("port start all") > self.exec("set fwd mac") > self.exec("start") > - > + time.sleep(5) > self.send_packet_of_size_to_tx_port(packet_size - 1, received=3D= True) > self.send_packet_of_size_to_tx_port(packet_size, received=3DTrue= ) > self.send_packet_of_size_to_tx_port(packet_size + 1, received=3D= False) > -- > 2.17.1