From patchwork Thu Nov 2 19:04:36 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Flavio Leitner X-Patchwork-Id: 833503 X-Patchwork-Delegate: davem@davemloft.net Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=vger.kernel.org (client-ip=209.132.180.67; helo=vger.kernel.org; envelope-from=netdev-owner@vger.kernel.org; receiver=) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 3ySZK95RtKz9sNc for ; Fri, 3 Nov 2017 06:05:01 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934124AbdKBTE7 (ORCPT ); Thu, 2 Nov 2017 15:04:59 -0400 Received: from mail-qk0-f196.google.com ([209.85.220.196]:47035 "EHLO mail-qk0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932571AbdKBTE5 (ORCPT ); Thu, 2 Nov 2017 15:04:57 -0400 Received: by mail-qk0-f196.google.com with SMTP id k123so638424qke.3 for ; Thu, 02 Nov 2017 12:04:57 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=f1MWNgWZ8ewgvvR+onwR5fqDjPoygM5uPoI9/gW/7p8=; b=ItfrvRmqV0gGmDjyMZkLV2CK0a/D7Dw0tb6xXoSAaNJw2BtKB6bZNhIIdFUXPcW6qO JS+IOlXB0ImvKOpl/S3mOdBZvem9VnNcYYgR4/ooyQU/X24aiEAhmTc0RaK+m2IFJ3sy L9v4AEVnUsTW0iJPC/dbXQ3bOyTExs5MibdnU9VAdnv3F9Ib9gBtyrEFpyNepopJK9tf 5gV9caUa/yAJKytkZKO7Lu6r66umWQ2DwQZVr5SUbljFOA5zM7ecd+Z4WUy+riC/joo4 EFeTGV5PqZ9amvGgUQoKKGyTIWv0UitELDnZ1Y+uno2PtIn2yx66+ubd72Xg7/3gIDBE vRJw== X-Gm-Message-State: AJaThX7sfBuIzN6DdDuHJx+lgqW4mkqcyaZoadfKEy2krnEuoXWUL4Ig PfvHlACTlbrfkOs6ddsGBvvhHByQ+S4= X-Google-Smtp-Source: ABhQp+S/4T9RjhUanjgIYR6UVpjX8Hr03GAglXBV4wUDo7MipjPUSpf15U8XX5VALGJTV/j/qhpk9A== X-Received: by 10.55.179.196 with SMTP id c187mr6309547qkf.249.1509649496507; Thu, 02 Nov 2017 12:04:56 -0700 (PDT) Received: from localhost ([177.40.123.73]) by smtp.gmail.com with ESMTPSA id h4sm2650327qth.90.2017.11.02.12.04.55 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 02 Nov 2017 12:04:56 -0700 (PDT) From: Flavio Leitner To: netdev@vger.kernel.org, dev@openvswitch.org Cc: Jiri Benc Subject: [PATCH net-next 1/3] net: export peernet2id_alloc Date: Thu, 2 Nov 2017 17:04:36 -0200 Message-Id: <20171102190438.2583-2-fbl@redhat.com> X-Mailer: git-send-email 2.13.6 In-Reply-To: <20171102190438.2583-1-fbl@redhat.com> References: <20171102190438.2583-1-fbl@redhat.com> Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org From: Jiri Benc It will be used by openvswitch. Signed-off-by: Jiri Benc --- net/core/net_namespace.c | 1 + 1 file changed, 1 insertion(+) diff --git a/net/core/net_namespace.c b/net/core/net_namespace.c index 6cfdc7c84c48..b797832565d3 100644 --- a/net/core/net_namespace.c +++ b/net/core/net_namespace.c @@ -234,6 +234,7 @@ int peernet2id_alloc(struct net *net, struct net *peer) rtnl_net_notifyid(net, RTM_NEWNSID, id); return id; } +EXPORT_SYMBOL_GPL(peernet2id_alloc); /* This function returns, if assigned, the id of a peer netns. */ int peernet2id(struct net *net, struct net *peer)