Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754817AbaBSRNg (ORCPT ); Wed, 19 Feb 2014 12:13:36 -0500 Received: from mail-la0-f49.google.com ([209.85.215.49]:34657 "EHLO mail-la0-f49.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753968AbaBSRN3 (ORCPT ); Wed, 19 Feb 2014 12:13:29 -0500 MIME-Version: 1.0 In-Reply-To: <20140218134257.667efe23@nehalam.linuxnetplumber.net> References: <1392433180-16052-1-git-send-email-mcgrof@do-not-panic.com> <1392433180-16052-3-git-send-email-mcgrof@do-not-panic.com> <1392668638.21106.5.camel@dcbw.local> <20140218134257.667efe23@nehalam.linuxnetplumber.net> From: "Luis R. Rodriguez" Date: Wed, 19 Feb 2014 09:13:07 -0800 X-Google-Sender-Auth: I1aEJ0YI7qnebgkJqw7BsLxSmyM Message-ID: Subject: Re: [RFC v2 2/4] net: enables interface option to skip IP To: Stephen Hemminger Cc: Dan Williams , "netdev@vger.kernel.org" , xen-devel@lists.xenproject.org, kvm@vger.kernel.org, "linux-kernel@vger.kernel.org" , "David S. Miller" , Alexey Kuznetsov , James Morris , Hideaki YOSHIFUJI , Patrick McHardy 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 Tue, Feb 18, 2014 at 1:42 PM, Stephen Hemminger wrote: > On Tue, 18 Feb 2014 13:19:15 -0800 > "Luis R. Rodriguez" wrote: > >> Sure, but note that the both disable_ipv6 and accept_dada sysctl >> parameters are global. ipv4 and ipv6 interfaces are created upon >> NETDEVICE_REGISTER, which will get triggered when a driver calls >> register_netdev(). The goal of this patch was to enable an early >> optimization for drivers that have no need ever for ipv4 or ipv6 >> interfaces. > > The trick with ipv6 is to register the device, then have userspace > do the ipv6 sysctl before bringing the device up. Nice, thanks! Luis -- 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/