From: Justin Pettit Date: Sat, 16 Jan 2010 01:27:28 +0000 (-0800) Subject: netdev: Increase default ingress policing burst size X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d5cdde1f96992d0ba53f69eedaf4d089ded2a677;p=openvswitch 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. --- diff --git a/lib/netdev-linux.c b/lib/netdev-linux.c index d45349b2..ca452b59 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 1c555a4f..337b116f 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.",