From: Paul Emmerich Subject: Per-queue bandwidth limit on XL710 NICs? Date: Mon, 15 Feb 2016 18:34:51 +0100 Message-ID: <56C20C3B.8030403@net.in.tum.de> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit To: dev@dpdk.org 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) List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 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