From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ob0-f176.google.com (mail-ob0-f176.google.com [209.85.214.176]) by dpdk.org (Postfix) with ESMTP id 4D66E7F07 for ; Wed, 17 Dec 2014 20:12:03 +0100 (CET) Received: by mail-ob0-f176.google.com with SMTP id vb8so5381854obc.7 for ; Wed, 17 Dec 2014 11:12:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sidebandnetworks.com; s=google; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=pnvDfgzrTvwF0ttmnRZ7VgV7vI35J0STAZ/RjBABmQI=; b=Wksv4kwc9lviELT+2eh+Wi0j1TONAyhURGQbc67UO59OU0RM/R/iEnEvqy/PWmmEm2 p35LlRfa2Sb2kf1mZ+HvAi19mfup18xp8+WBRZxaG70ltdrcTo49mB4lHQkBHYTFEgEf KScadIGcfHa19hdhczOO9LZl/ZkdZS+B2MEUw= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=pnvDfgzrTvwF0ttmnRZ7VgV7vI35J0STAZ/RjBABmQI=; b=kqqZ+JlxPEGW/jZ0DAyYXwr7Ta0Z3FxDjbrd9RobkekKa28b/oZsKXJzlAhCJKebO3 PVaJAGA/B9mdaPsPvfKn903t+DPKU88diTLU2VzJkuNIAjUFY4747RCvTYXx8XVT/xvW 3M+arUQrfVtRGZFYXJEcm7uly80KkHxdKsCp0kh06LVLPz1yGpuBadVBDN5ViJDfqeyU O5KFQhASsm/RQasGSLKflH+ZcUDHLRIdty0wvw5Ulh7XnT1gACDozm3UndZ1nTw6uUya 6L2qhS4xgXn5PpP1RTV3rm3/VsPFQM0cJmGcJDgH8W1h3nrFplPwo68ujZqft/tQnkQJ cD9Q== X-Gm-Message-State: ALoCoQnvZ8fVaHz6WlOLVqU1GETdpcmm5B7yLj5DcOzhsLYTNLYB41uIbgDc8NxBtsPBSXL+0kwU MIME-Version: 1.0 X-Received: by 10.202.220.85 with SMTP id t82mr25356371oig.43.1418843522593; Wed, 17 Dec 2014 11:12:02 -0800 (PST) Received: by 10.202.48.79 with HTTP; Wed, 17 Dec 2014 11:12:02 -0800 (PST) In-Reply-To: References: Date: Wed, 17 Dec 2014 14:12:02 -0500 Message-ID: From: Kamraan Nasim To: Jeriel Smith , dev@dpdk.org Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Cc: Steve Noble , Jun Du , Ashish Juneja Subject: Re: [dpdk-dev] Symmetric RSS Hashing in DPDK 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: Wed, 17 Dec 2014 19:12:03 -0000 Thank you Jeriel. 0x00 0x01 works and I can get bi-directional symmetry but you are right, it compromises the packet distribution. I am seeing vastly different 5 tuples hashed with the same value. Will let you know if I find a better alternative. --Kam On Tue, Dec 16, 2014 at 5:17 PM, Jeriel Smith wrote: > > Hi Kamraan, > Even i noticed it with "0x6d5a". Currently, I use a continuous > pattern of "0x00 0x01" which helps in getting a symmetrical hashing. But, > the packet spraying is not that good as "0x6d5a". Please let me know if you > find a alternative. > Thanks, > Jeriel > > >> ---------- Forwarded message ---------- >> From: Kamraan Nasim >> Date: Tue, Dec 16, 2014 at 11:52 AM >> Subject: [dpdk-dev] Symmetric RSS Hashing in DPDK >> To: dev@dpdk.org >> Cc: Steve Noble , Jun Du < >> jdu@sidebandnetworks.com>, Ashish Juneja >> >> Hello, >> >> My DPDK application requires bidirectional TCP flows to have the same RSS >> hash however default RSS hashing is *asymmetric*. >> >> >> There are posts such as: >> http://dpdk.info/ml/archives/dev/2014-February/001460.html >> >> which point to a symmetric RSS key(0x6d5a). I have tried using it but it >> is >> still hashing bi-directional flows separately. I am using an 82599 NIC. >> >> Have others come across this? What other options are available(I presume >> S/W hashing)? >> >> Appreciate any help I can get on this :) >> >> #define RSS_HASH_KEY_LENGTH 40 >> static uint8_t hash_key[RSS_HASH_KEY_LENGTH] = { >> 0x6D, 0x5A, 0x6D, 0x5A, 0x6D, 0x5A, 0x6D, 0x5A, >> 0x6D, 0x5A, 0x6D, 0x5A, 0x6D, 0x5A, 0x6D, 0x5A, >> 0x6D, 0x5A, 0x6D, 0x5A, 0x6D, 0x5A, 0x6D, 0x5A, >> 0x6D, 0x5A, 0x6D, 0x5A, 0x6D, 0x5A, 0x6D, 0x5A, >> 0x6D, 0x5A, 0x6D, 0x5A, 0x6D, 0x5A, 0x6D, 0x5A, >> }; >> // ethernet rx config >> static struct rte_eth_conf port_conf = { >> .rxmode = { >> .mq_mode = ETH_MQ_RX_RSS, >> .split_hdr_size = 0, >> .header_split = 0, /**< Header Split disabled */ >> .hw_ip_checksum = 1, /**< IP checksum offload enabled */ >> .hw_vlan_filter = 0, /**< VLAN filtering disabled */ >> .jumbo_frame = 0, /**< Jumbo Frame Support disabled */ >> .hw_strip_crc = 0, /**< CRC stripped by hardware */ >> }, >> .rx_adv_conf = { >> .rss_conf = { >> .rss_key = hash_key, >> .rss_hf = ETH_RSS_PROTO_MASK, >> }, >> }, >> .txmode = { >> .mq_mode = ETH_MQ_TX_NONE, >> }, >> }; >> >> >> Thanks, >> Kam >> >