mirror of
https://github.com/openvswitch/ovs
synced 2025-08-30 22:05:19 +00:00
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 <gaofeng@cn.fujitsu.com> Signed-off-by: Thomas Graf <tgraf@noironetworks.com>
This commit is contained in:
@@ -645,6 +645,7 @@ destroy_all_channels(struct dpif_netlink *dpif)
|
||||
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_netlink_vport_transact(&vport_request, NULL, NULL);
|
||||
|
||||
|
Reference in New Issue
Block a user