From 25a2af4fe952f6702b856d1381da217e3b6d2a57 Mon Sep 17 00:00:00 2001 From: Rui Cao Date: Mon, 15 Jun 2020 14:05:13 +0800 Subject: dpif-netlink: Fix Windows incompatibility when setting new feature OVS_DP_ATTR_NAME field is required when sending OVS_DP_CMD_SET to windows kernel driver. The function "dpif_netlink_set_features" dose not set the OVS_DP_ATTR_NAME field which will cause set feature failure and ovs-vswitchd will exist. This patch fixes the issue by setting "request.name" in request. Reported-at: https://github.com/openvswitch/ovs-issues/issues/187 Submitted-at: https://github.com/openvswitch/ovs/pull/319 Signed-off-by: Rui Cao Signed-off-by: Ben Pfaff --- lib/dpif-netlink.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/dpif-netlink.c b/lib/dpif-netlink.c index 8e08b3c1c..1817e9f84 100644 --- a/lib/dpif-netlink.c +++ b/lib/dpif-netlink.c @@ -691,6 +691,7 @@ dpif_netlink_set_features(struct dpif *dpif_, uint32_t new_features) dpif_netlink_dp_init(&request); request.cmd = OVS_DP_CMD_SET; + request.name = dpif_->base_name; request.dp_ifindex = dpif->dp_ifindex; request.user_features = dpif->user_features | new_features; -- cgit v1.2.1