From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wg0-f51.google.com (mail-wg0-f51.google.com [74.125.82.51]) by dpdk.org (Postfix) with ESMTP id 7DC985952 for ; Sun, 4 Jan 2015 09:49:34 +0100 (CET) Received: by mail-wg0-f51.google.com with SMTP id x12so25990404wgg.10 for ; Sun, 04 Jan 2015 00:49:32 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:message-id:date:from:user-agent:mime-version:to :subject:references:in-reply-to:content-type :content-transfer-encoding; bh=NfJODTEE4oiB1mer69sZ0BtoHrlHwk7BZUkoRyNRgFs=; b=D8t9nwZFfhXMA0ucVNCKSzYk0III/Wty2JF4vkfmD/THLdPez/nW3MBFaUtjq8hfW1 hnOHFJOZn0psOseda2e8Vcec5GopXCNNeMRg8QsdffG7PZbBUHJv+hl4Xmm33hDC6VjL 4eZo8mDeVw0Gq3sK2/XcW+eJwa5WaHS43dsBA0AeWL12c3FxHaRTeEQIAbIqrME54KU2 Qp3/rlOCsiTX+W2Vgvkv9ZElbuAoGUsI7gT8HUY0vX37tKW/VkvnUQLJI+QMBJY2tzg3 D+g0tOQq+20XUYNkaftNoB9zm2dfTs8CirsZ0G3uurQZaybYFCySpLD6WijMdVeKOgbZ lYdA== X-Gm-Message-State: ALoCoQm4uQssaxWrpqNtAthnpUwPm/p3a5fNLjGpeZRESMdnDULkDyqmvrgHAdk2D2vY3/uJkBJI X-Received: by 10.194.7.103 with SMTP id i7mr48116248wja.53.1420361372876; Sun, 04 Jan 2015 00:49:32 -0800 (PST) Received: from [10.0.0.3] (bzq-79-179-0-199.red.bezeqint.net. [79.179.0.199]) by mx.google.com with ESMTPSA id eu15sm5279993wid.18.2015.01.04.00.49.31 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 04 Jan 2015 00:49:32 -0800 (PST) Message-ID: <54A8FE9A.60606@cloudius-systems.com> Date: Sun, 04 Jan 2015 10:49:30 +0200 From: Vlad Zolotarov User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.3.0 MIME-Version: 1.0 To: Ouyang Changchun , dev@dpdk.org References: <1419398584-19520-1-git-send-email-changchun.ouyang@intel.com> <1420355937-18484-1-git-send-email-changchun.ouyang@intel.com> <1420355937-18484-7-git-send-email-changchun.ouyang@intel.com> In-Reply-To: <1420355937-18484-7-git-send-email-changchun.ouyang@intel.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [dpdk-dev] [PATCH v4 6/6] testpmd: Set Rx VMDq RSS mode 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: Sun, 04 Jan 2015 08:49:34 -0000 On 01/04/15 09:18, Ouyang Changchun wrote: > Set VMDq RSS mode if it has VF(VF number is more than 1) and has RSS information. > > Signed-off-by: Changchun Ouyang > --- > app/test-pmd/testpmd.c | 10 ++++++++++ > 1 file changed, 10 insertions(+) > > diff --git a/app/test-pmd/testpmd.c b/app/test-pmd/testpmd.c > index 8c69756..6230f8b 100644 > --- a/app/test-pmd/testpmd.c > +++ b/app/test-pmd/testpmd.c > @@ -1708,6 +1708,16 @@ init_port_config(void) > port->dev_conf.rxmode.mq_mode = ETH_MQ_RX_NONE; > } > > + if (port->dev_info.max_vfs != 0) { > + if (port->dev_conf.rx_adv_conf.rss_conf.rss_hf != 0) > + port->dev_conf.rxmode.mq_mode = > + ETH_MQ_RX_VMDQ_RSS; > + else { > + port->dev_conf.rxmode.mq_mode = ETH_MQ_RX_NONE; > + port->dev_conf.txmode.mq_mode = ETH_MQ_TX_NONE; And what about the txmode.mq_mode when RSS is available (the :if" clause)? > + } > + } > + > port->rx_conf.rx_thresh = rx_thresh; > port->rx_conf.rx_free_thresh = rx_free_thresh; > port->rx_conf.rx_drop_en = rx_drop_en;