2014-07-27 17:26:58 -07:00
|
|
|
EXTRA_DIST += \
|
|
|
|
datapath-windows/Package/package.VcxProj \
|
|
|
|
datapath-windows/Package/package.VcxProj.user \
|
2014-08-19 13:51:51 -07:00
|
|
|
datapath-windows/include/OvsDpInterfaceExt.h \
|
2016-07-01 13:49:25 -07:00
|
|
|
datapath-windows/include/OvsDpInterfaceCtExt.h \
|
2019-04-03 20:48:03 +03:00
|
|
|
datapath-windows/misc/DriverRecommendedRules.ruleset \
|
2015-12-11 19:18:25 +00:00
|
|
|
datapath-windows/misc/OVS.psm1 \
|
2014-07-27 17:26:58 -07:00
|
|
|
datapath-windows/misc/install.cmd \
|
|
|
|
datapath-windows/misc/uninstall.cmd \
|
2014-08-05 20:25:37 +00:00
|
|
|
datapath-windows/ovsext.sln \
|
2014-08-29 04:06:48 +00:00
|
|
|
datapath-windows/ovsext/Actions.c \
|
2016-03-25 14:49:27 +00:00
|
|
|
datapath-windows/ovsext/Actions.h \
|
2014-08-29 04:06:48 +00:00
|
|
|
datapath-windows/ovsext/Atomic.h \
|
|
|
|
datapath-windows/ovsext/BufferMgmt.c \
|
|
|
|
datapath-windows/ovsext/BufferMgmt.h \
|
2016-12-16 14:28:11 -08:00
|
|
|
datapath-windows/ovsext/Conntrack-ftp.c \
|
2016-11-11 14:40:44 -08:00
|
|
|
datapath-windows/ovsext/Conntrack-icmp.c \
|
2016-06-20 18:15:22 -07:00
|
|
|
datapath-windows/ovsext/Conntrack-other.c \
|
2016-12-16 14:28:11 -08:00
|
|
|
datapath-windows/ovsext/Conntrack-related.c \
|
2017-06-09 15:16:05 -07:00
|
|
|
datapath-windows/ovsext/Conntrack-nat.c \
|
2016-04-13 11:54:03 -07:00
|
|
|
datapath-windows/ovsext/Conntrack-tcp.c \
|
2017-06-09 15:16:05 -07:00
|
|
|
datapath-windows/ovsext/Conntrack-nat.h \
|
2016-04-13 11:54:03 -07:00
|
|
|
datapath-windows/ovsext/Conntrack.c \
|
|
|
|
datapath-windows/ovsext/Conntrack.h \
|
2015-12-11 19:18:25 +00:00
|
|
|
datapath-windows/ovsext/Datapath.c \
|
|
|
|
datapath-windows/ovsext/Datapath.h \
|
2014-08-29 04:06:48 +00:00
|
|
|
datapath-windows/ovsext/Debug.c \
|
|
|
|
datapath-windows/ovsext/Debug.h \
|
2015-12-11 19:18:25 +00:00
|
|
|
datapath-windows/ovsext/DpInternal.h\
|
2014-08-29 04:06:48 +00:00
|
|
|
datapath-windows/ovsext/Driver.c \
|
|
|
|
datapath-windows/ovsext/Ethernet.h \
|
|
|
|
datapath-windows/ovsext/Event.c \
|
|
|
|
datapath-windows/ovsext/Event.h \
|
|
|
|
datapath-windows/ovsext/Flow.c \
|
|
|
|
datapath-windows/ovsext/Flow.h \
|
2015-12-11 19:18:25 +00:00
|
|
|
datapath-windows/ovsext/Gre.h \
|
|
|
|
datapath-windows/ovsext/Gre.c \
|
2017-05-04 15:12:50 -07:00
|
|
|
datapath-windows/ovsext/IpFragment.c \
|
|
|
|
datapath-windows/ovsext/IpFragment.h \
|
2022-08-16 19:14:32 +08:00
|
|
|
datapath-windows/ovsext/Ip6Fragment.c \
|
|
|
|
datapath-windows/ovsext/Ip6Fragment.h \
|
2014-08-29 04:06:48 +00:00
|
|
|
datapath-windows/ovsext/IpHelper.c \
|
|
|
|
datapath-windows/ovsext/IpHelper.h \
|
|
|
|
datapath-windows/ovsext/Jhash.c \
|
|
|
|
datapath-windows/ovsext/Jhash.h \
|
2016-02-02 10:41:27 +00:00
|
|
|
datapath-windows/ovsext/Mpls.h \
|
datapath-windows: support meter action initial version
This patch implemented meter action, currently, meter only support drop
method and only support one band. The overall implementation is, when a
packet comes in, it will first lookup meter according to the meter id,
then get the band->rates and delta time since last access the same meter
from the meter struct. Add the multiply result(band->rates * delta_time)
to bucket, finally bucket minus the packet size, if the result larger
than zero, allow the packet go through, otherwise deny the packet go
through.
Test case:
1. Setting the size meter size 3M, then the bandwidth was limit
around 3M;
ovs-ofctl -O OpenFlow13 add-meter br-test meter=2,kbps,\
band=type=drop,rate=3000
ovs-ofctl add-flow br-test "table=0,priority=1,ip \
actions=meter:2,normal" -O OpenFlow13
2. Setting the meter size 8M, then the bandwidth was limit
around 8M;
ovs-ofctl -O OpenFlow13 add-meter br-test meter=2,\
kbps,band=type=drop,rate=8000
ovs-ofctl add-flow br-test "table=0,priority=1,ip\
actions=meter:2,normal" -O OpenFlow13
Signed-off-by: ldejing <ldejing@vmware.com>
Signed-off-by: Alin-Gabriel Serdean <aserdean@ovn.org>
2022-08-18 19:11:00 +08:00
|
|
|
datapath-windows/ovsext/Meter.c \
|
|
|
|
datapath-windows/ovsext/Meter.h \
|
2015-12-11 19:18:25 +00:00
|
|
|
datapath-windows/ovsext/NetProto.h \
|
2014-09-03 16:32:55 -07:00
|
|
|
datapath-windows/ovsext/Netlink/Netlink.c \
|
|
|
|
datapath-windows/ovsext/Netlink/Netlink.h \
|
2014-09-03 16:33:05 -07:00
|
|
|
datapath-windows/ovsext/Netlink/NetlinkBuf.c \
|
|
|
|
datapath-windows/ovsext/Netlink/NetlinkBuf.h \
|
2014-09-25 21:22:22 +00:00
|
|
|
datapath-windows/ovsext/Netlink/NetlinkError.h \
|
2014-09-03 16:32:55 -07:00
|
|
|
datapath-windows/ovsext/Netlink/NetlinkProto.h \
|
2016-02-11 01:38:54 +00:00
|
|
|
datapath-windows/ovsext/Offload.c \
|
|
|
|
datapath-windows/ovsext/Offload.h \
|
2014-08-29 04:06:48 +00:00
|
|
|
datapath-windows/ovsext/Oid.c \
|
|
|
|
datapath-windows/ovsext/Oid.h \
|
|
|
|
datapath-windows/ovsext/PacketIO.c \
|
|
|
|
datapath-windows/ovsext/PacketIO.h \
|
|
|
|
datapath-windows/ovsext/PacketParser.c \
|
|
|
|
datapath-windows/ovsext/PacketParser.h \
|
2016-03-25 14:49:27 +00:00
|
|
|
datapath-windows/ovsext/Recirc.c \
|
|
|
|
datapath-windows/ovsext/Recirc.h \
|
2015-12-11 19:18:25 +00:00
|
|
|
datapath-windows/ovsext/Stt.c \
|
|
|
|
datapath-windows/ovsext/Stt.h \
|
|
|
|
datapath-windows/ovsext/Switch.c \
|
2014-08-29 04:06:48 +00:00
|
|
|
datapath-windows/ovsext/Switch.h \
|
|
|
|
datapath-windows/ovsext/Tunnel.c \
|
|
|
|
datapath-windows/ovsext/Tunnel.h \
|
|
|
|
datapath-windows/ovsext/TunnelFilter.c \
|
|
|
|
datapath-windows/ovsext/TunnelIntf.h \
|
|
|
|
datapath-windows/ovsext/Types.h \
|
|
|
|
datapath-windows/ovsext/User.c \
|
|
|
|
datapath-windows/ovsext/User.h \
|
2015-12-11 19:18:25 +00:00
|
|
|
datapath-windows/ovsext/Util.c \
|
2014-08-29 04:06:48 +00:00
|
|
|
datapath-windows/ovsext/Util.h \
|
|
|
|
datapath-windows/ovsext/Vport.c \
|
|
|
|
datapath-windows/ovsext/Vport.h \
|
|
|
|
datapath-windows/ovsext/Vxlan.c \
|
|
|
|
datapath-windows/ovsext/Vxlan.h \
|
2016-06-24 14:44:30 -07:00
|
|
|
datapath-windows/ovsext/Geneve.c \
|
|
|
|
datapath-windows/ovsext/Geneve.h \
|
2014-07-27 17:26:58 -07:00
|
|
|
datapath-windows/ovsext/ovsext.inf \
|
|
|
|
datapath-windows/ovsext/ovsext.rc \
|
|
|
|
datapath-windows/ovsext/ovsext.vcxproj \
|
|
|
|
datapath-windows/ovsext/ovsext.vcxproj.user \
|
|
|
|
datapath-windows/ovsext/precomp.h \
|
2015-07-15 11:27:16 -07:00
|
|
|
datapath-windows/ovsext/precompsrc.c \
|
|
|
|
datapath-windows/ovsext/resource.h
|
2017-05-23 17:59:07 +00:00
|
|
|
|
|
|
|
datapath_windows_analyze: all
|
2019-04-03 20:48:03 +03:00
|
|
|
MSBuild.exe //nologo //maxcpucount datapath-windows/ovsext.sln /target:Build /property:Configuration="Win10Analyze"
|
2017-11-06 12:11:58 +02:00
|
|
|
MSBuild.exe //nologo //maxcpucount datapath-windows/ovsext.sln /target:Build /property:Configuration="Win8.1Analyze"
|
|
|
|
MSBuild.exe //nologo //maxcpucount datapath-windows/ovsext.sln /target:Build /property:Configuration="Win8Analyze"
|
2020-09-24 09:18:39 +03:00
|
|
|
|
|
|
|
datapath_windows: all
|
|
|
|
MSBuild.exe //nologo //maxcpucount datapath-windows/ovsext.sln /target:Build /property:Configuration="Win10Debug"
|
|
|
|
MSBuild.exe //nologo //maxcpucount datapath-windows/ovsext.sln /target:Build /property:Configuration="Win10Release"
|