From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-vs1-f46.google.com (mail-vs1-f46.google.com [209.85.217.46]) by dpdk.org (Postfix) with ESMTP id 079561B4A9 for ; Thu, 11 Oct 2018 14:21:49 +0200 (CEST) Received: by mail-vs1-f46.google.com with SMTP id c205so8291464vsd.3 for ; Thu, 11 Oct 2018 05:21:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=F0cvekbtRNTQ1/AE/gwKqe8LZwR7lQClPtsNY5gIInY=; b=D/8eyGZYhNb1nWpX2EbYf+ZpquClcZBKk4oiZ3HoxJBK/+PjMAOQznEgCIa0nf/WT5 0skTQPB54qF4jh16gdBIlB4Y0TpVUA2BagSbH76M3cfHtT6InVkhAfUvWSMADoyMr9BR foEgHxljhoBM0flm59ppYJ/BhIdiCNAhQjlmo0p8V6kh6fkRka73QL9DkVBc1DycamUo FHiA585U1AKHyJ37O8AAiMJMZXtxUa6DgZEMEeQgAijFo4qPmcNnT/xCPpIdVq4pewYH +P5alV9Xrxi6iExNyzGD5CR/fg45jPnCY/AbswhG7D7lCU2tyiOt1bXu6OVt8Ftw/9T0 pkzg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=F0cvekbtRNTQ1/AE/gwKqe8LZwR7lQClPtsNY5gIInY=; b=JHZ4x2SqVh/WLMX9oHdaDI659DT7O0FAJm/d25WrRoTGTi2FeXAOQy4Iq5KOwLOdw5 G+FsjE97OnPIK9llZERQo/AmWY5zpuOuB66m6B2HbLiV2vkyn+aSzHl8uZanzL1i5vUr 3J895rO+jXgxtjYsFiBgpIcdzwPqBG2ugQvFLbecfj7iQxJ5Tc22CvCNnYvi9o9q3OiP eff4PIhXMn01xFaxF2Z2uOsxHWPzCP/A9I97EPRHp+cQ2rowBkgPA8uVIEPG1Y8uMVjJ 4lJEDJb5xwTHd18d1z2ecazYTp+ZGrpKxWLk3JcSXvQVNyoWrqx/nUb8yP9R2DDxido2 2nDQ== X-Gm-Message-State: ABuFfoi4ItaaM4rG2C1gpQlDMWkxpOgMMbAHAnWcl4cGCGTCPT+x5cd2 nI6hAYgPVvcTfTl5cZY/ceFze9K6skEWAl7QJak= X-Google-Smtp-Source: ACcGV60keWSqpfAox4ROz/E16Jj71Oa6g3eip/6YIP/l3rgKGpR8I/GI87nORe1/neMA1HC5uZ6mDOg8wXL/G09Uwgk= X-Received: by 2002:a67:370a:: with SMTP id e10mr463797vsa.135.1539260509259; Thu, 11 Oct 2018 05:21:49 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Georgios Katsikas Date: Thu, 11 Oct 2018 15:21:38 +0300 Message-ID: To: rasland@mellanox.com Cc: users@dpdk.org Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: Re: [dpdk-users] Problem installing rules with counters on MLX5 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, 11 Oct 2018 12:21:50 -0000 Hi Raslan, I thought there was no 'is' operator for proto matches, this is why I used spec. Now works fine, thanks! Best regards, Georgios On Thu, Oct 11, 2018 at 3:16 PM Raslan Darawsheh wrote: > Hi Georgios, > > You are trying to create the same rule with three different actions. > I would suggest that you change your mask to be proto is 1/6/17 > This way you'll have three different rules > > Kindest regards, > Raslan Darawsheh > > > -----Original Message----- > > From: users On Behalf Of Georgios Katsikas > > Sent: Thursday, October 11, 2018 3:01 PM > > To: users@dpdk.org > > Subject: [dpdk-users] Problem installing rules with counters on MLX5 > > > > Dear all, > > > > I am trying to install 3 simple rules (to match ICMP, TCP, and UDP > flows) on a > > Mellanox ConnectX-5 100 GbE NIC using DPDK's flow API. > > The rules are as follows: > > > > 1. flow create 0 ingress pattern eth type is 2048 / ipv4 proto spec 1 > > proto mask 0x0 / end actions queue index 0 / count / end > > 2. flow create 0 ingress pattern eth type is 2048 / ipv4 proto spec 6 > > proto mask 0x0 / end actions queue index 0 / count / end > > 3. flow create 0 ingress pattern eth type is 2048 / ipv4 proto spec 17 > > proto mask 0x0 / end actions queue index 0 / count / end > > > > Only the first rule gets properly installed. The remaining 2 rules throw > the > > following error: > > Caught error type 1 (cause unspecified): hardware refuses to create flow > > > > If I try to incorporate 'count identifier shared 0', I still get > error (with > > or without shared). > > If I try to install the same rules without action count, then everything > works > > as expected. > > Action count on rules that match src/dst IP addresses works fine. > > Could you please shed some light on this? > > > > I am using DPDK 18.08 with Mellanox OFED 4.4-2.0.7.0 (latest). > > > > Thanks, > > Georgios >