From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by dpdk.org (Postfix) with ESMTP id 3B77C316B for ; Thu, 13 Apr 2017 10:21:02 +0200 (CEST) Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by fmsmga105.fm.intel.com with ESMTP; 13 Apr 2017 01:21:02 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.37,194,1488873600"; d="scan'208";a="248103388" Received: from dpdk26.sh.intel.com ([10.239.128.228]) by fmsmga004.fm.intel.com with ESMTP; 13 Apr 2017 01:21:01 -0700 From: Wenzhuo Lu To: dev@dpdk.org Cc: Wenzhuo Lu Date: Thu, 13 Apr 2017 16:21:18 +0800 Message-Id: <1492071678-68859-1-git-send-email-wenzhuo.lu@intel.com> X-Mailer: git-send-email 1.9.3 Subject: [dpdk-dev] [PATCH] net/i40e: add more explanation for QoS APIs 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: Thu, 13 Apr 2017 08:21:03 -0000 According to HW implementation, the bandwidth of QoS means the L2 bandwidth, not count the bytes added by physical layer. Signed-off-by: Wenzhuo Lu --- drivers/net/i40e/rte_pmd_i40e.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/drivers/net/i40e/rte_pmd_i40e.h b/drivers/net/i40e/rte_pmd_i40e.h index 8e15630..22a5c64 100644 --- a/drivers/net/i40e/rte_pmd_i40e.h +++ b/drivers/net/i40e/rte_pmd_i40e.h @@ -386,6 +386,9 @@ int rte_pmd_i40e_reset_vf_stats(uint8_t port, * ID specifying VF. * @param bw * Bandwidth for this VF. + * The value should be an absolute bandwidth in Mbps. + * The bandwidth is a L2 bandwidth counting the bytes of ethernet packets. + * Not count the bytes added by physical layer. * @return * - (0) if successful. * - (-ENODEV) if *port* invalid. @@ -433,6 +436,9 @@ int rte_pmd_i40e_set_vf_tc_bw_alloc(uint8_t port, * Number specifying TC. * @param bw * Max bandwidth for this TC. + * The value should be an absolute bandwidth in Mbps. + * The bandwidth is a L2 bandwidth counting the bytes of ethernet packets. + * Not count the bytes added by physical layer. * @return * - (0) if successful. * - (-ENODEV) if *port* invalid. -- 1.9.3