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 251FEA04FD; Sun, 17 Apr 2022 19:56:10 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id C3A88406A2; Sun, 17 Apr 2022 19:56:09 +0200 (CEST) Received: from inbox.dpdk.org (inbox.dpdk.org [95.142.172.178]) by mails.dpdk.org (Postfix) with ESMTP id 23FCB40140 for ; Sun, 17 Apr 2022 19:56:08 +0200 (CEST) Received: by inbox.dpdk.org (Postfix, from userid 33) id F1443A04FF; Sun, 17 Apr 2022 19:56:07 +0200 (CEST) From: bugzilla@dpdk.org To: dev@dpdk.org Subject: [Bug 995] acl: field size=8 (u64) is not working Date: Sun, 17 Apr 2022 17:56:06 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: DPDK X-Bugzilla-Component: other X-Bugzilla-Version: 21.11 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: ido@cgstowernetworks.com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: Normal X-Bugzilla-Assigned-To: dev@dpdk.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter target_milestone attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://bugs.dpdk.org/ Auto-Submitted: auto-generated X-Auto-Response-Suppress: All MIME-Version: 1.0 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 https://bugs.dpdk.org/show_bug.cgi?id=3D995 Bug ID: 995 Summary: acl: field size=3D8 (u64) is not working Product: DPDK Version: 21.11 Hardware: All OS: All Status: UNCONFIRMED Severity: normal Priority: Normal Component: other Assignee: dev@dpdk.org Reporter: ido@cgstowernetworks.com Target Milestone: --- Created attachment 199 --> https://bugs.dpdk.org/attachment.cgi?id=3D199&action=3Dedit test-acl app patch that adds u64 field and input files Hi ACL with field size 8 (for u64) is not working struct rte_acl_field_def acl_fields[] =3D { ... { ... .size =3D sizeof(uint64_t), ... } ... } Attached are 2 examples: 1. test-acl-64.patch - It slightly expands the existing test-acl app with an u64 field When using a rule that the u64 field is don't care (mask is all 0) it passes bash app/test-acl/test-acl.sh build/app/dpdk-test-acl app/test-acl/input_u64_mask_0/ scalar 32 ACL: trie 0: number of rules: 1, indexes: 3 test acl1v4_1_rule OK But when using a rule with u64 value that should match it fails bash app/test-acl/test-acl.sh build/app/dpdk-test-acl app/test-acl/input_u64_mask_F/ scalar 32 ACL: trie 0: number of rules: 1, indexes: 4 --- acl1v4_1_rule_E6Gkks.chk 2022-04-17 20:39:25.803425601 +0300 +++ acl1v4_1_rule_E6Gkks.out 2022-04-17 20:39:25.803425601 +0300 @@ -1 +1 @@ -0 +4294967295 test acl1v4_1_rule FAILED 2. acl-test-64.c a small standalone app (can be compiled like any dpdk/example) with simple 2 fields ACL (the mandatory first one byte field + an u64 field) with hard-co= ded values that should match but do not.=20 it can be run w/o any params examples/acl-test-u64/build/acl-test-u64 --no-huge -c 1 NO-MATCH - test FAILED!=20 notes: 1. It doesn't work for RTE_ACL_FIELD_TYPE_RANGE/MASK too 2. Looks like if using only the 4 MSBs and masking the 4 LSBs (e.g. mask =3D 0xFFFFFFFF00000000) it does work=20 Thanx, Ido --=20 You are receiving this mail because: You are the assignee for the bug.=