From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-out1.informatik.tu-muenchen.de (mail-out1.informatik.tu-muenchen.de [131.159.0.8]) by dpdk.org (Postfix) with ESMTP id 5F95D9A8D for ; Mon, 15 Feb 2016 18:34:52 +0100 (CET) Received: from [127.0.0.1] (localhost [127.0.0.1]) by mail.net.in.tum.de (Postfix) with ESMTPSA id 070BB282F03B for ; Mon, 15 Feb 2016 18:34:52 +0100 (CET) From: Paul Emmerich To: dev@dpdk.org Message-ID: <56C20C3B.8030403@net.in.tum.de> Date: Mon, 15 Feb 2016 18:34:51 +0100 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Subject: [dpdk-dev] Per-queue bandwidth limit on XL710 NICs? 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, 15 Feb 2016 17:34:52 -0000 Hi, I'm using the per-queue rate control feature found in ixgbe-style NICs (rte_eth_set_queue_rate_limit) quite extensively in my packet generator MoonGen. I've read some parts of the XL710 datasheet and I guess it should be possible to implement this for this chip. I think there are two ways to achieves this: 1) Limiting the main VSI and thus the whole port by calling i40e_aq_config_vsi_bw_limit() in the driver works fine. Thus, creating multiple VSIs for each rate-controlled queue would be a possible solution. I'm not sure if that works without major modifications to the driver. I probably need a VEB for that which currently isn't supported in the driver. 2) Use multiple TCs for the used VSI. That would limit us to 8 rate limits but that would be okay. Probably the simpler solution. Can anyone with more insight into the XL710 hardware give me some hints on implementing this? Paul