DPDK patches and discussions
 help / color / mirror / Atom feed
From: Kamraan Nasim <knasim@sidebandnetworks.com>
To: dev@dpdk.org
Subject: [dpdk-dev] RSS Reta redirection not working on 82599 NIC(Niantic)
Date: Mon, 19 Jan 2015 11:03:18 -0500	[thread overview]
Message-ID: <CAPrTskicXGS_jRkJpeyuz+Wj-Pg2iGPkTDeP6rdBca-82cB49Q@mail.gmail.com> (raw)

Hello,

Following from a previous thread, I took up Bruce Richardson's advice to
modify the RSS redirection table(RETA) to exclude entries pointing to a
specific queue:

For e.g, this is the RETA table before any modifications are done:
*Default *Reta table:
0 1 2 0 1 2 0 1 2 0 1 2 0 1 2 0 1 2 0 1 2 0 1 2 0 1 2 0 1 2 0 1 2 0 1 2 0 1
2 0 1 2 0 1 2 0 1 2 0 1 2 0 1 2 0 1 2 0 1 2 0 1 2 0 1 2 0 1 2 0 1 2 0 1 2 0
1 2 0 1 2 0 1 2 0 1 2 0 1 2 0 1 2 0 1 2 0 1 2 0 1 2 0 1 2 0 1 2 0 1 2 0 1 2
0 1 2 0 1 2 0 1 2 0 0 0 0 0

I have initialized 3 queues on this NIC(82599-Niantic) and as can be seen,
NIC will forward traffic to queue's 1 & 2.

Now the reta table is modified so that everything goes to queue 0

*Modified* Reta table:
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0

However despite this, RSS is loadbalancing packets on queues 1 & 2.

The following is a snippet of my code:
          /*
         * Rewrite the RETA(Redirection Table) for RSS
         * We want all traffic to be RX'd on queue 0
         * and only filtered traffic to be mapped to specific
         * queues, with one per filter for us to report
         * statistics
         */

        struct rte_eth_rss_reta port_reta_conf;
        memset(&port_reta_conf,0,sizeof(struct rte_eth_rss_reta));
        port_reta_conf.mask_lo = 0xffffffffffffffff;
        port_reta_conf.mask_hi = 0xfffffffffffffff;
        int reta_ret = 0;
        for (int rc = 0; rc < ETH_RSS_RETA_NUM_ENTRIES; rc++) {
                port_reta_conf.reta[rc] = 0x00;
            }
        reta_ret = rte_eth_dev_rss_reta_update(port, &port_reta_conf);

        printf("Reta return code: %d\n", reta_ret);


I have tried to restart the port, start/stop, linkup/linkdown but the
effect is the same: Reta table shows that it has all been zero'd out
however packets are still send to all configured queues. I am using DPDK
v1.7.0

Have others come across something similar? Any clues would be much
appreciated :)

--Kam

                 reply	other threads:[~2015-01-19 16:03 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=CAPrTskicXGS_jRkJpeyuz+Wj-Pg2iGPkTDeP6rdBca-82cB49Q@mail.gmail.com \
    --to=knasim@sidebandnetworks.com \
    --cc=dev@dpdk.org \
    /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).