setup n_upcall_pids for vport_request when destroy all channels
authorGao feng <gaofeng@cn.fujitsu.com>
Thu, 22 Jan 2015 11:31:31 +0000 (12:31 +0100)
committerThomas Graf <tgraf@noironetworks.com>
Thu, 22 Jan 2015 11:31:58 +0000 (12:31 +0100)
Setup the n_upcall_pids to 1, otherwise the
OVS_VPORT_ATTR_UPCALL_PID nlattr will be incorrect.

Signed-off-by: Gao feng <gaofeng@cn.fujitsu.com>
Signed-off-by: Thomas Graf <tgraf@noironetworks.com>
lib/dpif-linux.c

index 79481f6..9eeb889 100644 (file)
@@ -484,6 +484,7 @@ destroy_all_channels(struct dpif_linux *dpif) OVS_REQ_WRLOCK(dpif->upcall_lock)
         vport_request.cmd = OVS_VPORT_CMD_SET;
         vport_request.dp_ifindex = dpif->dp_ifindex;
         vport_request.port_no = u32_to_odp(i);
+        vport_request.n_upcall_pids = 1;
         vport_request.upcall_pids = &upcall_pids;
         dpif_linux_vport_transact(&vport_request, NULL, NULL);