From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by dpdk.org (Postfix) with ESMTP id 4618E68FB for ; Mon, 20 Oct 2014 11:27:55 +0200 (CEST) Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga103.fm.intel.com with ESMTP; 20 Oct 2014 02:25:53 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.97,862,1389772800"; d="scan'208";a="402849740" Received: from bricha3-mobl.ger.corp.intel.com (HELO bricha3-mobl.ir.intel.com) ([10.243.20.25]) by FMSMGA003.fm.intel.com with SMTP; 20 Oct 2014 02:28:31 -0700 Received: by bricha3-mobl.ir.intel.com (sSMTP sendmail emulation); Mon, 20 Oct 2014 10:36:01 +0001 Date: Mon, 20 Oct 2014 10:36:01 +0100 From: Bruce Richardson To: Matthew Hall Message-ID: <20141020093601.GA13756@BRICHA3-MOBL> References: <20141018225002.GA17115@mhcomputing.net> <5443C0B3.6060805@bisdn.de> <5809CF89-13EB-4698-B4B4-AFD41897DD33@mhcomputing.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5809CF89-13EB-4698-B4B4-AFD41897DD33@mhcomputing.net> Organization: Intel Shannon Ltd. User-Agent: Mutt/1.5.23 (2014-03-12) Cc: dev@dpdk.org Subject: Re: [dpdk-dev] "TX WTHRESH must be set to 0 if tx_rs_thresh is greater than 1" X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 20 Oct 2014 09:27:55 -0000 On Sun, Oct 19, 2014 at 10:08:29AM -0700, Matthew Hall wrote: > 1.7.1 with a few minor clang compatibility patches in the example apps Rather than trying to tune the results yourself, maybe you could look to merge in the following patch set also, to offload responsibility for the driver settings to the driver itself. http://thread.gmane.org/gmane.comp.networking.dpdk.devel/6189 /Bruce > -- > Sent from my mobile device. > > On October 19, 2014 6:46:27 AM PDT, Marc Sune wrote: > >Which DPDK version are you using > > > >marc > > > >On 19/10/14 00:50, Matthew Hall wrote: > >> 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. >