Re: [dpdk-dev] [PATCH V3 3/5] ethdev: add new api for traffic metering and policing

2017-10-13 Thread Dumitrescu, Cristian
> -Original Message- > From: Hemant Agrawal [mailto:hemant.agra...@nxp.com] > Sent: Thursday, October 12, 2017 11:49 AM > To: Dumitrescu, Cristian ; dev@dpdk.org > Cc: tho...@monjalon.net; adrien.mazarg...@6wind.com; Wu, Jingjing > ; jerin.ja...@caviumnetworks.com; Singh, > Jasvinder > S

Re: [dpdk-dev] [PATCH V3 3/5] ethdev: add new api for traffic metering and policing

2017-10-12 Thread Hemant Agrawal
On 10/12/2017 4:18 PM, Hemant Agrawal wrote: On 10/6/2017 8:15 PM, Cristian Dumitrescu wrote: Overall the patch looks ok. Few small comments. diff --git a/lib/librte_ether/rte_mtr.h b/lib/librte_ether/rte_mtr.h new file mode 100644 index 000..f0f897f --- /dev/null +++ b/lib/librte_ether/rt

Re: [dpdk-dev] [PATCH V3 3/5] ethdev: add new api for traffic metering and policing

2017-10-12 Thread Hemant Agrawal
On 10/6/2017 8:15 PM, Cristian Dumitrescu wrote: Overall the patch looks ok. Few small comments. diff --git a/lib/librte_ether/rte_mtr.h b/lib/librte_ether/rte_mtr.h new file mode 100644 index 000..f0f897f --- /dev/null +++ b/lib/librte_ether/rte_mtr.h @@ -0,0 +1,723 @@ +/*- + * BSD LICEN

[dpdk-dev] [PATCH V3 3/5] ethdev: add new api for traffic metering and policing

2017-10-06 Thread Cristian Dumitrescu
This patch introduces new ethdev generic API for Traffic Metering and Policing (MTR), which is yet another standard RX offload for Ethernet devices. Similar to rte_flow and rte_tm APIs, the configuration of MTR objects is done in their own namespace (rte_mtr) within the librte_ether library. Main