DPDK usage discussions
 help / color / mirror / Atom feed
From: Stephen Hemminger <stephen@networkplumber.org>
To: "Виктория Доможакова" <v.domozhakova@yandex.ru>
Cc: "users@dpdk.org" <users@dpdk.org>
Subject: Re: DDP and symmetric RSS hash
Date: Tue, 13 Feb 2024 19:33:14 -0800	[thread overview]
Message-ID: <20240213193247.5c493f03@hermes.local> (raw)
In-Reply-To: <2329101706545029@mail.yandex.ru>

On Mon, 29 Jan 2024 19:18:38 +0300
Виктория Доможакова <v.domozhakova@yandex.ru> wrote:

> Hi,
> I'm trying to set toeplitz symmetric hash function for packets from DDP.
> I've created flows for pppoe/pppol2tpv2/l2tpv2 headers in patterns and PCtypes as RSS hash types. But it is not working.
> What should I do to configure toeplitz symmetric hash function for packets from ddp?
>  
> Best regards,
> Viktoriya Domozhakova
> 

With most hardware you have to use a Toeplitz key which results in the symmetric hash.
Some hardware does symmetric hash by setting

	/**
	 * Symmetric Toeplitz: src, dst will be replaced by
	 * xor(src, dst). For the case with src/dst only,
	 * src or dst address will xor with zero pair.
	 */
	RTE_ETH_HASH_FUNCTION_SYMMETRIC_TOEPLITZ,
	/**
	 * Symmetric Toeplitz: L3 and L4 fields are sorted prior to
	 * the hash function.
	 *  If src_ip > dst_ip, swap src_ip and dst_ip.
	 *  If src_port > dst_port, swap src_port and dst_port.
	 */
	RTE_ETH_HASH_FUNCTION_SYMMETRIC_TOEPLITZ_SORT,

But that is restricted to newer smart NICs.

      reply	other threads:[~2024-02-14  3:34 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-01-29 16:18 Виктория Доможакова
2024-02-14  3:33 ` Stephen Hemminger [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=20240213193247.5c493f03@hermes.local \
    --to=stephen@networkplumber.org \
    --cc=users@dpdk.org \
    --cc=v.domozhakova@yandex.ru \
    /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).