]> git.proxmox.com Git - mirror_ovs.git/commit
dpif-netdev: Simple DROP meter implementation.
authorJarno Rajahalme <jarno@ovn.org>
Thu, 23 Feb 2017 19:27:57 +0000 (11:27 -0800)
committerAndy Zhou <azhou@ovn.org>
Wed, 8 Mar 2017 21:09:44 +0000 (13:09 -0800)
commit4b27db644a8c8e8d2640f2913cbdfa7e4b78e788
treea32c21eef2d363e8e6434addf814d9185dedcada
parent076caa2fb077d7ef526fdad1bea62c7057555180
dpif-netdev: Simple DROP meter implementation.

Meters may be used by any flow, so some kind of locking must be used.
In this version we have an adaptive mutex for each meter, which may
not be optimal for DPDK.  However, this should serve as a basis for
further improvement.

A batch of packets is first tried as a whole, and only if some of the
meter bands are hit, we need to process the packets individually.

Signed-off-by: Jarno Rajahalme <jarno@ovn.org>
Signed-off-by: Andy Zhou <azhou@ovn.org>
lib/dpif-netdev.c
tests/dpif-netdev.at