* [dpdk-users] does the 'rte_softrss_be' function match NIC RSS value well? please help me. @ 2017-05-30 7:47 Heung Sik Choi 2017-05-30 8:01 ` Vladimir Medvedkin 0 siblings, 1 reply; 7+ messages in thread From: Heung Sik Choi @ 2017-05-30 7:47 UTC (permalink / raw) To: users 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. ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [dpdk-users] does the 'rte_softrss_be' function match NIC RSS value well? please help me. 2017-05-30 7:47 [dpdk-users] does the 'rte_softrss_be' function match NIC RSS value well? please help me Heung Sik Choi @ 2017-05-30 8:01 ` Vladimir Medvedkin 2017-05-30 9:15 ` Heung Sik Choi 0 siblings, 1 reply; 7+ messages in thread From: Vladimir Medvedkin @ 2017-05-30 8:01 UTC (permalink / raw) To: Heung Sik Choi; +Cc: users Hi, How do you configure your NIC and calculate softrss? 2017-05-30 10:47 GMT+03:00 Heung Sik Choi <hschoi@os.korea.ac.kr>: > 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 ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [dpdk-users] does the 'rte_softrss_be' function match NIC RSS value well? please help me. 2017-05-30 8:01 ` Vladimir Medvedkin @ 2017-05-30 9:15 ` Heung Sik Choi 2017-05-30 10:01 ` Vladimir Medvedkin 0 siblings, 1 reply; 7+ messages in thread From: Heung Sik Choi @ 2017-05-30 9:15 UTC (permalink / raw) To: Vladimir Medvedkin, users 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 <medvedkinv@gmail.com>: > Hi, > > How do you configure your NIC and calculate softrss? > > > 2017-05-30 10:47 GMT+03:00 Heung Sik Choi <hschoi@os.korea.ac.kr>: > >> 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 > ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [dpdk-users] does the 'rte_softrss_be' function match NIC RSS value well? please help me. 2017-05-30 9:15 ` Heung Sik Choi @ 2017-05-30 10:01 ` Vladimir Medvedkin 2017-05-30 10:28 ` Heung Sik Choi 0 siblings, 1 reply; 7+ messages in thread From: Vladimir Medvedkin @ 2017-05-30 10:01 UTC (permalink / raw) To: Heung Sik Choi; +Cc: users 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 <hschoi@os.korea.ac.kr>: > 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 <medvedkinv@gmail.com>: > >> Hi, >> >> How do you configure your NIC and calculate softrss? >> >> >> 2017-05-30 10:47 GMT+03:00 Heung Sik Choi <hschoi@os.korea.ac.kr>: >> >>> 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 ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [dpdk-users] does the 'rte_softrss_be' function match NIC RSS value well? please help me. 2017-05-30 10:01 ` Vladimir Medvedkin @ 2017-05-30 10:28 ` Heung Sik Choi 2017-05-30 13:00 ` Vladimir Medvedkin 0 siblings, 1 reply; 7+ messages in thread From: Heung Sik Choi @ 2017-05-30 10:28 UTC (permalink / raw) To: Vladimir Medvedkin; +Cc: users 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 <medvedkinv@gmail.com>: > 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 <hschoi@os.korea.ac.kr>: > >> 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 <medvedkinv@gmail.com>: >> >>> Hi, >>> >>> How do you configure your NIC and calculate softrss? >>> >>> >>> 2017-05-30 10:47 GMT+03:00 Heung Sik Choi <hschoi@os.korea.ac.kr>: >>> >>>> 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 > ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [dpdk-users] does the 'rte_softrss_be' function match NIC RSS value well? please help me. 2017-05-30 10:28 ` Heung Sik Choi @ 2017-05-30 13:00 ` Vladimir Medvedkin 2017-06-07 5:55 ` Heung Sik Choi 0 siblings, 1 reply; 7+ messages in thread From: Vladimir Medvedkin @ 2017-05-30 13:00 UTC (permalink / raw) To: Heung Sik Choi; +Cc: users 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 <hschoi@os.korea.ac.kr>: > 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 <medvedkinv@gmail.com>: > >> 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 <hschoi@os.korea.ac.kr>: >> >>> 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 <medvedkinv@gmail.com>: >>> >>>> Hi, >>>> >>>> How do you configure your NIC and calculate softrss? >>>> >>>> >>>> 2017-05-30 10:47 GMT+03:00 Heung Sik Choi <hschoi@os.korea.ac.kr>: >>>> >>>>> 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 ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [dpdk-users] does the 'rte_softrss_be' function match NIC RSS value well? please help me. 2017-05-30 13:00 ` Vladimir Medvedkin @ 2017-06-07 5:55 ` Heung Sik Choi 0 siblings, 0 replies; 7+ messages in thread From: Heung Sik Choi @ 2017-06-07 5:55 UTC (permalink / raw) To: Vladimir Medvedkin; +Cc: users Hi, sorry to be late to reply. I changed the code which insert src and dst as you teach me, but It didn't work well. And then, I have a question that RSS verification value from 82599 Datasheet is really right. I do an experiment. I set two machines({IPv4(161, 142, 100, 80), IPv4(66, 9, 149, 187), 1766, 2794, 0x323e8fc2, 0x51ccc178}), and I make receiver machine use Native Linux(3.16.4) and ixgbe(3.22.3). Also I insert printk in ixgbe which print skb->hash value. I checked the skb->hash value in dmesg. However, It didn't match with the value from 82599 Datasheet 7.1.2.8.3 RSS Verification Suite. Please let me know if you have any insights. ^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2017-06-07 5:55 UTC | newest] Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2017-05-30 7:47 [dpdk-users] does the 'rte_softrss_be' function match NIC RSS value well? please help me Heung Sik Choi 2017-05-30 8:01 ` Vladimir Medvedkin 2017-05-30 9:15 ` Heung Sik Choi 2017-05-30 10:01 ` Vladimir Medvedkin 2017-05-30 10:28 ` Heung Sik Choi 2017-05-30 13:00 ` Vladimir Medvedkin 2017-06-07 5:55 ` Heung Sik Choi
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).