From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (unknown [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 2D014460A4; Thu, 16 Jan 2025 19:17:21 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id B50B640E09; Thu, 16 Jan 2025 19:17:02 +0100 (CET) Received: from mail-qk1-f169.google.com (mail-qk1-f169.google.com [209.85.222.169]) by mails.dpdk.org (Postfix) with ESMTP id 97BAB402D6 for ; Thu, 16 Jan 2025 19:17:01 +0100 (CET) Received: by mail-qk1-f169.google.com with SMTP id af79cd13be357-7b6eeff1fdfso110425085a.2 for ; Thu, 16 Jan 2025 10:17:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=iol.unh.edu; s=unh-iol; t=1737051421; x=1737656221; darn=dpdk.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=tPynYf5iTWWMrFHWpJmiXrQEe3KomX6dRTHkUmn1lqQ=; b=Oy0Rh+f/p+hIzn4nFUYAG4Ri4CBCG4KajQ1OM+UlLsOYUS1T/rB7qgqNOFYp6dVnuW xVJI5oWeh71Wv0SUQCdhCau9/0/tJ4WIrqwXN6awjldj1ZGPXdSTNJ1+GxlYdor4D3zG ut7ALjqq4fqT3UOL4ctfSyRVRLP20+NyNFwxA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1737051421; x=1737656221; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=tPynYf5iTWWMrFHWpJmiXrQEe3KomX6dRTHkUmn1lqQ=; b=YBk1BOHZJUnYibnV79bLcLFsPwftxAhxU7tzRhd5lkcw3pOLDeu81gZDWpfCffuYii hqExoUHykxvua3CDF7nhUJtEGddwD2pgLG0fkcEabPVYT/EQTIZz6/eUdYvgDhEteFBb MbMcv2WOiezGkvsS4NhLm7ir1u+/Zfq2FisX5vxXdirB9iUxR0zHCJpt0yXmP4MDXaiU mAnU8Yi2LWOkUdjOTVKKmucSBb3ZHeiLn5IPyWYyZNPfJua/m6jncwkH0llgd63/QDoN sNMFY6EVncz6RHGSsiNjl/HMIx3dFFC2q0J45Kl/USDng45U1ukWh+ZNw8QFvnQVpPdv kL5A== X-Gm-Message-State: AOJu0Yz31bBHrGxxe3Z9/9HyhNIXz1V8jkREIC/zmlxlbOPv+6mCnIAJ DFsC4GkVsp/nmE6P1x9oP/KH/XrrlSm4MaxTL0gBYVgLHA1OxWdeGMLoDkiJWSc= X-Gm-Gg: ASbGnctFNKGwYPdWq5QEbMA9az9b1s8rzIdRCMnUiqKfIoEaWYHm8LkTKrC7N4bL6l9 l4jl6kW3zmL8iRww5J+dMCKLY5qByoPYF+dUW3lY6RLi+KbMg3AqklMeYF2MY6Om0BHYsEMWuV7 tHDZckxMufrGQnbcjEC/L2nI0L0oMbbvQbrOU5Rv0DPLKaespNtPWdtkXUXQB7y87NtgddIGHZg KyMr0ujtru16/+vzLGhVXoQdbHkr0+h6mfkiIYK+xyyhXL14S1L5KjXVbquHjBKVU6Kb86bX7sc wzFnisU5PTQszir4QckK0ynsLaM= X-Google-Smtp-Source: AGHT+IGmf5a05G8VuIiUVHT2Hm+Z22AeUDlpYGbBtA3W/cuYDeEarLzEvkKDJYDbN13qoIt7QD80VQ== X-Received: by 2002:a05:620a:2408:b0:7b7:106a:1991 with SMTP id af79cd13be357-7bcd973dc76mr4820557685a.16.1737051420984; Thu, 16 Jan 2025 10:17:00 -0800 (PST) Received: from dean-laptop.iol.unh.edu ([2606:4100:3880:1271:f9bd:24da:464d:6294]) by smtp.gmail.com with ESMTPSA id af79cd13be357-7be61473cf8sm28533285a.15.2025.01.16.10.17.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 Jan 2025 10:17:00 -0800 (PST) From: Dean Marx To: probb@iol.unh.edu, npratte@iol.unh.edu, luca.vizzarro@arm.com, yoan.picchi@foss.arm.com, Honnappa.Nagarahalli@arm.com, paul.szczepanek@arm.com Cc: dev@dpdk.org, Dean Marx Subject: [PATCH v1] dts: fix attribute error in checksum offload suite Date: Thu, 16 Jan 2025 13:17:00 -0500 Message-ID: <20250116181700.25180-1-dmarx@iol.unh.edu> X-Mailer: git-send-email 2.44.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Fix a variable naming error within the verify method that was causing an attribute error during runtime. Fixes: 05d7ad873798 ("dts: resolve mypy type errors") Signed-off-by: Dean Marx --- dts/tests/TestSuite_checksum_offload.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dts/tests/TestSuite_checksum_offload.py b/dts/tests/TestSuite_checksum_offload.py index c1680bd388..14b246d16f 100644 --- a/dts/tests/TestSuite_checksum_offload.py +++ b/dts/tests/TestSuite_checksum_offload.py @@ -88,8 +88,8 @@ def send_packet_and_verify_checksum( verbose_output = testpmd.extract_verbose_output(testpmd.stop()) for testpmd_packet in verbose_output: if testpmd_packet.dst_mac == id: - isIP = PacketOffloadFlag.RTE_MBUF_F_RX_IP_CKSUM_GOOD in packet.ol_flags - isL4 = PacketOffloadFlag.RTE_MBUF_F_RX_L4_CKSUM_GOOD in packet.ol_flags + isIP = PacketOffloadFlag.RTE_MBUF_F_RX_IP_CKSUM_GOOD in testpmd_packet.ol_flags + isL4 = PacketOffloadFlag.RTE_MBUF_F_RX_L4_CKSUM_GOOD in testpmd_packet.ol_flags self.verify(isL4 == goodL4, "Layer 4 checksum flag did not match expected checksum flag.") self.verify(isIP == goodIP, "IP checksum flag did not match expected checksum flag.") -- 2.44.0