From: Wenzhuo Lu Date: Thu, 13 Apr 2017 08:21:18 +0000 (+0800) Subject: net/i40e: add more explanation for QoS APIs X-Git-Tag: spdx-start~3539 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=0011c826285df171b807bca760caa9ed0af000a9;p=dpdk.git net/i40e: add more explanation for QoS APIs 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 --- diff --git a/drivers/net/i40e/rte_pmd_i40e.h b/drivers/net/i40e/rte_pmd_i40e.h index 8e15630834..22a5c649f0 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.