netdev: Increase default ingress policing burst size
authorJustin Pettit <jpettit@nicira.com>
Sat, 16 Jan 2010 01:27:28 +0000 (17:27 -0800)
committerJustin Pettit <jpettit@nicira.com>
Sat, 16 Jan 2010 03:02:13 +0000 (19:02 -0800)
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
vswitchd/vswitch-idl.ovsidl

index d45349b..ca452b5 100644 (file)
@@ -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
index 1c555a4..337b116 100644 (file)
          "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.",