ofproto-dpif-upcall: Increase upcall stub size.
authorEthan Jackson <ethan@nicira.com>
Wed, 21 Aug 2013 19:56:53 +0000 (12:56 -0700)
committerEthan Jackson <ethan@nicira.com>
Wed, 21 Aug 2013 20:19:48 +0000 (13:19 -0700)
The existing upcall stub size is not large enough even for the
smallest miss upcalls.

Signed-off-by: Ethan Jackson <ethan@nicira.com>
Reported-by: Guolin Yang <gyang@nicira.com>
Acked-by: Ben Pfaff <blp@nicira.com>
ofproto/ofproto-dpif-upcall.h

index f742060..f597672 100644 (file)
@@ -66,7 +66,7 @@ struct upcall {
     /* Raw upcall plus data for keeping track of the memory backing it. */
     struct dpif_upcall dpif_upcall; /* As returned by dpif_recv() */
     struct ofpbuf upcall_buf;       /* Owns some data in 'dpif_upcall'. */
-    uint64_t upcall_stub[256 / 8];  /* Buffer to reduce need for malloc(). */
+    uint64_t upcall_stub[512 / 8];  /* Buffer to reduce need for malloc(). */
 };
 
 struct upcall *upcall_next(struct udpif *);