dpif-netdev: Initialize upcall->packet when queuing to userspace.
authorBen Pfaff <blp@nicira.com>
Wed, 23 Jul 2014 04:06:44 +0000 (21:06 -0700)
committerBen Pfaff <blp@nicira.com>
Wed, 23 Jul 2014 05:30:03 +0000 (22:30 -0700)
commitb6f4590fa036e213fcceafdcb5aa64bcf5c3e5c0
tree2d0853b13c62108a7ac8c59fc72acd41cb33c27c
parente9fe2381ec863f85eb766ed5d309e22146d2fb04
dpif-netdev: Initialize upcall->packet when queuing to userspace.

Commit db73f7166a6 (netdev-dpdk: Fix race condition with DPDK mempools in
non pmd threads) switched to a new way of setting up 'upcall->packet', but
only initialized two of the fields in the packet.  This could cause
core dumps and other strange behavior.  In particular it caused failures in
several unit tests on XenServer.

This commit fixes the problem by initializing the entire ofpbuf.

Signed-off-by: Ben Pfaff <blp@nicira.com>
Acked-by: Justin Pettit <jpettit@nicira.com>
lib/dpif-netdev.c