From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-qk0-f170.google.com (mail-qk0-f170.google.com [209.85.220.170]) by dpdk.org (Postfix) with ESMTP id F40D8532C for ; Wed, 21 Jun 2017 14:09:12 +0200 (CEST) Received: by mail-qk0-f170.google.com with SMTP id p21so8213079qke.3 for ; Wed, 21 Jun 2017 05:09:12 -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=e4naIW5bO4DFG9M4REPB+Z/Deb4WWeJS4MicbHlZa6Q=; b=H78Swks/C8SSIeQMgwvd1JnKUeDL25u370rXiYqrPzvmdbNs4/WXH1uwSbAB9a/cOD zHdFHNSmy1R+hJrzksXOu3WXIU4AxFWJdpS3SkQcomZd1NLfA7+gdltmpv4IdxJkk3Sf OyOWPtKUHTMcnwMBWn/Cd25vN+vLJTiKHWH/t2rJJFaqagpvl1mgjoqpGGdZxgbrc2g3 oJmwP3I0N+of5qk9YnZGneQ9QU33Qf/spmCoErEaMfQDtf6zvDyc/ZM2vYb8iR79JU67 E2OdqEomZsVE1CmsboU3lSqaKQVspVGHb7EhZ/helMqvQ8n3weMNEd9X8fDalCJp5Rq8 sMJQ== 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=e4naIW5bO4DFG9M4REPB+Z/Deb4WWeJS4MicbHlZa6Q=; b=SNm4Pn6yWwbzPiAvsxha97azKw41hU0PbkYoRJfdX5LSVuoQAyS6ZcqFXeNajx8Ab7 TqVX+5gSFABTMLoOu3tBNLh76sXwF8f6J75irPzcWoc5vwfbk8L82VF3NICexplNQhBX nYDzj1fBepA51Ykn7urcIdWCz5lPNwwADJNUPC8UZ9TWR01fCaiQE4rYZ42Pj6qhMp4e 92r7XaiHMp+ckntuERtV6YrqNcTJ225nJNczsL06htSXZ+NMOlLWwmZEW/UsQG032tGM CUYK37j5d0H9xV7r4sTwYzsGZUuge7yoJE555HaPA6UYwIv84oiNXTCCiIyLsR2I37qC raMA== X-Gm-Message-State: AKS2vOw1ihzDljqVmNSZ92vmmtEvngtKo9Y2zi0xEQgSIqikivM1+mge HCwZ4W4OQIBh/WqRecisWTTl5Qip/Q== X-Received: by 10.55.27.136 with SMTP id m8mr37632332qkh.196.1498046950771; Wed, 21 Jun 2017 05:09:10 -0700 (PDT) MIME-Version: 1.0 Received: by 10.12.136.55 with HTTP; Wed, 21 Jun 2017 05:09:10 -0700 (PDT) In-Reply-To: References: From: Shyam Shrivastav Date: Wed, 21 Jun 2017 17:39:10 +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: Wed, 21 Jun 2017 12:09:13 -0000 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 to 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+m= ask >> 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 Emac= s >> was the lambda. >> > >