DPDK usage discussions
 help / color / mirror / Atom feed
From: Shahaf Shuler <shahafs@mellanox.com>
To: Tom Barbette <barbette@kth.se>, users <users@dpdk.org>,
	Raslan Darawsheh <rasland@mellanox.com>
Cc: Olga Shern <olgas@mellanox.com>, Yongseok Koh <yskoh@mellanox.com>
Subject: Re: [dpdk-users] mlx5 flow MARK action does not work with RSS
Date: Sun, 3 Feb 2019 12:44:54 +0000	[thread overview]
Message-ID: <AM0PR0502MB3795EFF98E6D065289671BEEC36C0@AM0PR0502MB3795.eurprd05.prod.outlook.com> (raw)
In-Reply-To: <c8c71f77-d775-2d72-7e09-9bd4380ca74e@kth.se>

Thursday, January 31, 2019 6:41 PM, Tom Barbette:
> Subject: Re: [dpdk-users] mlx5 flow MARK action does not work with RSS
> 
> Le 31/01/2019 à 15:04, Shahaf Shuler a écrit :
> > What is the functionally you seek? It will much help to propose a solution.
> 
> 
> What I'd like is to mark some packets. Eg ARP packets with 1, ICMP PING with
> 2, IP dst port 80 with 3, etc.
> 
> But I'd like the packets to follow the normal behavior except from that.
> My default behavior would be to use RSS to dispatch packets among a set of
> queues.
> 
> In the current scheme, I must set a specific "fate" action for each flow, like
> QUEUE or RSS.
> Of course the list of flows is dynamically generated, and it is complicated to
> change QUEUE/RSS according to the flow type. I would like to say "mark
> packets, then do as the NIC would normally do". That's why I imagine a
> "default" action.

There is a default RSS hashing. For example, for IP dst port 80 w/ mark 3 and 4 rxqs do:
testpmd> flow create 0 ingress pattern eth / ipv4 / udp dst is 80 / end actions mark id 3 / rss queues 0 1 2 3 end / end

This will tell the PMD to do RSS action to all queues and it will use the default RSS defined on the port. Which means you will get the exact same behavior like the default action.
You can append this RSS action to every rule you create.

There is one issue w/ ARP. Mellanox devices cannot do RSS on the ether only packets. As such, RSS action on ARP packet will fail. 
So for Ether only packet you will have to use the queue action. The "default" behavior will be go to queue index 0. 

> 
> 
> Thanks,
> Tom

      reply	other threads:[~2019-02-03 12:45 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-01-30 17:47 Tom Barbette
2019-01-31  6:42 ` Shahaf Shuler
2019-01-31  8:30   ` Tom Barbette
2019-01-31 12:54     ` Tom Barbette
2019-01-31 14:04       ` Shahaf Shuler
2019-01-31 16:40         ` Tom Barbette
2019-02-03 12:44           ` Shahaf Shuler [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=AM0PR0502MB3795EFF98E6D065289671BEEC36C0@AM0PR0502MB3795.eurprd05.prod.outlook.com \
    --to=shahafs@mellanox.com \
    --cc=barbette@kth.se \
    --cc=olgas@mellanox.com \
    --cc=rasland@mellanox.com \
    --cc=users@dpdk.org \
    --cc=yskoh@mellanox.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).