From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by dpdk.org (Postfix) with ESMTP id 19990316B for ; Fri, 9 Dec 2016 12:56:34 +0100 (CET) Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by orsmga102.jf.intel.com with ESMTP; 09 Dec 2016 03:56:33 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.33,324,1477983600"; d="scan'208";a="40811540" Received: from fyigit-mobl1.ger.corp.intel.com (HELO [10.237.220.29]) ([10.237.220.29]) by fmsmga006.fm.intel.com with ESMTP; 09 Dec 2016 03:56:32 -0800 To: Bernard Iremonger , thomas.monjalon@6wind.com, dev@dpdk.org References: <1481282878-26176-1-git-send-email-bernard.iremonger@intel.com> <1481282878-26176-3-git-send-email-bernard.iremonger@intel.com> From: Ferruh Yigit Message-ID: Date: Fri, 9 Dec 2016 11:56:31 +0000 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.5.1 MIME-Version: 1.0 In-Reply-To: <1481282878-26176-3-git-send-email-bernard.iremonger@intel.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Subject: Re: [dpdk-dev] [PATCH v1 2/5] app/testpmd: use ixgbe public functions X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Dec 2016 11:56:35 -0000 On 12/9/2016 11:27 AM, Bernard Iremonger wrote: > Use the the following ixgbe public functions: > > rte_pmd_ixgbe_set_vf_rate_limit > rte_pmd_ixgbe_set_vf_rx > rte_pmd_ixgbe_set_vf_rxmode > rte_pmd_ixgbe_set_vf_tx > rte_pmd_ixgbe_set_vf_vlan_filter > > Signed-off-by: Bernard Iremonger <...> > @@ -2388,23 +2391,11 @@ int > set_vf_rate_limit(portid_t port_id, uint16_t vf, uint16_t rate, uint64_t q_msk) > { > int diag; > - struct rte_eth_link link; > - > - if (q_msk == 0) > - return 0; > > - if (port_id_is_invalid(port_id, ENABLED_WARN)) > - return 1; > - rte_eth_link_get_nowait(port_id, &link); > - if (rate > link.link_speed) { > - printf("Invalid rate value:%u bigger than link speed: %u\n", > - rate, link.link_speed); > - return 1; > - } Why these changes required? Isn't only change is location and naming of the ...set_vf_rate_limit() ? > - diag = rte_eth_set_vf_rate_limit(port_id, vf, rate, q_msk); > + diag = rte_pmd_ixgbe_set_vf_rate_limit(port_id, vf, rate, q_msk); > if (diag == 0) > return diag; > - printf("rte_eth_set_vf_rate_limit for port_id=%d failed diag=%d\n", > + printf("rte_pmd_ixgbe_set_vf_rate_limit for port_id=%d failed diag=%d\n", > port_id, diag); > return diag; > } >