From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-qk0-f170.google.com (mail-qk0-f170.google.com [209.85.220.170]) by dpdk.org (Postfix) with ESMTP id 0A7F390F8 for ; Tue, 30 May 2017 15:00:13 +0200 (CEST) Received: by mail-qk0-f170.google.com with SMTP id 19so2156814qke.2 for ; Tue, 30 May 2017 06:00:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=agFlVAavsR7J65a9gxhWBD1r0JfY24pyfCFikqt3mGY=; b=KhDc3wE1y0vygxIPE19zymaSFnh2mes8/CYa9t7O99bV3r8mQKWmvTjlaonQbJJw++ 1k0UTEB0TaLnufK9KZrudxcrnRYBUMfFPK2A5SHaHjVMgLdD+T8dtL5OYaZRr3XgEdBo Ae40azsRdpMST+EOFJ6uEm93mCb5WQSQJ+7teFAAj9ui6PKBPrvDoNxX5+wbaCB7Lt95 AisaAnM1lb4IkQBsV+RkZQuawVECIIXtqAs4OKpvsHYQ3gyV7Tsn8sLLsUkLD+OOTc6n CUI2cDgqEPdkf1YL6TAWCS5YR48l9sXg3NaR7eRYz9s3EJ3R82i46BLFaXzwRhDJprSU 0VKw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=agFlVAavsR7J65a9gxhWBD1r0JfY24pyfCFikqt3mGY=; b=JHE0rdwOZItpb4HGTboq952dxO2YowRJzdFqEWd/Rbj1mh7V06vW7llg8Vqk2+syU6 KBoz7KB3JB6ry1OcD7qs0+LmZa7M/EeFNP6lJIywZXbhGc9Jix6I6JeyjERpWpyf1s4A 1zoKn2Fei9G3sBvDgSZ2fFI7h0vHlreO2yNxTBx1M02xh3ScSKa7y6d8ozDAk9lpYphu Xlf9osqQk69Jtds0r/ksMsHcPiss/LBtukeZmr5dCO7DqKpINHPazR5jBjGK3Iy3c8eK gKqA6ZA71Z45SYUugvGS8DWuCThvVnp5jHyGC3PF3bBbDsMsCpDLfdsZ6JtH5xRrT+sa xRAA== X-Gm-Message-State: AODbwcBZ3XEilPeUFrCEphKmVFe7p6nrWGsbSah9UNmvIlB7D6DuMxLn yS60tvvTMILeQOatPo/YchKlPRuLqC9F X-Received: by 10.55.74.8 with SMTP id x8mr716532qka.88.1496149212484; Tue, 30 May 2017 06:00:12 -0700 (PDT) MIME-Version: 1.0 Received: by 10.237.36.21 with HTTP; Tue, 30 May 2017 06:00:12 -0700 (PDT) In-Reply-To: References: From: Vladimir Medvedkin Date: Tue, 30 May 2017 16:00:12 +0300 Message-ID: To: Heung Sik Choi Cc: users@dpdk.org Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: Re: [dpdk-users] does the 'rte_softrss_be' function match NIC RSS value well? please help me. X-BeenThere: users@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK usage discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 30 May 2017 13:00:13 -0000 How do you insert src and dst ips? Try it with rte_be_to_cpu_32() for example tuple.v4.src_addr =rte_be_to_cpu_32(ip_hdr->src_addr) P.S. https://en.wikipedia.org/wiki/Endianness 2017-05-30 13:28 GMT+03:00 Heung Sik Choi : > I insert ip source, ip destination, port source, port destination to the > tuple but sctp_tag is null. But, I think it is not necessary because the > test_thash.c in DPDK souce files shows example of rte_softrss_be and also > sctp_tage is null. > > I don't know byte order. How can I check this? can you tell me the way? > > Thanks, Vladimir. > > 2017-05-30 19:01 GMT+09:00 Vladimir Medvedkin : > >> What do you have in tuple? What byte order are ip addresses and ports? >> >> 2017-05-30 12:15 GMT+03:00 Heung Sik Choi : >> >>> Thanks to reply Vladimir. >>> >>> I does not custom configure ixgbe, thus default compile and load. >>> >>> My calculation softrss code is below: >>> >>> uint8_t rss_key_be[RTE_DIM(default_rss_key)]; >>> >>> uint8_t default_rss_key[] = { >>> 0x6d, 0x5a, 0x56, 0xda, 0x25, 0x5b, 0x0e, 0xc2, >>> 0x41, 0x67, 0x25, 0x3d, 0x43, 0xa3, 0x8f, 0xb0, >>> 0xd0, 0xca, 0x2b, 0xcb, 0xae, 0x7b, 0x30, 0xb4, >>> 0x77, 0xcb, 0x2d, 0xa3, 0x80, 0x30, 0xf2, 0x0c, >>> 0x6a, 0x42, 0xb7, 0x3b, 0xbe, 0xac, 0x01, 0xfa >>> }; >>> >>> rte_convert_rss_key((uint32_t *)&default_rss_key,(uint32_t *)rss_key_be, >>> RTE_DIM(default_rss_key)); >>> >>> rte_softrss_be((uint32_t *)&tuple, RTE_THASH_V4_L4_LEN, rss_key_be);// >>> print it. >>> >>> i used rte convert_rss_key's implementation code which be base in X86. >>> >>> i also change the RTE_THASH_V4_L4_LEN parameter with RTE_THASH_V4_L3_LEN. >>> >>> but doesn't match. >>> >>> Is it wrong to use it that way? >>> >>> please help me. >>> >>> >>> >>> 2017-05-30 17:01 GMT+09:00 Vladimir Medvedkin : >>> >>>> Hi, >>>> >>>> How do you configure your NIC and calculate softrss? >>>> >>>> >>>> 2017-05-30 10:47 GMT+03:00 Heung Sik Choi : >>>> >>>>> Hi >>>>> >>>>> I want to match NIC RSS value with toeplitz hash function value. And I >>>>> find >>>>> out 'rte_softrss_be' can makes it. >>>>> >>>>> However, when I experiment it, It doesn't match well. (print two value >>>>> on >>>>> terminal through code level) >>>>> I use the environment below: >>>>> >>>>> CPU: xeon 2213 v2 *2 (NUMA) >>>>> NIC: intel 82599ES >>>>> kernel 3.16.4 >>>>> ixgbe driver: 3.22 >>>>> DPDK 16.11 >>>>> >>>>> Please let me know if you have any insights. >>>>> >>>> >>>> >>>> >>>> -- >>>> Regards, >>>> Vladimir >>>> >>> >>> >> >> >> -- >> Regards, >> Vladimir >> > > -- Regards, Vladimir