From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 5279943C5F for ; Wed, 6 Mar 2024 16:04:04 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 4080942DE4; Wed, 6 Mar 2024 16:04:04 +0100 (CET) Received: from mail-pf1-f178.google.com (mail-pf1-f178.google.com [209.85.210.178]) by mails.dpdk.org (Postfix) with ESMTP id DA1E540A6D for ; Wed, 6 Mar 2024 16:04:02 +0100 (CET) Received: by mail-pf1-f178.google.com with SMTP id d2e1a72fcca58-6e6568e169aso31877b3a.0 for ; Wed, 06 Mar 2024 07:04:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1709737442; x=1710342242; darn=dpdk.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:subject:cc:to:from:date:from:to:cc:subject:date :message-id:reply-to; bh=ZeMIFNGvv12CmTkfsqyHxV0lB0oQuhJKKEVGpPZGYAU=; b=PizlPCV1dRL/9e9Twtj4XeNAapKbW0/8qun9YO95k68eU/VHy+iAxhjZMr1F/Px4Jb gfoHrgyrah6DrITBzEGc1RLkSJA9R60WOUGxV+NAvCRneIjdOsK6O9uxACty3jwcR41h Avpp5PfcPcJ/x4iHn8kdyfmkekxLAAin7BZ+cWDtSXhipiAVxe+SHRluX6+rqtMtQ+Yt qjhyHs5AboyCa04VciFxW7xUER6/P5j90NNkjeh5HJvlKvQD/hlDhgbUnj8VAONfVx+S aEgc5DN+X5rxv5h8pYMC7K9OfdVnLKloSU0Fw03GzwLE+AiCLvBG+QnXLEF0vSn+UWMT ZNkw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709737442; x=1710342242; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:subject:cc:to:from:date:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=ZeMIFNGvv12CmTkfsqyHxV0lB0oQuhJKKEVGpPZGYAU=; b=teDHn6as4vzLxVF6446J3TnQXc+FowHKqseSY/kCQUTmJNyLuy/oZfz/fBdHD/byJp rWnbPceEoHx0/75YrD7ONulykyjc4KU45gx1/Xth0b8D9zNi7SNu1S8AXhb865K8O6aF WY5lUW3ceyq7G3NRHvhSDaqry9WXQzloAJaKveevUWHiH4LD3wghco422WKAtxbGiIF6 xd+w5twXfWSjt2YRoY62BAVZfEMT/B2dk1oXV2yjs3OYuFZLNW/MeblxRNypekz93KsE 4ERB8R2mJAfEAQS3+S4Xv3U+PBl+tVJlM0PLq7bWOibVlaBi0STksy0Ca9Jja6tVaXSY 5ZUg== X-Gm-Message-State: AOJu0YxCY/QIXqQdMVn5MELavrT3BunA3MPYmeNWYwMhCoEazwzh4q6z UqEhfvoSioM4rJn1rQIEjQaGTNb64lvVx9mZGYJKXtxsKv6e5j5hMsm7rm+jc4U= X-Google-Smtp-Source: AGHT+IHpiDWyk7wN7Z5v6UxW3sKCqy7/MMiQhtCeR0GCB/mmzyR9WOdb3GRCloKOtqyXkw6mZXKZKA== X-Received: by 2002:a05:6a21:6da9:b0:1a0:e944:15b7 with SMTP id wl41-20020a056a216da900b001a0e94415b7mr5371680pzb.5.1709737441831; Wed, 06 Mar 2024 07:04:01 -0800 (PST) Received: from hermes.local (204-195-123-141.wavecable.com. [204.195.123.141]) by smtp.gmail.com with ESMTPSA id l185-20020a6388c2000000b005dab535fac2sm10792715pgd.90.2024.03.06.07.04.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Mar 2024 07:04:01 -0800 (PST) Date: Wed, 6 Mar 2024 07:03:59 -0800 From: Stephen Hemminger To: Balakrishnan K Cc: "users@dpdk.org" Subject: Re: Symmetric RSS Hashing support in DPDK Message-ID: <20240306070359.43b8f128@hermes.local> In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BeenThere: users@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK usage discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: users-bounces@dpdk.org On Wed, 6 Mar 2024 07:28:40 +0000 Balakrishnan K wrote: > Hello, > Our application needs symmetric hashing to handle the reverse traffic on the same core, also to > Improve performance by distributing the traffic across core. > Tried using rss config as below . > action_rss_tcp.types = ETH_RSS_NONFRAG_IPV4_TCP | ETH_RSS_L3_SRC_ONLY| ETH_RSS_L3_DST_ONLY | ETH_RSS_L4_SRC_ONLY | ETH_RSS_L4_DST_ONLY; > but could not get desired result. > Is there any options or API available to enable symmetric RSS hashing . > We are using dpdk 20.11 and intel NIC X710 10GbE . > > Regards, > Bala With XL710 there are two choices: 1. Set RSS hash function to RTE_ETH_HASH_SYMMETRIC_TOEPLITZ in the rte_eth_rss_conf passed in during configure 2. Use default (non symmetric TOEPLITZ) but pass in a rss_key that has duplicated bits in the right place. Like: 0x6d5a 0x6d5a 0x6d5a 0x6d5a 0x6d5a 0x6d5a 0x6d5a 0x6d5a 0x6d5a 0x6d5a 0x6d5a 0x6d5a 0x6d5a 0x6d5a 0x6d5a 0x6d5a 0x6d5a 0x6d5a 0x6d5a 0x6d5a https://www.ndsl.kaist.edu/~kyoungsoo/papers/TR-symRSS.pdf