DPDK patches and discussions
 help / color / mirror / Atom feed
From: "De Lara Guarch, Pablo" <pablo.de.lara.guarch@intel.com>
To: "Martin Drašar" <drasar@ics.muni.cz>, "dev@dpdk.org" <dev@dpdk.org>
Subject: Re: [dpdk-dev] Broken RSS hash computation on Intel 82574L
Date: Tue, 1 Sep 2015 13:45:18 +0000	[thread overview]
Message-ID: <E115CCD9D858EF4F90C690B0DCB4D8973C7EF8C0@IRSMSX108.ger.corp.intel.com> (raw)
In-Reply-To: <55E44563.5050208@ics.muni.cz>

Hi Martin,

> -----Original Message-----
> From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Martin Drašar
> Sent: Monday, August 31, 2015 1:16 PM
> To: dev@dpdk.org
> Subject: [dpdk-dev] Broken RSS hash computation on Intel 82574L
> 
> Hi,
> 
> I am using RSS to get identical hash for both directions of a flow.
> Everything is working as it should with the Intel 82599ES, but when I
> run the same code with the Intel 82574L, then the hash is not calculated
> correctly and returns 0 as a hash value for all flows.
> 
> I could use the Toeplitz hash implementation from 2.1.0, but I would
> rather do it in hardware, because according to specification, 82574L can
> do RSS in hardware.
> 
> Any ideas what might be wrong?
> 
> Thanks in advance,
> Martin
> 
> conf:
> #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 };
> 
> static const struct rte_eth_conf port_conf = {
>   .link_speed  = 0,
>   .link_duplex = 0,
>   .rxmode = {
>     .mq_mode        = ETH_RSS,
>     .max_rx_pkt_len = 0,
>     .split_hdr_size = 0,
>     .header_split   = 0,
>     .hw_ip_checksum = 0,
>     .hw_vlan_filter = 0,
>     .hw_vlan_strip  = 0,
>     .hw_vlan_extend = 0,
>     .jumbo_frame    = 0,
>     .hw_strip_crc   = 0,
>   },
>   .txmode = {
>     .mq_mode = ETH_DCB_NONE,
>   },
>   .lpbk_mode = 0,
>   .rx_adv_conf = {
>     .rss_conf = {
>       .rss_key     = hash_key,
>       .rss_key_len = RSS_HASH_KEY_LENGTH,
>       .rss_hf      = ETH_RSS_PROTO_MASK,
>       },
>     },
> };

82574L NIC uses em PMD, which does not support more than 1 queue.
Therefore RSS is disabled in the NIC and then you cannot have RSS hashes.

Thanks,
Pablo

  reply	other threads:[~2015-09-01 13:45 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-08-31 12:15 Martin Drašar
2015-09-01 13:45 ` De Lara Guarch, Pablo [this message]
2015-09-01 14:37   ` Martin Drašar
2015-09-01 14:47     ` Matthew Hall
2015-09-01 14:50       ` Avi Kivity
2015-09-01 15:00         ` Martin Drašar
2015-09-01 15:19       ` Jim Thompson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=E115CCD9D858EF4F90C690B0DCB4D8973C7EF8C0@IRSMSX108.ger.corp.intel.com \
    --to=pablo.de.lara.guarch@intel.com \
    --cc=dev@dpdk.org \
    --cc=drasar@ics.muni.cz \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).