From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ernst.netinsight.se (ernst.netinsight.se [194.16.221.21]) by dpdk.org (Postfix) with SMTP id D84368E82 for ; Tue, 20 Oct 2015 14:20:41 +0200 (CEST) Received: from [10.100.1.152] (unverified [10.100.1.152]) by ernst.netinsight.se (EMWAC SMTPRS 0.83) with SMTP id ; Tue, 20 Oct 2015 14:20:37 +0200 To: thomas.monjalon@6wind.com From: =?UTF-8?Q?Simon_K=c3=a5gstr=c3=b6m?= Message-ID: <56263196.9020305@netinsight.net> Date: Tue, 20 Oct 2015 14:20:38 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Cc: dev@dpdk.org Subject: [dpdk-dev] Unit for tx_rate in rte_eth_set_queue_rate_limit? 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: Tue, 20 Oct 2015 12:20:42 -0000 Hi! What is the unit of the tx_rate parameter to the rte_eth_set_queue_rate_limit function? It's documented as /** * Set the rate limitation for a queue on an Ethernet device. * * @param port_id * The port identifier of the Ethernet device. * @param queue_idx * The queue id. * @param tx_rate * The tx rate allocated from the total link speed for this queue. * @return * - (0) if successful. * - (-ENOTSUP) if hardware doesn't support this feature. * - (-ENODEV) if *port_id* invalid. * - (-EINVAL) if bad parameter. */ int rte_eth_set_queue_rate_limit(uint8_t port_id, uint16_t queue_idx, uint16_t tx_rate); I parse this as meaning a percentage of total link speed, i.e., on a 10 Gbps link, 50 would mean 5Gbps, 10 means 1Gbps etc. Is this correct? // Simon