DPDK usage discussions
 help / color / mirror / Atom feed
* [dpdk-users] [rte_flow]How to redirect all non matching traffic to a specific queue
@ 2019-07-17 11:46 Antoine POLLENUS
  2019-07-17 22:17 ` Stephen Hemminger
  0 siblings, 1 reply; 3+ messages in thread
From: Antoine POLLENUS @ 2019-07-17 11:46 UTC (permalink / raw)
  To: users

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [dpdk-users] [rte_flow]How to redirect all non matching traffic to a specific queue
  2019-07-17 11:46 [dpdk-users] [rte_flow]How to redirect all non matching traffic to a specific queue Antoine POLLENUS
@ 2019-07-17 22:17 ` Stephen Hemminger
  2019-07-29 14:44   ` Adrien Mazarguil
  0 siblings, 1 reply; 3+ messages in thread
From: Stephen Hemminger @ 2019-07-17 22:17 UTC (permalink / raw)
  To: Antoine POLLENUS; +Cc: users

On Wed, 17 Jul 2019 11:46:17 +0000
Antoine POLLENUS <a.pollenus@deltacast.tv> 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.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [dpdk-users] [rte_flow]How to redirect all non matching traffic to a specific queue
  2019-07-17 22:17 ` Stephen Hemminger
@ 2019-07-29 14:44   ` Adrien Mazarguil
  0 siblings, 0 replies; 3+ messages in thread
From: Adrien Mazarguil @ 2019-07-29 14:44 UTC (permalink / raw)
  To: Stephen Hemminger; +Cc: Antoine POLLENUS, 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 <a.pollenus@deltacast.tv> 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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2019-07-29 14:44 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-07-17 11:46 [dpdk-users] [rte_flow]How to redirect all non matching traffic to a specific queue Antoine POLLENUS
2019-07-17 22:17 ` Stephen Hemminger
2019-07-29 14:44   ` Adrien Mazarguil

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).