]> git.proxmox.com Git - mirror_ovs.git/commit
netdev-dpdk.c: Add generic policer functions.
authorIan Stokes <ian.stokes@intel.com>
Tue, 24 May 2016 16:36:50 +0000 (17:36 +0100)
committerDaniele Di Proietto <diproiettod@vmware.com>
Tue, 24 May 2016 20:34:23 +0000 (13:34 -0700)
commitf3926f297bd94f956eb93240a3034f16face7222
tree4ce8beac8eb54bdedba701e3258fda80773f92bb
parent2c66ebe47a88e405ac9d0aea6bdbfcd6558724b4
netdev-dpdk.c: Add generic policer functions.

Add generic policer functions to avoid code duplication.

Policing can be implemented on both egress and ingress paths.
Currently the QoS egress-policer implementation uses it's own specific run
and packet handle policer functions. This patch makes the policer functions
generic so that they can be used regardless of whether the policer is egress
or ingress by just requiring a pointer to the rte_meter used for policing
to be passed.

Signed-off-by: Ian Stokes <ian.stokes@intel.com>
Signed-off-by: Daniele Di Proietto <diproiettod@vmware.com>
lib/netdev-dpdk.c