From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-oi0-f53.google.com (mail-oi0-f53.google.com [209.85.218.53]) by dpdk.org (Postfix) with ESMTP id 597BB8048 for ; Tue, 16 Dec 2014 20:52:21 +0100 (CET) Received: by mail-oi0-f53.google.com with SMTP id g201so1280254oib.12 for ; Tue, 16 Dec 2014 11:52:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sidebandnetworks.com; s=google; h=mime-version:date:message-id:subject:from:to:cc:content-type; bh=cZMdUqRRIObvyN7+Q1S6hrj3rB9VlAYl+4OKmh7pQTs=; b=KNN34OgN8MJXQpxHEuQs8nsqJnbHGC0zt1XbZp+fSFRA/Orf1jdN3oL5ZVygi5dr8o a5X0/rewKXUZcmYFVPIxEb/EteRHIdrfMdF+GoNxAvjqlCJ6IwroPjj98JRvKDdpxLpY kOjclpbTl5riDGZwMnQ9FwmEtPaLAqpQHug9I= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:date:message-id:subject:from:to:cc :content-type; bh=cZMdUqRRIObvyN7+Q1S6hrj3rB9VlAYl+4OKmh7pQTs=; b=K3yQB9UeZPt4BK2N1VFINiteAeY1DUGW5Eoxi2RNYhs1uCgxBL05dcgAgg1PVUfX7/ kQPifD8GRY5Cb9qmZZNmlBTRikhmhC7Pg/p7mWmisZpoy6aMQaQo5MUwjCSO2twN8sRQ VY+0lQLQAR0dEzr5a023kdHUjjaQnmmnXqCqzCtGJnk/ScuB9zASKx6QjhJJtAPEsyly BTb5o2sPa1EF6IE22kbynS3srll3z3Clcrna4RFRb85IW4x/Zk0MgFQffoeQB99wD3OT FEzI4yKMxS2cir6MoKrYj57NhbkZzYXek0Ai25J+mt+RFefqoGwXTyQYHqkWLa/984Iz UMkA== X-Gm-Message-State: ALoCoQmyQGyMWlLoq9OWcBMv2aDOXOW0TAbaCu0uEq3Qqcqgh8DJKXa0rYbdnzYm+dmbco3Ng1jE MIME-Version: 1.0 X-Received: by 10.60.99.40 with SMTP id en8mr6800928oeb.44.1418759540664; Tue, 16 Dec 2014 11:52:20 -0800 (PST) Received: by 10.202.48.79 with HTTP; Tue, 16 Dec 2014 11:52:20 -0800 (PST) Date: Tue, 16 Dec 2014 14:52:20 -0500 Message-ID: From: Kamraan Nasim To: 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: [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: Tue, 16 Dec 2014 19:52:21 -0000 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