ofp-util: Also accept NXAST_DROP_SPOOFED_ARP.
[openvswitch] / lib / dpif-netdev.c
index 08a721340f6a6f205665a9c2d559609a982f0e3b..323f3641190467759ea9b84afd74666a6f3b96ea 100644 (file)
@@ -1262,8 +1262,7 @@ dp_netdev_output_control(struct dp_netdev *dp, const struct ofpbuf *packet,
     }
 
     msg_size = sizeof *header + packet->size;
-    msg = ofpbuf_new(msg_size + DPIF_RECV_MSG_PADDING);
-    ofpbuf_reserve(msg, DPIF_RECV_MSG_PADDING);
+    msg = ofpbuf_new_with_headroom(msg_size, DPIF_RECV_MSG_PADDING);
     header = ofpbuf_put_uninit(msg, sizeof *header);
     header->type = queue_no;
     header->length = msg_size;