From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 836DDA10DA for ; Wed, 31 Jul 2019 14:30:47 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id CC9AE1C10E; Wed, 31 Jul 2019 14:30:45 +0200 (CEST) Received: from mail-wr1-f65.google.com (mail-wr1-f65.google.com [209.85.221.65]) by dpdk.org (Postfix) with ESMTP id 605991C0C1 for ; Wed, 31 Jul 2019 14:30:43 +0200 (CEST) Received: by mail-wr1-f65.google.com with SMTP id 31so69512603wrm.1 for ; Wed, 31 Jul 2019 05:30:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=6wind.com; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=y5Kn62YK8l7LEUjJmWsdha1AoD/KFXNjgpSU/Vzyb9A=; b=ZicvoaozGUGgc8GHCmAylCUB0HDj9iyv2gJ/wtZ/P4npr+9fzGsQhGEmKWAO8sgCrx bFtWMEtJ3vz8jeS+l4O5P+U4b0qHsAw1hm+GD9Wfm3wIdLnufaUrzvb6siIz3tVQ3O0k FzzpMHxg7UD/tZ9xe+mk8X9a/sM8GEE+3W535kg+CQYdRtyPwIgRvvSDQ6Xy39ei0UsB nkYBFyvDyzzK23pBYfGX1l4bNDu7Q3I4MNf9LWnfSxUumseVmD6hJsXcIHypMm8JQfDj 1xLlcc0fF0ftLhgMW74FiTHxqvJAffCst0Sn7nY5MJDDLCPYRAEJtHg8XjNB63tPrGQ9 zhcQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=y5Kn62YK8l7LEUjJmWsdha1AoD/KFXNjgpSU/Vzyb9A=; b=OR2+BT+aZ+d0Mi7qEgt0vcmYIXFIAyc8AEP6Ea/VVA5583KIa2jKrTzCmR59gppTYi SLwgGPN+ZFdGmbVObWWJhYqbsDVI1FGBvK+H91e/YrK5yvnf4cCvFyfXmSNbwQnX8jdP zy6V8FDLvrJeojmnQOA/rlygNAhRH0Bair1XS+SztfBoThtUccC3/Ac49jHQDpsTw6Z8 tZTEpsf05UM8QZbENa/TqMYMDGHMjpJUZXiHuw7qSCMFboKKuA6RCCBBnv0WNUYNpmo9 NqiaBmXTK+rUvsJmu5YmrSn0YiHQQMsL5oacgJM8I0iIZDGFHmQcwNsl7XElGxZS/vaL SWcA== X-Gm-Message-State: APjAAAWzP09V52sPMIPQI5hD8zhC/9rJU/+fDqFsevdc35yelSK2xECR atEUTW3rmMcpIQY6omI+dNpE/g== X-Google-Smtp-Source: APXvYqwHqbNlWrv96b6pchmdMEvHFb8n6GQE/JPBEIlSJFnlx9aTVNLessImNFlbz+4tqOX6S3rDng== X-Received: by 2002:a5d:564e:: with SMTP id j14mr131132924wrw.1.1564576242664; Wed, 31 Jul 2019 05:30:42 -0700 (PDT) Received: from 6wind.com (host.78.145.23.62.rev.coltfrance.com. [62.23.145.78]) by smtp.gmail.com with ESMTPSA id a81sm71347236wmh.3.2019.07.31.05.30.41 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 31 Jul 2019 05:30:41 -0700 (PDT) Date: Wed, 31 Jul 2019 14:30:40 +0200 From: Adrien Mazarguil To: Andrew Rybchenko Cc: simei , qi.z.zhang@intel.com, jingjing.wu@intel.com, dev@dpdk.org Message-ID: <20190731123040.GG4512@6wind.com> References: <1564030646-73951-1-git-send-email-simei.su@intel.com> <1564030646-73951-2-git-send-email-simei.su@intel.com> <291f410f-fc71-191b-8595-4c3d9e970041@solarflare.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <291f410f-fc71-191b-8595-4c3d9e970041@solarflare.com> Subject: Re: [dpdk-dev] [PATCH 1/2] ethdev: add symmetric toeplitz hash support X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On Wed, Jul 31, 2019 at 03:08:19PM +0300, Andrew Rybchenko wrote: > On 7/25/19 7:57 AM, simei wrote: > > From: Simei Su > > > > Currently, there are DEFAULT,TOEPLITZ and SIMPLE_XOR hash funtion. > > To support symmetric hash by rte_flow RSS action, this patch adds > > new hash function "Symmetric Toeplitz" which is supported by some hardware. > > Isn't it a question of key to achieve symmetry? > I.e. hash algorithm (function) is still the same - Toeplitz, but > hash key makes the result symmetric (i.e. equal for flows in both > directions - swap transport ports and IPv4/6 addresses). This is only an option when src/dst are known in advance. When doing RSS, HW implementations (such as Mellanox's) implement a modified Toeplitz XOR'ing src with dst resulting in the same hash both ways regardless of the key. -- Adrien Mazarguil 6WIND