From mboxrd@z Thu Jan 1 00:00:00 1970 From: Cong Wang Subject: [Patch net-next v8 01/11] vxlan: defer vxlan init as late as possible Date: Fri, 17 May 2013 08:21:29 +0800 Message-ID: <1368750099-14086-2-git-send-email-amwang@redhat.com> References: <1368750099-14086-1-git-send-email-amwang@redhat.com> Cc: Stephen Hemminger , "David S. Miller" , Cong Wang To: netdev@vger.kernel.org Return-path: Received: from mx1.redhat.com ([209.132.183.28]:53629 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753982Ab3EQAVw (ORCPT ); Thu, 16 May 2013 20:21:52 -0400 In-Reply-To: <1368750099-14086-1-git-send-email-amwang@redhat.com> Sender: netdev-owner@vger.kernel.org List-ID: From: Cong Wang When vxlan is compiled as builtin, its init code runs before IPv6 init, this could cause problems if we create IPv6 socket in the latter patch. Cc: Stephen Hemminger Cc: David S. Miller Signed-off-by: Cong Wang --- drivers/net/vxlan.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/net/vxlan.c b/drivers/net/vxlan.c index ba81f3c..c1258c6 100644 --- a/drivers/net/vxlan.c +++ b/drivers/net/vxlan.c @@ -1662,7 +1662,7 @@ out2: out1: return rc; } -module_init(vxlan_init_module); +late_initcall(vxlan_init_module); static void __exit vxlan_cleanup_module(void) { -- 1.7.7.6