From af83c480b11c6e64231a622cffa79ed58d79564e Mon Sep 17 00:00:00 2001 From: Gao feng Date: Thu, 22 Jan 2015 12:31:31 +0100 Subject: [PATCH] setup n_upcall_pids for vport_request when destroy all channels Setup the n_upcall_pids to 1, otherwise the OVS_VPORT_ATTR_UPCALL_PID nlattr will be incorrect. Signed-off-by: Gao feng Signed-off-by: Thomas Graf --- lib/dpif-linux.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/dpif-linux.c b/lib/dpif-linux.c index 79481f605..9eeb88938 100644 --- a/lib/dpif-linux.c +++ b/lib/dpif-linux.c @@ -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); -- 2.20.1