From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-qk0-f169.google.com (mail-qk0-f169.google.com [209.85.220.169]) by dpdk.org (Postfix) with ESMTP id ED0BA1DB1 for ; Thu, 22 Jun 2017 06:26:40 +0200 (CEST) Received: by mail-qk0-f169.google.com with SMTP id d14so3564351qkb.1 for ; Wed, 21 Jun 2017 21:26:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=dZQhy3p7k3ygK1fNU7H2jRq5bczfLERMd4+gfocM3yA=; b=P4ltqcozkEetjx2TqKBJPnKa1RSE1ozE2yg9nYRqMDNaV4NL/U1oztJ9SpQI4UXHka 51OTyjxb2/0xNDcoi78Tx1cPTep3p6McgZg65ELO1jmGkEcel8nuCPelDJ//eokBJD9U HLBne+35RD/QR1m9E8xwIHnmavKzc9WwFj2+UYNr83fvSoora7L2Y0/E1iAFo8wlcoC8 7wn8WpfeUsN7p6WjbVf+r3AK3bCkeELaCYX6criBqXLfUoaOvgNB7Cf7o6hkiLSk6EMZ HSMVmGqkA6YSO2xQ7zM0BtBp6W/7vaL+547yCy4JEU8bWhQ3kKnmv7in4I9Ex9r3vYm0 Nwiw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=dZQhy3p7k3ygK1fNU7H2jRq5bczfLERMd4+gfocM3yA=; b=Y20pNJdFrMIUxPRjiUp3WHKg+9VKPe+fPqeiIGhn4zKF4gKXaGKN1iMFHG0u522tgi KFFsy8q+eUUPfY7JWl2kAFDyTDK6sfzVf15yFkV2OZnU4/4c5D9NxyojdFk8BZme6efn mCzhLJ3BGnj7bbK9+w4RsHdB4TtDbUKKT0TbVlrOS5MR4KWrRR2njhRom6Fi7H2x8LzW PxhuAI9l4+r7N5m2A3tNLT78paV0fRZMFY/Ft0Bz6MNAO36fcSZSoPfPTB8sJDNiJK6l ewE9RpIJCKT8dno15DgXDQ2r7+x7r2LdSkcoOeGaAiLrX9098x4Dbj2YgdfB8ArXUptQ J+Uw== X-Gm-Message-State: AKS2vOyRPg9kxtYg65fak3PLZu3rLKYrrlNFlfxKAdoEQjvW65cGGHtc UHm8hI/K5HNeoZTJM/wQU7PngIOHrA== X-Received: by 10.55.136.1 with SMTP id k1mr679844qkd.104.1498105600325; Wed, 21 Jun 2017 21:26:40 -0700 (PDT) MIME-Version: 1.0 Received: by 10.12.136.55 with HTTP; Wed, 21 Jun 2017 21:26:39 -0700 (PDT) In-Reply-To: References: From: Shyam Shrivastav Date: Thu, 22 Jun 2017 09:56:39 +0530 Message-ID: To: Doohwan Lee Cc: Anupam Kapoor , users@dpdk.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: Re: [dpdk-users] Question about range type of DPDK ACL X-BeenThere: users@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK usage discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Jun 2017 04:26:41 -0000 Yes if these are the results then might be some issue, but can not be sure unless do this myself, have been using ACL library but not this case till now. Can you share code fragment converting dotted decimal to integer if possible .. On Thu, Jun 22, 2017 at 7:57 AM, Doohwan Lee wrote: > Thank you Shyam. > Let me explain my situation in detail. > All the cases described below use RTE_ACL_FIELD_TYPE_RANGE type. > > ----------------------------------------------- > Case 1. > rule: 1.2.3.4 ~ 1.2.3.4 > packet: 1.2.3.4 > result: match (correct) > > Case 2. > rule: 1.2.3.4 ~ 1.10.10.10 > packet: 1.2.10.5 > result: match (correct) > > Case 3 > rule: 1.2.3.4 ~ 1.10.10.10 > packet: 1.10.10.11 > result: not match (correct) > > Case 4 > rule: 1.2.3.4 ~ 1.10.10.10 > packet: 1.2.3.10 > result: match (correct) > > Case 5: > rule: 1.2.3.4~1.10.10.10 > packet: 1.2.10.11 > result: not match (incorrect) > > Case 6: > rule: 1.2.3.4~1.10.10.10 > packet: 1.2.10.3 > result: not match (incorrect) > ----------------------------------------------- > > > Considering case 1~4, It shows expected results and there is no problem > with byte ordering. > But, in case 5~6, the result should be 'match' but it was not. > This is why I doubt DPDK ACL library doesn't support 32-bit range matchin= g. > > > On Wed, Jun 21, 2017 at 9:09 PM, Shyam Shrivastav < > shrivastav.shyam@gmail.com> wrote: > >> I haven't used range type with 32 bit integers yet ... >> Just some theory in case if you haven't already taken into account, if >> little-endian host 10.10.10.30 actually means 0x1e0a0a0a for acl match, >> dotted decimal is in big endian so when in little endian host you need t= o >> add it other way round as integers for matching. This means if you add >> range 0x0a0a0a0a to 0x1e1e1e1e should match 10.10.10.30, this is my >> understanding theoretically .. >> >> On Wed, Jun 21, 2017 at 4:54 PM, Doohwan Lee wrote: >> >>> Yes. you are right. I also already knew that 32bit match with mask type >>> works well. >>> My point is 32bit match with 'range type' doesn't work in some case. >>> >>> >>> On Wed, Jun 21, 2017 at 6:46 PM, Anupam Kapoor >>> wrote: >>> >>>> >>>> On Wed, Jun 21, 2017 at 11:36 AM, Doohwan Lee wrote= : >>>> >>>>> DPDK ACL library uses multi-bit trie with 8-bit stride. >>>>> I guess that implementation of the trie doesn't support 32bit range >>>>> matching. >>>>> >>>> >>>> =E2=80=8Bwell, you _can_ have address wildcard matches e.g. an address= +mask >>>> combination of 1.2.3.0/24 would match all addresses 1.2.3.[0..255] >>>> >>>> =E2=80=8B-- >>>> kind regards >>>> anupam=E2=80=8B >>>> >>>> In the beginning was the lambda, and the lambda was with Emacs, and >>>> Emacs was the lambda. >>>> >>> >>> >> >