From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from compass.polito.it (compass.polito.it [130.192.55.110]) by dpdk.org (Postfix) with ESMTP id 19BFF2B98 for ; Mon, 11 Jul 2016 16:16:44 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by compass.polito.it (Postfix) with ESMTP id CBD431002D0 for ; Mon, 11 Jul 2016 16:16:43 +0200 (CEST) Authentication-Results: compass.polito.it (amavisd-new); dkim=pass (1024-bit key) reason="pass (just generated, assumed good)" header.d=studenti.polito.it DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d= studenti.polito.it; h=content-type:content-type:cc:to:subject :subject:message-id:date:date:from:from:references:in-reply-to :received:mime-version:received:received:received; s=y2k10; t= 1468246602; bh=Gow51aQE61QrzP6vaVZbziGiOJ87SF3hR539sKy6m5A=; b=r YkGwyBDgCH48JNeGRy57PputyhqyaTqslDeqwe1sCgY+8HaxoERqSw147cvbfElr d4RwIYgQSt7u7LTvw+J+eoaTyUnD/f78ZsbJSjzLYvu+6z8Ds2CemoKnFahcfnta bBfGMEjIqRmZ3fkbo3enBQRTkko21sLjWhoEkqgIyE= X-Virus-Scanned: amavisd-new at studenti.polito.it X-Spam-Flag: NO X-Spam-Score: -5.942 X-Spam-Level: X-Spam-Status: No, score=-5.942 tagged_above=-100 required=3.5 tests=[ALL_TRUSTED=-5, AWL=0.557, BAYES_00=-1.5, HTML_MESSAGE=0.001] autolearn=ham Received: from compass.polito.it ([127.0.0.1]) by localhost (compass.polito.it [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id DB3Zyn09bwiT for ; Mon, 11 Jul 2016 16:16:42 +0200 (CEST) Received: from mail-lf0-f46.google.com (mail-lf0-f46.google.com [209.85.215.46]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: s203403@studenti.polito.it) by compass.polito.it (Postfix) with ESMTPSA id 7CDD2100412 for ; Mon, 11 Jul 2016 16:16:42 +0200 (CEST) Received: by mail-lf0-f46.google.com with SMTP id f6so74723153lfg.0 for ; Mon, 11 Jul 2016 07:16:42 -0700 (PDT) X-Gm-Message-State: ALyK8tK9ek1HAXcrvRtyUhrJXoyrwzBRd8og7Lmx3N8yD4ALxt9Uw5CLySeBYRwMEHPRxHr1k8t/GH/ZdFzuxQ== X-Received: by 10.46.9.146 with SMTP id 140mr6039697ljj.3.1468246601980; Mon, 11 Jul 2016 07:16:41 -0700 (PDT) MIME-Version: 1.0 Received: by 10.25.5.207 with HTTP; Mon, 11 Jul 2016 07:16:41 -0700 (PDT) In-Reply-To: References: From: =?UTF-8?Q?Mauricio_V=C3=A1squez?= Date: Mon, 11 Jul 2016 16:16:41 +0200 X-Gmail-Original-Message-ID: Message-ID: To: dev@dpdk.org Cc: Jijiang Liu , Helin Zhang , Konstantin Ananyev , Jingjing Wu Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: Re: [dpdk-dev] Redirect all packets to a specific VM pool 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, 11 Jul 2016 14:16:44 -0000 Hello, To be more specific, what I am trying to do it to setup an environment where I have a physical NIC that has some Virtual Functions configured, then all the incoming traffic to the NIC should be forwarded to a specific Virtual Function. I was able to modify the "VMDQ and DCB Forwarding Sample Application" in order to forward all the traffic that does not match the filters to a specific rx queue, unfortunately when I try it with SR-IOV all the traffic goes the the physical function. My big question is: Is it possible to forward all the traffic to a specific Virtual Function? At least, is it supported by any NIC? Thank you very much for your help. PD: I CC'ed the ixgbe and i40e maintainers because those are the drivers that I am using. On Mon, Jul 4, 2016 at 11:03 AM, Mauricio V=C3=A1squez < mauricio.vasquezbernal@studenti.polito.it> wrote: > Hello, > > I have a setup with SR-IOV where I want to forward all the packets to a > specific VM pool. I found that in some Intel NICs it is possible to set a > field called default pool. (Flag DEF_PL within the PFVTCTL register). In > order to setup this using DPDK, I used the default_pool field in the > rte_eth_vmdq_rx_conf structure, something like this: > > .vmdq_rx_conf =3D > { > .nb_queue_pools =3D ETH_8_POOLS, > .enable_default_pool =3D 1, > .default_pool =3D 5, > .nb_pool_maps =3D 1, > .pool_map =3D {{0, 0},}, > }, > > However it appears not to be working, all the packets are being forwarded > to the host pool. > > Am I missing something? > Is there a better approach to reach my goal? > > Thank you very much for your help. > > Mauricio V. >