From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mike Rapoport Subject: Q: is it possible to use macvtap with lowerdev hotplug? Date: Thu, 10 Jan 2019 09:40:54 +0200 Message-ID: <20190110074053.GA32036@rapoport-lnx> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii To: netdev@vger.kernel.org Return-path: Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:43750 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726137AbfAJHlC (ORCPT ); Thu, 10 Jan 2019 02:41:02 -0500 Received: from pps.filterd (m0098404.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id x0A7eOp8054773 for ; Thu, 10 Jan 2019 02:41:01 -0500 Received: from e06smtp01.uk.ibm.com (e06smtp01.uk.ibm.com [195.75.94.97]) by mx0a-001b2d01.pphosted.com with ESMTP id 2px1cts5fc-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Thu, 10 Jan 2019 02:41:01 -0500 Received: from localhost by e06smtp01.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Thu, 10 Jan 2019 07:40:59 -0000 Received: from d06av24.portsmouth.uk.ibm.com (mk.ibm.com [9.149.105.60]) by b06cxnps4075.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id x0A7euYv3866910 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL) for ; Thu, 10 Jan 2019 07:40:56 GMT Received: from d06av24.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 276914203F for ; Thu, 10 Jan 2019 07:40:56 +0000 (GMT) Received: from d06av24.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id E1F9C42042 for ; Thu, 10 Jan 2019 07:40:55 +0000 (GMT) Received: from rapoport-lnx (unknown [9.148.8.152]) by d06av24.portsmouth.uk.ibm.com (Postfix) with ESMTPS for ; Thu, 10 Jan 2019 07:40:55 +0000 (GMT) Content-Disposition: inline Sender: netdev-owner@vger.kernel.org List-ID: Hi, I have a setup in which VMs are connected with macvtap to the network. The macvtap interfaces are attached to a physical NIC. There is a question if it is possible to hot-unplug - hot-plug the physical NIC and retain the VMs connectivity to the network (of course with some hiccup for the unplug-plug time). As far as I could tell from the macvtap/macvlan code, once lowerdev is gone there is nothing that can be done to reattach macvlan/macvtap to another lowerdev. My question is there something fundamental that prevents it? -- Sincerely yours, Mike.