Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751842AbaGJKrU (ORCPT ); Thu, 10 Jul 2014 06:47:20 -0400 Received: from mail-qa0-f48.google.com ([209.85.216.48]:56202 "EHLO mail-qa0-f48.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751053AbaGJKrT (ORCPT ); Thu, 10 Jul 2014 06:47:19 -0400 MIME-Version: 1.0 X-Originating-IP: [84.208.72.173] In-Reply-To: <1404982886.30660.4.camel@hastur.hellion.org.uk> References: <1404980258-30853-1-git-send-email-teg@jklm.no> <1404980258-30853-16-git-send-email-teg@jklm.no> <1404982886.30660.4.camel@hastur.hellion.org.uk> From: Tom Gundersen Date: Thu, 10 Jul 2014 12:46:58 +0200 Message-ID: Subject: Re: [PATCH v7 15/33] net: xen-netback - set name assign type To: Ian Campbell Cc: netdev , LKML , David Miller , David Herrmann , Kay Sievers , Wei Liu , xen-devel Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jul 10, 2014 at 11:01 AM, Ian Campbell wrote: > On Thu, 2014-07-10 at 10:17 +0200, Tom Gundersen wrote: >> The name contains then xen handle, which is not guaranteed to be >> stable between restarts, so label this NET_NAME_ENUM. > > FWIW the N'th interface for domain with domid D will always be named > vifD.N. > > If you reboot domain D then it's domid will change to E and the new > device will be vifE.N. > > I don't know if that counts as predictable as far as the interface you > are introducing is concerned. That was my understanding, thanks for confirming. The idea is that the same interface on the same machine must get the same name between reboots in order to be considered predictable. So under the assumption that a rebooted domain should be considered "the same machine" (i.e., it still has the same local configuration, possibly referencing the interface names), then we should consider the names not predictable, so NET_NAME_ENUM. Cheers, Tom -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/