All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] net/i40e: add more explanation for QoS APIs
@ 2017-04-13  8:21 Wenzhuo Lu
  2017-04-13 10:25 ` Ferruh Yigit
  0 siblings, 1 reply; 4+ messages in thread
From: Wenzhuo Lu @ 2017-04-13  8:21 UTC (permalink / raw)
  To: dev; +Cc: Wenzhuo Lu

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 <wenzhuo.lu@intel.com>
---
 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

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH] net/i40e: add more explanation for QoS APIs
  2017-04-13  8:21 [PATCH] net/i40e: add more explanation for QoS APIs Wenzhuo Lu
@ 2017-04-13 10:25 ` Ferruh Yigit
  2017-04-14  3:07   ` Pei, Yulong
  0 siblings, 1 reply; 4+ messages in thread
From: Ferruh Yigit @ 2017-04-13 10:25 UTC (permalink / raw)
  To: Wenzhuo Lu, dev

On 4/13/2017 9:21 AM, Wenzhuo Lu wrote:
> 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 <wenzhuo.lu@intel.com>

Applied to dpdk-next-net/master, thanks.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] net/i40e: add more explanation for QoS APIs
  2017-04-13 10:25 ` Ferruh Yigit
@ 2017-04-14  3:07   ` Pei, Yulong
  2017-04-14  4:50     ` Lu, Wenzhuo
  0 siblings, 1 reply; 4+ messages in thread
From: Pei, Yulong @ 2017-04-14  3:07 UTC (permalink / raw)
  To: Yigit, Ferruh, Lu, Wenzhuo, dev

testpmd> set vf tx max-bandwidth (port_id) (vf_id) (bandwidth)

bandwidth(Mbps)

I think that  Mbps usually  refer to physical layers.

Bet Regards
Yulong Pei

-----Original Message-----
From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Ferruh Yigit
Sent: Thursday, April 13, 2017 6:26 PM
To: Lu, Wenzhuo <wenzhuo.lu@intel.com>; dev@dpdk.org
Subject: Re: [dpdk-dev] [PATCH] net/i40e: add more explanation for QoS APIs

On 4/13/2017 9:21 AM, Wenzhuo Lu wrote:
> 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 <wenzhuo.lu@intel.com>

Applied to dpdk-next-net/master, thanks.


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] net/i40e: add more explanation for QoS APIs
  2017-04-14  3:07   ` Pei, Yulong
@ 2017-04-14  4:50     ` Lu, Wenzhuo
  0 siblings, 0 replies; 4+ messages in thread
From: Lu, Wenzhuo @ 2017-04-14  4:50 UTC (permalink / raw)
  To: Pei, Yulong, Yigit, Ferruh, dev

Hi Yulong,

> -----Original Message-----
> From: Pei, Yulong
> Sent: Friday, April 14, 2017 11:07 AM
> To: Yigit, Ferruh; Lu, Wenzhuo; dev@dpdk.org
> Subject: RE: [dpdk-dev] [PATCH] net/i40e: add more explanation for QoS APIs
> 
> testpmd> set vf tx max-bandwidth (port_id) (vf_id) (bandwidth)
> 
> bandwidth(Mbps)
> 
> I think that  Mbps usually  refer to physical layers.
When we talk about 10G port, this 10G means physical layer bandwidth. So your concern is reasonable. 
I'll change the "max-bandwidth" to "l2-max-bandwidth".

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2017-04-14  4:50 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-04-13  8:21 [PATCH] net/i40e: add more explanation for QoS APIs Wenzhuo Lu
2017-04-13 10:25 ` Ferruh Yigit
2017-04-14  3:07   ` Pei, Yulong
2017-04-14  4:50     ` Lu, Wenzhuo

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.