From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 409B8A0C41 for ; Tue, 30 Nov 2021 16:24:58 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id D213541148; Tue, 30 Nov 2021 16:24:57 +0100 (CET) Received: from delivery.mailspamprotection.com (delivery.mailspamprotection.com [146.66.121.213]) by mails.dpdk.org (Postfix) with ESMTP id A97CF41142 for ; Tue, 30 Nov 2021 16:24:56 +0100 (CET) Received: from 72.204.214.35.bc.googleusercontent.com ([35.214.204.72] helo=es18.siteground.eu) by se15.mailspamprotection.com with esmtps (TLSv1.2:AES128-GCM-SHA256:128) (Exim 4.92) (envelope-from ) id 1ms501-0003Yn-KN for users@dpdk.org; Tue, 30 Nov 2021 09:24:55 -0600 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=filipjaniszewski.com; s=default; h=Content-Transfer-Encoding:Content-Type: MIME-Version:Date:Message-ID:Subject:From:To:Sender:Reply-To:Cc:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=5k1H/i04IfcfzhtEpwNWS7bzMg+NdCHuipKKQGhucWI=; b=vpIYmwShRKvnTUIaQ/FjeGaxdb Mg+5leJ7EynDs2Ldexl4YVYgAKjGlBvndxZdtOkjO667B+mfMnYTDBk5zqOfxO/2EbQWucscsl/Ci t6RZ3AQY+8WTwnEudrxDN6pLL9j9PLbTq10/B69nsXc5L3th3thXZjmuaYfYYjzzT6XVmM8+5nVjg QpHxZivpbcHAvdKmzAFhdQg1DCch0Nxg1Cg+wLXW4dEa+XfmhbCkLcR+IevuTq8pG0DHmyksCT4sP UXlQwmkHLAiYfyk0wbgm2ZKX4sviLnA4mlR6oMymN6cW/KOqBO50bm9474tUZ39fShRwBz9sopIa6 NPAdxLew==; Received: from [89.64.148.179] (port=54126 helo=localhost.localdomain) by es18.siteground.eu with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.90-.1) (envelope-from ) id 1ms500-000420-1q for users@dpdk.org; Tue, 30 Nov 2021 15:24:52 +0000 To: "users@dpdk.org" From: Filip Janiszewski Subject: flow rule to drop all the packets Message-ID: <146a4351-cc39-09a1-4e39-bd0f3d3f90cb@filipjaniszewski.com> Date: Tue, 30 Nov 2021 16:24:51 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.14.0 MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: 35.214.204.72 X-SpamExperts-Domain: es18.siteground.eu X-SpamExperts-Username: 35.214.204.72 Authentication-Results: mailspamprotection.com; auth=pass smtp.auth=35.214.204.72@es18.siteground.eu X-SpamExperts-Outgoing-Class: ham X-SpamExperts-Outgoing-Evidence: Combined (0.15) X-Recommended-Action: accept X-Filter-ID: Pt3MvcO5N4iKaDQ5O6lkdGlMVN6RH8bjRMzItlySaT/RrWB83Tn5zReqjMtr1ea2PUtbdvnXkggZ 3YnVId/Y5jcf0yeVQAvfjHznO7+bT5wDtBK3p5VcS6iRNP7EipR8fYzfQXcfqmra3dmoHS4ygmsB sXTF9I7aQ3tV7e46Fh1WuRWrkPihq53YqAd1ENNq6iAM41hAeV/RVyTQeiNgOIMaxvXc9tQ1fZaW Jxab/NLu+GFU0sCml2vPee3sRKccf6uNtfvhlxVIcNsI7TpuMmCm1Mqx/0+DydNzT9K7qSnD/KIZ FjZmfdcVjL2SVfcQjmlJySLkQdPf+nBedSzwCqKnvfKMIrExxqESVUcBaN8ffwwAuVVFydqPv9iK YN1iXp0hM21t8fdDUekzzHMLNGWLX2ZbQb3UJKihEmoDuwh8ZolFwwybCr3yWDyr1A1PvRkWzsAg aWolxIxCj2GHto6atsxaFkWS/KO9ggVt7y11v0HCq9Ij3WgoQoezM+scaWWR7drMd0qbJIo1RVCX ie2VXGdtLyog7ui50fJvZPXx1zG+dBgRGQy5Evn9+jdEgn5yrhquUfGKFVmhdtT5snHd0G1x4pfZ 1aISb7ugeb3EER4aaezxB4UAOdANOt+ul3AsDBujjw7GCggXV/wpTFs765aq/7Ihe5JpNEYIVsOM yGnDIpSchlco6RIDoNg/2Wq2InZGQXRwgp4DivepysN6jYX/nXkLyQnRCh0nB+uYUazmWajDqA7N T8Js52zSASJFC/49WOPBr5nlEUI4xBvWAWvV2MbEOL+rSVrNm97+1Yyre0TCEk9bcHTxzFaQ60Df 5W/UEAiQY6gB7tzDRbUZbTJzTUxFOPQN4ykUrfnvLnCjLkP+anpqMP4h36aMmCf40DP7fUpdGPkD VnZ/0LsxrQ2YdbRzJblZMRagqv70SHMFT5/cwf+DxCMkUdVod5XdG63CgJuXpt48NSiQMfXSYsX9 IJeeONzwvHSvYu9HgKbmxgz7bYAjAG6yM8m6vSJC4abTFbxNJzXeq0sgpPNt9IbwDC2r4A7aAE8F Q6vfD+BdP4LK+vNudx4FGNe1IIVGLAOfyPfJYYe0zvB1GjR8pXwdaPOMExbhMJTmZCiZnm8Yec8L JwXvkEKCIVpSk82vI+EfiUp6Ke/Xb9P6JZx5dk0bQRRsQsDS6/1iF07vIJSBfxi4XlYFCvUGrzrX 0fA18D3YPjHsCR+ixCNRN7DjTdOvsv3Ynp70TXNvLlM= X-Report-Abuse-To: spam@quarantine1.mailspamprotection.com X-BeenThere: users@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK usage discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: users-bounces@dpdk.org Hi, Is there a way to create a flow rule that drops all the eth packets? I've attempted to setup a flow rule that match any ether type but it's never validated, for example a rule like: . rte_flow_item_eth eth_spec{}; eth_spec.hdr.ether_type = RTE_BE16(0x8100); rte_flow_item_eth eth_mask{}; eth_mask.hdr.ether_type = 0xFFFF; . Should match every packet with ether type 0x8100, so I would assume that setting ether_type for the mask to 0x0000 would trigger the card to match everything regardless of the spec value, but it doesn't run ("Invalid input set" is the complain). Also with testpmd I'm failing to make it work and the documentation on this entire rte flow is pretty poor.. So, how do I configure a rule that drops all*? My use case would be that I need to filter a link that is getting a lot of stuff, I'll drop all but just certain flows that are relevant to me (using an higher priority rule).. Perhaps there's a way to configure an ingress rule that automatically drops everything which is not matching the rule? As a side note, I can't just disable RSS, spit all to queue 0 like it was a void bucket (dropping/releasing) and then setting up rules for the packets I need so that they get enqueue to some other queue, because: 1) I'll waste a cpu just for dropping packets 2) I'll probably get my stat reports full of imiss/errors since the link is 100G and that poor queue is going to be getting tons of packets Thanks * I found this command: . testpmd> set all queues drop 0 on function not implemented . But, it doesn't work. -- BR, Filip +48 666 369 823