From d5cdde1f96992d0ba53f69eedaf4d089ded2a677 Mon Sep 17 00:00:00 2001 From: Justin Pettit Date: Fri, 15 Jan 2010 17:27:28 -0800 Subject: [PATCH] netdev: Increase default ingress policing burst size The default burst rate was 10Kb. This increases it to 1000kb, since we were having problems getting traffic through at 10kb. A better value probably exists between these two points, but that will require additional experimentation. --- lib/netdev-linux.c | 4 ++-- vswitchd/vswitch-idl.ovsidl | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/netdev-linux.c b/lib/netdev-linux.c index d45349b29..ca452b593 100644 --- a/lib/netdev-linux.c +++ b/lib/netdev-linux.c @@ -1543,8 +1543,8 @@ netdev_linux_set_policing(struct netdev *netdev, COVERAGE_INC(netdev_set_policing); if (kbits_rate) { if (!kbits_burst) { - /* Default to 10 kilobits if not specified. */ - kbits_burst = 10; + /* Default to 1000 kilobits if not specified. */ + kbits_burst = 1000; } /* xxx This should be more careful about only adding if it diff --git a/vswitchd/vswitch-idl.ovsidl b/vswitchd/vswitch-idl.ovsidl index 1c555a4f0..337b116f5 100644 --- a/vswitchd/vswitch-idl.ovsidl +++ b/vswitchd/vswitch-idl.ovsidl @@ -118,7 +118,7 @@ "comment": "Maximum rate for data received on this interface, in kbps. Set to 0 to disable policing.", "type": "integer"}, "ingress_policing_burst": { - "comment": "Maximum burst size for data received on this interface, in kb. The default burst size if set to 0 is 10 kb.", + "comment": "Maximum burst size for data received on this interface, in kb. The default burst size if set to 0 is 1000 kb.", "type": "integer"}, "mac": { "comment": "Ethernet address to set for this interface. If unset then the default MAC address is used. May not be supported on all interfaces. Exactly 12 hex digits in the form XX:XX:XX:XX:XX:XX.", -- 2.45.2