From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wi0-f178.google.com (mail-wi0-f178.google.com [209.85.212.178]) by dpdk.org (Postfix) with ESMTP id 2DEEE7F07 for ; Wed, 17 Dec 2014 09:46:45 +0100 (CET) Received: by mail-wi0-f178.google.com with SMTP id em10so15095056wid.17 for ; Wed, 17 Dec 2014 00:46:44 -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 :cc:subject:references:in-reply-to:content-type :content-transfer-encoding; bh=vxurJurpGuiyC/qvvpDeI/SPKg2RU8QFyugCYEyug14=; b=coWy6moH3FDq0leHSrh+xNV6TxCEPZn5TXjglrGcDI8qDI4dkLWBIGAHayYDmKAORD y6+vQhduwll/TjwlXWWZDrC7zIWSZkMSN7hz2VGNx48zLZp7TQMJBehihRbxEoJZlSUC 7ltH/6Dn638bS/WcUB/8OtNYYCNz5ulI6yoWzdzUh7kzZzwcKQKnj7aCMggIKh00hFqT eK4kUJku6v+RXonLnSxMndupI3NshD7prtvKP8wyBm0U0qoenuUfydHYn4MaaRZltpXe Km0UY0SD2m5HuXUuuJzUFEPVqVmzHGT7pnwM0uoc90ueLArnAk+dXbuASzcdmWXKy0qy XcLQ== X-Gm-Message-State: ALoCoQlQl7s1VnAVGCRKnwwl/f1/eWGXpkIs3lezLoyV1oev0n005caJQIcD4heojSsOJKdhpxOy X-Received: by 10.180.97.196 with SMTP id ec4mr11947165wib.71.1418806004824; Wed, 17 Dec 2014 00:46:44 -0800 (PST) Received: from [10.0.0.3] ([109.67.117.37]) by mx.google.com with ESMTPSA id dr3sm5242655wib.4.2014.12.17.00.46.43 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 17 Dec 2014 00:46:44 -0800 (PST) Message-ID: <549142F1.2060307@cloudius-systems.com> Date: Wed, 17 Dec 2014 10:46:41 +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" , Thomas Monjalon References: <6168753.p4Vk7dlKkK@xps13> <5490516C.8090202@cloudius-systems.com> In-Reply-To: Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Cc: "dev@dpdk.org" , Avi Kivity , Gleb Natapov Subject: Re: [dpdk-dev] DPDK RSS support for ixgbevf PMD 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: Wed, 17 Dec 2014 08:46:45 -0000 On 12/17/14 03:03, Ouyang, Changchun wrote: > Hi , > >> -----Original Message----- >> From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Vlad Zolotarov >> Sent: Tuesday, December 16, 2014 11:36 PM >> To: Thomas Monjalon >> Cc: dev@dpdk.org; Avi Kivity; Gleb Natapov >> Subject: Re: [dpdk-dev] DPDK RSS support for ixgbevf PMD >> >> >> On 12/15/14 22:33, Thomas Monjalon wrote: >>> 2014-12-15 21:11, Vladislav Zolotarov: >>>> Hi, >>>> I'm running an ixgbevf PMD on an AWS guests with extended networking >>>> (SR-IOV functions of 82599 Intel's NIC) and noticed that even in the >>>> current git tree there is no support for a multi-queue in this PMD: >>>> reta size returned by rte_eth_dev_info_get() call is 0, while >>>> max_rx_queues and max_tx_queues are both 4. >>>> >>>> Linux ixgbevf-2.15.3 driver on the other hand successfully >>>> initializes 2 RSS queues: for some reason it always limits the number of >> RSS queues by 2. >>>> ixgbevf_main.c: line 2539 >>>> u16 rss = min_t(u16, num_online_cpus(), 2); >>>> >>>> The above is strange since if MRQE is set to 1010b there are 4 RSS >>>> queues available which seems to be the case in my AWS Guest. >>>> >>>> However, let's get back to DPDK. As I've mentioned above the SR-IOV >>>> function i have is RSS capable (to be 100% sure I've verified both >>>> queues are receiving packets in a multi-socket TCP test). And it's a >>>> shame I can't utilize it with a DPDK. >>> Yes, it is not yet supported. >>> But a patch was recently sent: >>> http://dpdk.org/ml/archives/dev/2014-December/010028.html >> Applying this patchset seems to break the NIC fast path functionality of a >> AWS Guest NIC. >> I'm still debugging it - will update u as soon as I have more specific info. Hi, thanks for tips but I have a question below. > Pls make sure enabling and using 4 queues on guest Why should I enable all 4? Won't any number below or equal 4 work if (!) 4 queues are available? Note that there is a 82599 mode when only 2 RSS queues are available per VF: MRQE=1011b. > if you enable vf rss on host and if each vf has 4 queues, > The packet could be received and put in any of 4 queues on guest depend on hash value of the packet. > You could let packet IP address increased continuously and make those packets distribute to different queues. > > Thanks > Changchun