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 12AC1959 for ; Wed, 25 Feb 2015 12:29:56 +0100 (CET) Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga103.fm.intel.com with ESMTP; 25 Feb 2015 03:21:55 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.09,644,1418112000"; d="scan'208";a="690516555" Received: from unknown (HELO [10.217.248.122]) ([10.217.248.122]) by orsmga002.jf.intel.com with ESMTP; 25 Feb 2015 03:29:55 -0800 Message-ID: <54EDB207.6010607@intel.com> Date: Wed, 25 Feb 2015 12:29:11 +0100 From: Pawel Wodkowski User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.4.0 MIME-Version: 1.0 To: "Ouyang, Changchun" , "dev@dpdk.org" References: <1421672551-11652-1-git-send-email-pawelx.wodkowski@intel.com> <1424361289-30718-1-git-send-email-pawelx.wodkowski@intel.com> <1424361289-30718-6-git-send-email-pawelx.wodkowski@intel.com> In-Reply-To: Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [dpdk-dev] [PATCH v4 5/7] pmd ixgbe: enable DCB in SRIOV 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, 25 Feb 2015 11:29:57 -0000 On 2015-02-25 04:36, Ouyang, Changchun wrote: >> @@ -652,7 +655,9 @@ ixgbe_get_vf_queues(struct rte_eth_dev *dev, >> >uint32_t vf, uint32_t *msgbuf) { >> > struct ixgbe_vf_info *vfinfo = >> > *IXGBE_DEV_PRIVATE_TO_P_VFDATA(dev->data- >>> > >dev_private); >> >- uint32_t default_q = vf * >> >RTE_ETH_DEV_SRIOV(dev).nb_tx_q_per_pool; >> >+ struct ixgbe_dcb_config *dcbinfo = >> >+ IXGBE_DEV_PRIVATE_TO_DCB_CFG(dev->data- >>> > >dev_private); >> >+ uint32_t default_q = RTE_ETH_DEV_SRIOV(dev).def_pool_q_idx; > Why need change the default_q here? > Because this field holds default queue index. -- Pawel