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 05EFAA0487 for ; Mon, 29 Jul 2019 16:44:39 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 2EEC41BFAB; Mon, 29 Jul 2019 16:44:32 +0200 (CEST) Received: from mail-wr1-f42.google.com (mail-wr1-f42.google.com [209.85.221.42]) by dpdk.org (Postfix) with ESMTP id 1135B1BF95 for ; Mon, 29 Jul 2019 16:44:30 +0200 (CEST) Received: by mail-wr1-f42.google.com with SMTP id x1so12251261wrr.9 for ; Mon, 29 Jul 2019 07:44:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=6wind.com; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=9TqL2zq9yamYnBE5C8Lz4EwVVQxV8xm60VboK+4+A2s=; b=HrBhhlJ4hGok4LCOqlnmT6uhz/G7Cb3lZkMazrjah3fX5CI5F15tXQOMstV8yqVB/Y oCaaKBAZjZ2RCGVnyedaGsCAVK6zqm88ltQc7oGGrzo4wOSvABaunvkNKpjlrCx6HwFm e8p9gfvQY8yGQkr2x18k1kdB1gYUgzTCLvtBEcJiVBj9J7jM/+8ron4v3LIwXCn2ty5B oa7AlNmWFA6YatoPrcd+In7C+Ql/b0xS3WSblgGcFCWK9N3Q6uMrZaryl8xzM5zSRn/h 93GUgFtSDmpIX+ZQOfh9Sy+x/iMdJ4YWryEVfQ4sEFueXlZdFQAGDyCRgWRh9AG/W8og +9MA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=9TqL2zq9yamYnBE5C8Lz4EwVVQxV8xm60VboK+4+A2s=; b=HF3zym62o15I4MelxHTfSIsuVqVaP9xitxtWRek/5KlSOgotig3IshpObPhxpHm0is 9h+whJRReG8WNYSqwl2vJ2Erg7gI6DZohQ17L8Y8yxcgE0ZF6qPjAiAbDHhZu+T+BpdQ G5eHwmlngeSYXBSX7vAXRjvTynq536bP1JbJu/vSjRji8lcfGDbMg2GUxC4SyiQNhRkj /sZ2Fsz2h0qNKNcANIn5/aPPZo8VMMPWG/8NWsYURjvZgsBJ+jqa+xxtMrIbIBHU8KMs nm2PuDM/mDgCK87YPeX82Y9hsZMQo4IzmF4sGuHU9VDttX8Z/Sk4wbwCwKOTgTh5IbOK 04vg== X-Gm-Message-State: APjAAAWeYHe1RdzP5Xar2ansaBFOQBIsnAoIsX59mM/PBuWm/cgwSecR iSXgTgqUn85G+Io37qGrlYXpzg== X-Google-Smtp-Source: APXvYqzXyYmZFODn1XLahz2MX8J3Z0tRU0jYszN85i5wQx9EKziAQcyccZY7VBYQA4zI8mVQJJSbdg== X-Received: by 2002:a5d:43d0:: with SMTP id v16mr116709002wrr.252.1564411469803; Mon, 29 Jul 2019 07:44:29 -0700 (PDT) Received: from 6wind.com (host.78.145.23.62.rev.coltfrance.com. [62.23.145.78]) by smtp.gmail.com with ESMTPSA id a67sm67827613wmh.40.2019.07.29.07.44.28 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 29 Jul 2019 07:44:29 -0700 (PDT) Date: Mon, 29 Jul 2019 16:44:27 +0200 From: Adrien Mazarguil To: Stephen Hemminger Cc: Antoine POLLENUS , "users@dpdk.org" Message-ID: <20190729144427.GZ4512@6wind.com> References: <8995646e9b894982b9c88f79bc7d99bd@deltacast.tv> <20190717151714.779770aa@xps13> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190717151714.779770aa@xps13> Subject: Re: [dpdk-users] [rte_flow]How to redirect all non matching traffic to a specific queue 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: , Errors-To: users-bounces@dpdk.org Sender: "users" On Wed, Jul 17, 2019 at 03:17:14PM -0700, Stephen Hemminger wrote: > On Wed, 17 Jul 2019 11:46:17 +0000 > Antoine POLLENUS wrote: > > > Hello, > > > > I have a problem in my DPDK implementation, > > > > I'm redirecting/filtering ingress traffic to a specific queue depending on the udp port using rte_flow. > > > > Now that I have that I would like to redirect all non-matching packets to a specific queue. > > > > How can I do that with RTE_FLOW ? > > > > Thank you in advance for your answer. > > > > Regards, > > > > Antoine Pollenus > > rte_flow supports INVERT as a pattern match. That is what you want. > Not all hardware supports it. Just checked, unfortunately no driver supports this pattern item at the moment. Assuming the intent is to dedicate a queue or a set of queues to matching traffic and a different set to leftover traffic *without* overlap between the two, you can rely on priorities as a workaround: - Rule with priority 0: match specific UDP ports and redirect that to a specific queue (QUEUE action) or a group of queues (RSS action). - Rule with priority 1: match everything (i.e. empty pattern) and spread that into the remaining queues (QUEUE or RSS action depending on the number of target queues). -- Adrien Mazarguil 6WIND