XDP-Newbies Archive mirror
 help / color / mirror / Atom feed
From: "Pavel Šiška" <siska@cesnet.cz>
To: xdp-newbies@vger.kernel.org
Subject: XDP-ZC RSS - Mellanox
Date: Wed, 11 May 2022 12:49:35 +0200	[thread overview]
Message-ID: <51ddb56f-5155-aabd-19b3-1bae187009ac@cesnet.cz> (raw)

Hello XDP-newbies,
i am trying to figure it out, how can i configure Mellanox mlx5 card to 
use XSK(XDP)-ZeroCopy queues instead of normal RX queues and use RSS to 
spread traffic.

I have no issue with this on Intel Cards which use same queue for 
both(normal and ZC mode).

My commands for Intel:
$ sudo ethtool -L ens4f0 combined 8
$ sudo ethtool -N ens4f0 rx-flow-hash udp4 fn
$ sudo ethtool -X ens4f0 equal 8 start 0
$ sudo ./xdpsock -q 0 -z // everything is OK


My commands for Mellanox:
$ sudo ethtool -L ens4f0 combined 8
$ sudo ethtool -l ens4f0
Channel parameters for ens4f0:
Current hardware settings:
RX:             n/a
TX:             n/a
Other:          0
Combined:       8

// Bind to ZeroCopy queue 8, after bind number of combined queues 
doubled. [0..N-1 (normal RX queues), N..(2N-1) (ZeroCopy queues)]
$ sudo ./xdpsock -i ens4f0 -q 8 -z &
$ sudo ethtool -l ens4f0
Channel parameters for ens4f0:
Current hardware settings:
RX:             n/a
TX:             n/a
Other:          0
Combined:       16

// Try to redirect traffic to ZeroCopy queue 8-15
$ sudo ethtool -X ens4f0 start 8 equal 8
Cannot set RX flow hash configuration: Invalid argument


The only solutions that i found was to use "flow steering rules" to 
redirect traffic to specific ZeroCopy queue, but this does not solve my 
issue.

Is there any way how to achieve my goal on Mellanox card?
(mlx5_core v. 5.5-1.0.3, ol8 kernel 4.18)


Thanks,
Pavel Siska


             reply	other threads:[~2022-05-11 10:49 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-05-11 10:49 Pavel Šiška [this message]
  -- strict thread matches above, loose matches on Subject: below --
2022-09-12 13:41 XDP-ZC RSS - Mellanox Dries De Winter
2022-09-13  8:50 ` Alasdair McWilliam
2022-09-13  9:09   ` Dries De Winter

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=51ddb56f-5155-aabd-19b3-1bae187009ac@cesnet.cz \
    --to=siska@cesnet.cz \
    --cc=xdp-newbies@vger.kernel.org \
    /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 read-only IMAP folder(s) and NNTP newsgroup(s).