From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 4AB15A04BA; Fri, 2 Oct 2020 12:53:23 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id ABC551D55F; Fri, 2 Oct 2020 12:53:21 +0200 (CEST) Received: from eva.fit.vutbr.cz (eva.fit.vutbr.cz [147.229.176.14]) by dpdk.org (Postfix) with ESMTP id 44DFF1D557 for ; Fri, 2 Oct 2020 12:53:20 +0200 (CEST) Received: from roundcube.fit.vutbr.cz (spytihnev.fit.vutbr.cz [147.229.9.226]) (authenticated bits=0) by eva.fit.vutbr.cz (8.16.1/8.16.1) with ESMTPSA id 092ArIJR027001 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO) for ; Fri, 2 Oct 2020 12:53:18 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=stud.fit.vutbr.cz; s=studfit; t=1601635998; bh=D3Pm/pmRSI86eDMVKRyZoYChj1jF8UJyyLnM6BScsQw=; h=Date:From:To:Subject; b=lSzZcliKF9DAUYmGokzenU7BWHcyuRAVdr53l3ljL2Cq6T/yAZ1vhjJjCoLyc3Dim 7EGMiQTE/K0gwURYsBbvqfzGn/tVXn4FBNl30lmlbICcsY9iqAF1KjJ1qO2NmrVyqG DUXmZr3+4pI6scoo4h2GqoWoMZ2rgQjcwVQDpqIQ= MIME-Version: 1.0 Date: Fri, 02 Oct 2020 12:53:18 +0200 From: Carasec Elena To: dev@dpdk.org User-Agent: Roundcube Webmail Message-ID: X-Sender: xcaras00@stud.fit.vutbr.cz Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Subject: [dpdk-dev] mlx5: match broadcast and multicast packets using flows X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Hello, I am trying to create flow rules that will match broadcast and multicast packets using testpmd on mlx5 'MT27800 Family [ConnectX-5] 1017'. However, after creating the following rules, they do not match any packets. My testpmd script is: port stop all port config all rss none set promisc 0 on set allmulti 0 on port start all set link-up port all flow create 0 group 0 ingress pattern eth dst is ff:ff:ff:ff:ff:ff / ipv4 / end actions mark id 1 / count / queue index 1 / end flow create 0 group 0 ingress pattern eth dst is ff:ff:ff:ff:ff:ff / ipv6 / end actions mark id 1 / count / queue index 1 / end flow create 0 group 0 ingress pattern eth dst spec 01:00:00:00:00:00 dst mask 01:00:00:00:00:00 / ipv4 / end actions mark id 2 / count / queue index 2 / end flow create 0 group 0 ingress pattern eth dst spec 01:00:00:00:00:00 dst mask 01:00:00:00:00:00 / ipv6 / end actions mark id 2 / count / queue index 2 / end flow create 0 group 0 priority 1 ingress pattern end actions queue index 3 / count / end start All the packets will match the last rule. Also, creating only the rule flow create 0 group 0 ingress pattern eth dst spec 01:00:00:00:00:00 dst mask 01:00:00:00:00:00 / end actions mark id 2 / count / queue index 2 / end fails with error "port_flow_complain(): Caught PMD error type 1 (cause unspecified): hardware refuses to create flow: File exists" What may be the reason of it? Is there another way to match broadcast and multicast packets using flow? Thank you. Elena Carasec