debian: Strip epoch from version number used in directory names.
[openvswitch] / datapath / dp_notify.c
index 7b3b219ac2a97fcd1f0f7a8b4a2826e7231b01a4..07fd222de297d20812f83a7d89407ed6ec66b249 100644 (file)
@@ -37,9 +37,9 @@ static int dp_device_event(struct notifier_block *unused, unsigned long event,
                if (!is_internal_dev(dev)) {
                        struct sk_buff *reply;
 
-                       dp_detach_port(vport);
                        reply = ovs_vport_cmd_build_info(vport, 0, 0,
                                                         OVS_VPORT_CMD_DEL);
+                       dp_detach_port(vport);
                        if (IS_ERR(reply)) {
                                netlink_set_err(INIT_NET_GENL_SOCK, 0,
                                                dp_vport_multicast_group.id,
@@ -59,11 +59,6 @@ static int dp_device_event(struct notifier_block *unused, unsigned long event,
                        dp_sysfs_add_if(vport);
                }
                break;
-
-       case NETDEV_CHANGEMTU:
-               if (!is_internal_dev(dev))
-                       set_internal_devs_mtu(dp);
-               break;
        }
        return NOTIFY_DONE;
 }