From patchwork Sat Dec 14 00:37:22 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stephen Hemminger X-Patchwork-Id: 301189 X-Patchwork-Delegate: davem@davemloft.net Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id A84212C0086 for ; Sat, 14 Dec 2013 11:37:30 +1100 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752740Ab3LNAh1 (ORCPT ); Fri, 13 Dec 2013 19:37:27 -0500 Received: from mail-pd0-f175.google.com ([209.85.192.175]:41316 "EHLO mail-pd0-f175.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751755Ab3LNAh0 (ORCPT ); Fri, 13 Dec 2013 19:37:26 -0500 Received: by mail-pd0-f175.google.com with SMTP id w10so3146955pde.20 for ; Fri, 13 Dec 2013 16:37:25 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-type:content-transfer-encoding; bh=FhjcDmrvd/m65ZtNfOemL63vCyU2n73dtx+sljFhVlo=; b=nF4AhjBtHdct3z/HrvbzyDjMQb62W2QepOi8FE7vjVxge3MS5dpslZxr9RrSuBPwDI OY9dTE9hNpTI6SS5E8w3gEkNljPVitag3Cx7iQbsuoGI43j7nygt3DNZtU505j/wSRLE vJA4yMZehuliRDJuBN+i2Ud93Ieoc+49SfSA90kYQHvf9c04KITMtow+MvociJwyaF+1 lJsgdBxaRsDbIp7Eyuo4W14t+KNBfpHdrsUoG93Uhcx6/PKMyNSIY3D5ZlHQV+dosW6r iTc60lj6kmzgEAC35oWw2Px73kZRlh52blUllYjaM4qVmEARr2q5/xrVJYpZ01w7s0Om ea+Q== X-Gm-Message-State: ALoCoQlZP408bJ3gs+X28/O0UuNB/83SBDyzHghg7XcWTVLAIJTr/KsKVm+1y4XztuZlg2DtYTvN X-Received: by 10.68.191.3 with SMTP id gu3mr6560775pbc.142.1386981445496; Fri, 13 Dec 2013 16:37:25 -0800 (PST) Received: from nehalam.linuxnetplumber.net (static-50-53-83-51.bvtn.or.frontiernet.net. [50.53.83.51]) by mx.google.com with ESMTPSA id wp8sm7886699pbc.26.2013.12.13.16.37.24 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Fri, 13 Dec 2013 16:37:25 -0800 (PST) Date: Fri, 13 Dec 2013 16:37:22 -0800 From: Stephen Hemminger To: David Miller Cc: netdev@vger.kernel.org Subject: [PATCH net-next] vxlan: make get_rx_port static Message-ID: <20131213163722.498f6e56@nehalam.linuxnetplumber.net> X-Mailer: Claws Mail 3.8.1 (GTK+ 2.24.10; x86_64-pc-linux-gnu) Mime-Version: 1.0 Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org Make local function static, only used in vxlan itself right now. Maybe someone had ideas about offload, but they can expose it when they send their offload upstream. Signed-off-by: Stephen Hemminger --- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html --- a/drivers/net/vxlan.c 2013-12-12 11:48:17.057855220 -0800 +++ b/drivers/net/vxlan.c 2013-12-12 11:56:55.949774139 -0800 @@ -2039,7 +2039,7 @@ static struct device_type vxlan_type = { * supply the listening VXLAN udp ports. Callers are expected * to implement the ndo_add_vxlan_port. */ -void vxlan_get_rx_port(struct net_device *dev) +static void vxlan_get_rx_port(struct net_device *dev) { struct vxlan_sock *vs; struct net *net = dev_net(dev); --- a/include/net/vxlan.h 2013-12-12 11:48:17.057855220 -0800 +++ b/include/net/vxlan.h 2013-12-12 11:56:55.949774139 -0800 @@ -41,11 +41,4 @@ __be16 vxlan_src_port(__u16 port_min, __ /* IPv6 header + UDP + VXLAN + Ethernet header */ #define VXLAN6_HEADROOM (40 + 8 + 8 + 14) -#if IS_ENABLED(CONFIG_VXLAN) -void vxlan_get_rx_port(struct net_device *netdev); -#else -static inline void vxlan_get_rx_port(struct net_device *netdev) -{ -} -#endif #endif