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

Hemant Agrawal hemant.agrawal at nxp.com
Tue Oct 17 14:39:07 CEST 2017

On 10/13/2017 5:52 PM, Cristian Dumitrescu wrote:
> 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 features:
> 1. Traffic metering: determine the color for the current packet (green,
>    yellow, red) based on history maintained by the MTR object. Supported
>    algorithms: srTCM (RFC 2697), trTCM (RFC 2698 and RFC 4115).
> 2. Policing (per meter output color actions): re-color the packet (keep
>    or change the meter output color) or drop the packet.
> 3. Statistics
> 4. Capability API
> Signed-off-by: Cristian Dumitrescu <cristian.dumitrescu at intel.com>

Acked-by: Hemant Agrawal <hemant.agrawal at nxp.com>

More information about the dev mailing list