All of lore.kernel.org
 help / color / mirror / Atom feed
From: Matthew Hall <mhall-Hv3ogNYU3JfZZajBQzqCxQ@public.gmane.org>
To: dev-VfR2kkLFssw@public.gmane.org
Subject: "TX WTHRESH must be set to 0 if tx_rs_thresh is greater than 1"
Date: Sat, 18 Oct 2014 15:50:02 -0700	[thread overview]
Message-ID: <20141018225002.GA17115@mhcomputing.net> (raw)

Hello,

I'm just trying to understand what you're supposed to do about this error to 
get the optiomal configuration / performance. The error message and comments 
seem like they're designed for Intel ethernet driver hackers not security 
hackers like myself! ;-)

Note: I'm trying out the Intel 82545EM in VirtualBox because the virtio-net 
approach didn't work, for reasons I enumerated in some previous mails.

    /*
     * If rs_bit_thresh is greater than 1, then TX WTHRESH should be
     * set to 0. If WTHRESH is greater than zero, the RS bit is ignored
     * by the NIC and all descriptors are written back after the NIC
     * accumulates WTHRESH descriptors.
     */
    if (tx_conf->tx_thresh.wthresh != 0 && tx_rs_thresh != 1) {
        RTE_LOG(ERR, PMD, "TX WTHRESH must be set to 0 if "
            "tx_rs_thresh is greater than 1. (tx_rs_thresh=%u "
            "port=%d queue=%d)\n", (unsigned int)tx_rs_thresh,
                (int)dev->data->port_id, (int)queue_idx);
        return -(EINVAL);
    }

Thanks,
Matthew.

             reply	other threads:[~2014-10-18 22:50 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-10-18 22:50 Matthew Hall [this message]
     [not found] ` <20141018225002.GA17115-Hv3ogNYU3JfZZajBQzqCxQ@public.gmane.org>
2014-10-19 13:46   ` "TX WTHRESH must be set to 0 if tx_rs_thresh is greater than 1" Marc Sune
     [not found]     ` <5443C0B3.6060805-kpkqNMk1I7M@public.gmane.org>
2014-10-19 17:08       ` Matthew Hall
     [not found]         ` <5809CF89-13EB-4698-B4B4-AFD41897DD33-Hv3ogNYU3JfZZajBQzqCxQ@public.gmane.org>
2014-10-20  9:36           ` Bruce Richardson
2014-10-20 20:29             ` Matthew Hall

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=20141018225002.GA17115@mhcomputing.net \
    --to=mhall-hv3ognyu3jfzzajbqzqcxq@public.gmane.org \
    --cc=dev-VfR2kkLFssw@public.gmane.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.