From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-yb1-f176.google.com (mail-yb1-f176.google.com [209.85.219.176]) by dpdk.org (Postfix) with ESMTP id 35B9D374 for ; Sun, 14 Oct 2018 15:26:24 +0200 (CEST) Received: by mail-yb1-f176.google.com with SMTP id p74-v6so6537677ybc.9 for ; Sun, 14 Oct 2018 06:26:24 -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=cJBPnuNJUL9iiZkrIbZpKsggiJIup7sVPAzeEQ70yAY=; b=JQmuS8B+H5j3J6akQeoQMTYt1B5fpB3Gy54Y8i20pD4jIHg3H7uT4kN/wf2TwA6Q1g Rz2bT2ra+2JkdkaevuuTyOa2gH9upaP6uLs0Eis6rEJunMH2hgJQvogkpnO6PYDl88eL 02Op1l/1E3GXFQ3XT0pxOxv/ORUE0iWzEbjfh9+t4yLPsnijW1y2RS5nFajoBHqMhPUn beGPGAxI/wlt35YyZ3qReMgg3pitxvYaNfhuCMr5pp9exovqWgio98eoPmVfT44ZZDEJ 0riKWjXo08t4LFWHEgkseK+MRpIBF7NgjoefYXxRH6aTBU99O2VM6PhfVjBzrFjYtL4v rXOQ== 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=cJBPnuNJUL9iiZkrIbZpKsggiJIup7sVPAzeEQ70yAY=; b=aKrLb/K88VodhrO5q6zt54zQ8W/9K8WeslKRYqMOemAjkfBXBPEhFM3RnSnIzX0jAf O+OTeUowmWXIUj4F17RGRw0f29w9Ooyu9qrJOqPHvMRRM6xthldXLjK9OWX3i/5KFmIN 6L1woEzvLg6TsnjTpZSEnx8So0WaLqVR3r9i5KDxBAZw0X56Jf1f/q634zm0s2X/f9yh Zx1zmT0nshleM/9pBVaVRwggXcDkRY3ZBupibxxE0IGqbwkRdZ5/G3bNjb4VekmONmsT LgsP7LZB1P6y9p08WBcC31EWtkCEmhD3S7baN3cDe5CD3BcTU6DnUler6AKr8U3x6Gu0 q5cg== X-Gm-Message-State: ABuFfogdB23TCELJN6bDJNnz9voeDTIZ93YVnJVsZoUqlw9ftR4dxUdU OKN4Rsrl4foJ8A+WKXmBl3/ymFqk7tvcBokiqP4= X-Google-Smtp-Source: ACcGV63bS71TEsAD9M9U08v52EPAa2upQciXoQr1E3Et6p06LIT0Z3wcIqYbXPnifHxoH/weI5Qea2spIOHrAXmPIio= X-Received: by 2002:a25:b006:: with SMTP id q6-v6mr6733009ybf.199.1539523583290; Sun, 14 Oct 2018 06:26:23 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Cliff Burdick Date: Sun, 14 Oct 2018 06:26:11 -0700 Message-ID: To: Raslan Darawsheh Cc: katsikas.gp@gmail.com, users 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] 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: Sun, 14 Oct 2018 13:26:24 -0000 Hi Raslan, I was seeing that error, but after filling in that field, it would not classify in any queue other than zero. Since the rte_flow code in the examples directory does not set the vlan fields properly for the mlx5 driver, it also gives the error: http://doc.dpdk.org/api/examples_2flow_filtering_2flow_blocks_8c-example.ht= ml My plan was to fix the problem, test it, and submit a patch for the example. However, despite being able to get the error to go away with the correct mask, I was never able to get the flow to direct into anything other than queue 1 on dpdk 18. On Sun, Oct 14, 2018, 00:43 Raslan Darawsheh wrote: > Hi Cliff, > > > > Can you please send me what exactly you are seeing? > > > > As for the email that you are referring this is a limitation for MLX5 tha= t > it can=E2=80=99t have empty vlan you need to specify vid in order for it = to work. > > > > Kindest regards, > > Raslan Darawsheh > > > > *From:* Cliff Burdick > *Sent:* Friday, October 12, 2018 7:11 PM > *To:* Raslan Darawsheh > *Cc:* katsikas.gp@gmail.com; users > *Subject:* Re: [dpdk-users] Problem installing rules with counters on MLX= 5 > > > > Hi Raslan, can you confirm if rte_flow is partially broken in dpdk 18 on > mlx5? The example code for rte_flow is broken, and I didn't see any > responses here: > > > > http://mails.dpdk.org/archives/users/2018-October/003510.html > > > > > On Thu, Oct 11, 2018 at 5:16 AM 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 thro= w > the > > following error: > > Caught error type 1 (cause unspecified): hardware refuses to create flo= w > > > > If I try to incorporate 'count identifier shared 0', I still ge= t > error (with > > or without shared). > > If I try to install the same rules without action count, then everythin= g > 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 > >