From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pd0-f171.google.com (mail-pd0-f171.google.com [209.85.192.171]) by dpdk.org (Postfix) with ESMTP id 886F96A89 for ; Fri, 28 Feb 2014 06:32:40 +0100 (CET) Received: by mail-pd0-f171.google.com with SMTP id r10so277184pdi.30 for ; Thu, 27 Feb 2014 21:34:05 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:content-type:mime-version:subject:from :in-reply-to:date:cc:message-id:references:to; bh=9crmHj+34WafmjUUDZZAXW3wPDvoOFAe6Jbds8tc4sk=; b=YGhMNkHo/Imi61c6LWjpYJjJdzwwWF5BXFKYz5G/+g7k6ABxzqo3OSVVwZee219t07 7/5QlB5nMQxL5SgiF3qnfB6cR+cgEQcrpbGuO6tZSBWWuyzsArda6Q+on1stVE4xq9Ka juNyECZpUhwG+89EILpGzns54ItiW76NkbFs5n3UtzBHz8r+lFf/re5lKJIabHwBGcm+ WcalUCnV1mEfd5kvsE1J9Kg4fyJe7NDBM07Ro02CHeypzsZqnzU++veWqOGd+RhUUMiv PW+CiM9TvT1pqNZUaYCI13KwLmeUSqtYZPTUUqsKKs83UtDIQZSRVZQBgNNRYOGjPAOY AWmg== X-Gm-Message-State: ALoCoQmLHZZKIVfBShK9oBFLWkgdxdzaw0Y2gIACpFpVI8Md2je0daOPbPTzS+cv+/4HqOkBt5Rt X-Received: by 10.68.33.106 with SMTP id q10mr1290271pbi.132.1393565645865; Thu, 27 Feb 2014 21:34:05 -0800 (PST) Received: from [192.168.1.80] (c-76-103-138-196.hsd1.ca.comcast.net. [76.103.138.196]) by mx.google.com with ESMTPSA id om6sm1910594pbc.43.2014.02.27.21.34.03 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 27 Feb 2014 21:34:04 -0800 (PST) Mime-Version: 1.0 (Mac OS X Mail 7.1 \(1827\)) From: Daniel Kan In-Reply-To: Date: Thu, 27 Feb 2014 21:34:02 -0800 Message-Id: References: <75A2A7C4-F592-407C-92BA-7BBD6B6B2A72@nyansa.com> To: Stefan Baranoff X-Mailer: Apple Mail (2.1827) Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Cc: dev@dpdk.org Subject: Re: [dpdk-dev] Is it possible to get symmetric hash from RSS for a given flow X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 28 Feb 2014 05:32:41 -0000 The symmetric RSK for 5-tuple is a generalized case for 2-tuple src = ip/dst ip. You can use the same RSK to get the symmetric load balancing.=20= Dan On Feb 27, 2014, at 5:08 PM, Stefan Baranoff = wrote: > Has anyone already applied this logic to IP only load balancing to get = SRC/DST and DST/SRC on the same queue and come up with an RSK value? If = not I'll spend some time with a calculator and see if I can get one. > Thanks, > Stefan >=20 > Sent from my smart phone; people don't make typos, Swype does! >=20 > On Feb 27, 2014 8:04 PM, "Daniel Kan" wrote: > Thanks, Sangjin. This is exactly i=92m looking for. Sorry, I should=92ve= googled it first. It=92s good to know that hash key of repetitive = 0x6d5a still yields good load balancing results. >=20 > Dan >=20 > On Feb 27, 2014, at 4:24 PM, Sangjin Han = wrote: >=20 > > Hi, > > > > This is exactly what you want: > > http://www.ndsl.kaist.edu/~shinae/papers/TR-symRSS.pdf > > > > Sangjin > > > > On Thu, Feb 27, 2014 at 4:22 PM, Daniel Kan wrote: > >> Hi, > >> It appears that the hash computed from RSS is unidirectional. = Hence, for a 5-tuple flow, packet in one direction can be routed to a = queue that may be different than packet in the other direction. I'm = wondering if there is a configuration or mechanism to get a symmetric = hash so that all packets for a given flow will be in the same queue. = Thanks in advance. > >> > >> Dan >=20