Message ID | 20200826155329.281082-1-ohilyard@iol.unh.edu (mailing list archive) |
---|---|
State | Superseded |
Headers |
Return-Path: <dts-bounces@dpdk.org> 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 9B770A04B1; Wed, 26 Aug 2020 17:53:37 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 669101C0AE; Wed, 26 Aug 2020 17:53:37 +0200 (CEST) Received: from mail-qk1-f195.google.com (mail-qk1-f195.google.com [209.85.222.195]) by dpdk.org (Postfix) with ESMTP id 7D59C1BECF for <dts@dpdk.org>; Wed, 26 Aug 2020 17:53:35 +0200 (CEST) Received: by mail-qk1-f195.google.com with SMTP id p4so2348513qkf.0 for <dts@dpdk.org>; Wed, 26 Aug 2020 08:53:35 -0700 (PDT) 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:mime-version :content-transfer-encoding; bh=FVLHYhds704ojWSS76AxlWPn7/+v8VUWzYh8SZ8bgF8=; b=RBjLsB/8tWu0sTZrEfO63mHAm1ZrJ7xoyy+kDxhEmhrTBkdTvdWGSiHpWwX21k92pd z1Br5yU1qGhithXmknuyd1eGIz8v6ip6f8yRwZiRdmiyCEIngGH6SKXlQFyeVEcq9bOJ HGIekQQZ0aLOCdI9bPEv3hTc1N+ttgc/A4Txc= 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:mime-version :content-transfer-encoding; bh=FVLHYhds704ojWSS76AxlWPn7/+v8VUWzYh8SZ8bgF8=; b=IZkSTxsuM++RswJuzYkitp145rxPUz1RFpjDLi7nNITcA95q2qSCXjxb+xMFagsXSf 3uypCOg5tdXiXLhPFkijGljGmWTA2raH6Tz0Gk8dl4sHzXVRcIV23n234KJsv2rTh+Ox CKf88pywZzSrKR6L3wcnxu8iUoPTn5Y6Z69HQvUjzccjUTI5pMdtuyTyrCcbGz285ojn 6lV/VCVlIKjNUAg2OacHJiD3nivYBCqvTeUY750u6v4HQFDsaNHVowtXBm9Tde0yTEj3 xtqg9sYdyqgkbVjpBpFqohMLX9aI0dYOOTOmdeeQXqtUdi9yoy66eE+W4Q1gjoYApdC1 DDOw== X-Gm-Message-State: AOAM530IIh9QhjrgBSYNIxppbxg3sa87DdyivK5RoD0/dcNzHEwJuOvh QuQce99dZ3LoJXfYU6OBKNjsniUV89XMARTpkx+9wnl2rQ7Ytb9iWXT6iG2JHatj7OVsy1taBi8 fhxlJuGF0IjwRYb59EoTJqaQhnga1zP7eTqGplhXAaskwvlarN8M8rn4bwzPx X-Google-Smtp-Source: ABdhPJwGx++FEpz3791/r/MMgdbq2M9XicVOP/Dj9JnPRcPX/v3D4j7vlR/pAIZSahxO0Qkw/kxFhA== X-Received: by 2002:a37:45d1:: with SMTP id s200mr15090089qka.146.1598457214573; Wed, 26 Aug 2020 08:53:34 -0700 (PDT) Received: from ohilyard-Alienware-m17.iol.unh.edu ([2601:187:8401:4970:f8e8:dd1e:d6df:dd32]) by smtp.gmail.com with ESMTPSA id i18sm2188616qtv.39.2020.08.26.08.53.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 26 Aug 2020 08:53:34 -0700 (PDT) From: Owen Hilyard <ohilyard@iol.unh.edu> To: dts@dpdk.org Cc: xix.zhang@intel.com, xuemingx.zhang@intel.com, lihongx.ma@intel.com, Owen Hilyard <ohilyard@iol.unh.edu> Date: Wed, 26 Aug 2020 11:53:28 -0400 Message-Id: <20200826155329.281082-1-ohilyard@iol.unh.edu> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dts] [PATCH] l4 hardware checksum: Bugfix for bug 529 X-BeenThere: dts@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: test suite reviews and discussions <dts.dpdk.org> List-Unsubscribe: <https://mails.dpdk.org/options/dts>, <mailto:dts-request@dpdk.org?subject=unsubscribe> List-Archive: <http://mails.dpdk.org/archives/dts/> List-Post: <mailto:dts@dpdk.org> List-Help: <mailto:dts-request@dpdk.org?subject=help> List-Subscribe: <https://mails.dpdk.org/listinfo/dts>, <mailto:dts-request@dpdk.org?subject=subscribe> Errors-To: dts-bounces@dpdk.org Sender: "dts" <dts-bounces@dpdk.org> |
Series |
l4 hardware checksum: Bugfix for bug 529
|
|
Commit Message
Owen Hilyard
Aug. 26, 2020, 3:53 p.m. UTC
added missing quote in template for scapy packets.
Signed-off-by: Owen Hilyard <ohilyard@iol.unh.edu>
---
tests/TestSuite_checksum_offload.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Comments
Tested Failed by: xix.zhang@intel.com There may be two more errors: 1.The Iface here is a function variable, not an Iface defined by scapy. I think you forgot to put quotation marks @@ -374,7 +374,7 @@ class TestChecksumOffload(TestCase): def replay_pcap_file_on_tester(self, iface, packet_file_path): self.tester.send_expect("scapy", ">>>") self.scapy_exec(f"packets = rdpcap('{packet_file_path}')") - self.scapy_exec(f"sendp(packets, iface={iface})") + self.scapy_exec(f"sendp(packets, iface='{iface}')") self.tester.send_expect("quit()", "# ") 2.SyntaxError: invalid syntax(This format should not appear :UDP(chksum=chksum=0xf)) File "/usr/lib/python3.6/code.py", line 64, in runsource code = self.compile(source, filename, symbol) File "/usr/lib/python3.6/codeop.py", line 168, in __call__ return _maybe_compile(self.compiler, source, filename, symbol) File "/usr/lib/python3.6/codeop.py", line 99, in _maybe_compile raise err1 File "/usr/lib/python3.6/codeop.py", line 87, in _maybe_compile code1 = compiler(source + "\n", filename, symbol) File "/usr/lib/python3.6/codeop.py", line 133, in __call__ codeob = compile(source, filename, symbol, self.flags, 1) File "<console>", line 1 sendp(eth/IP()/UDP(chksum=0xf)/VXLAN()/IP()/UDP(chksum=chksum=0xf)/('X'*50), iface=iface) > -----Original Message----- > From: dts <dts-bounces@dpdk.org> On Behalf Of Owen Hilyard > Sent: August 26, 2020 23:53 > To: dts@dpdk.org > Cc: Zhang, XiX <xix.zhang@intel.com>; Zhang, XuemingX > <xuemingx.zhang@intel.com>; Ma, LihongX <lihongx.ma@intel.com>; Owen > Hilyard <ohilyard@iol.unh.edu> > Subject: [dts] [PATCH] l4 hardware checksum: Bugfix for bug 529 > > added missing quote in template for scapy packets. > > Signed-off-by: Owen Hilyard <ohilyard@iol.unh.edu> > --- > tests/TestSuite_checksum_offload.py | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/tests/TestSuite_checksum_offload.py > b/tests/TestSuite_checksum_offload.py > index c4a877d..b07ae16 100644 > --- a/tests/TestSuite_checksum_offload.py > +++ b/tests/TestSuite_checksum_offload.py > @@ -703,7 +703,7 @@ class TestChecksumOffload(TestCase): > for l4 in l4_protos: > for chksum in "", "chksum=0xf": > vf = self.send_pkt_expect_good_bad_from_flag_catch_failure( > - f"eth/IP({chksum})/{l4}()/(X'*50)", > + f"eth/IP({chksum})/{l4}()/('X'*50)", > "PKT_RX_IP_CKSUM_", f"{l4}", > should_pass=(chksum == "")) > if vf is not None: > -- > 2.25.1
Hi, Owen Can you add the patch version of the patch, and the subject of the patch format like below: [dts][PATCH V1]tests/checksum_offload: Bugfix for bug 529 Regards, Ma,lihong > -----Original Message----- > From: Owen Hilyard <ohilyard@iol.unh.edu> > Sent: Wednesday, August 26, 2020 11:53 PM > To: dts@dpdk.org > Cc: Zhang, XiX <xix.zhang@intel.com>; Zhang, XuemingX > <xuemingx.zhang@intel.com>; Ma, LihongX <lihongx.ma@intel.com>; Owen > Hilyard <ohilyard@iol.unh.edu> > Subject: [PATCH] l4 hardware checksum: Bugfix for bug 529 > > added missing quote in template for scapy packets. > > Signed-off-by: Owen Hilyard <ohilyard@iol.unh.edu> > --- > tests/TestSuite_checksum_offload.py | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tests/TestSuite_checksum_offload.py b/tests/TestSuite_checksum_offload.py index c4a877d..b07ae16 100644 --- a/tests/TestSuite_checksum_offload.py +++ b/tests/TestSuite_checksum_offload.py @@ -703,7 +703,7 @@ class TestChecksumOffload(TestCase): for l4 in l4_protos: for chksum in "", "chksum=0xf": vf = self.send_pkt_expect_good_bad_from_flag_catch_failure( - f"eth/IP({chksum})/{l4}()/(X'*50)", + f"eth/IP({chksum})/{l4}()/('X'*50)", "PKT_RX_IP_CKSUM_", f"{l4}", should_pass=(chksum == "")) if vf is not None: