Received: from mail-wm2-f2.google.com (mail-wm2-f2.google.com [74.125.225.130]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 478F1488DB6 for ; Tue, 4 Aug 2026 18:21:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=74.125.225.130 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1785867685; cv=none; b=lZkZGQ92lRsbDmlrpwHeBhY9XFmidxEL4MkM2rWavmQqZdftfgYr296eB5mZIwgoezau8pd7KJ5qn2/J9ma+EzBHjIMOfZBhjx7LqwSG90n6omRVjzNCRsDvfLiy543PQswcyOYg7lm35LVY5BJtv8IZp7ZJBQb98rHB3eDRr8Q= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1785867685; c=relaxed/simple; bh=E18ZmlhKx2vZXzjAGq28ZhHz6/Zwk9XVloSjEWzAZ1k=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=WWIG45+9OTyMX2FIw7fYIUf1Si1xSxTG4CWuMkdW+zu2hY60VNRje3VE5ukp7970HRr/saLnWyvPFLN1jWBodOZK8fg7S6cBRnYjMN1ohmRXFEuDbE7zK/pwZfopLfJuazQ2Y46CDsorTPs6U3GFQMYH9SZ6tpJJKLD81EjUXrY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=ovn.org; spf=pass smtp.mailfrom=gmail.com; arc=none smtp.client-ip=74.125.225.130 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=ovn.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-wm2-f2.google.com with SMTP id 5b1f17b1804b1-4926d058720so234525e9.0 for ; Tue, 04 Aug 2026 11:21:23 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1785867681; x=1786472481; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to:content-type; bh=oZeQlNjOge6WMVv6WVdFf9fbDLHuWnzd1YmpbjrG1hA=; b=m01tyPO3aluhErF6cgdKZQSiPscW2Mv6cAMS/GXYgq3quostLh2vHO1Nc+T7xTCLgU kMfPFwIKJMA5sgcISe3sbIt2RHkvOy1PaUrzKufj+7/wFfVmfg0uV0RwIbYTznRl8A4C o0qee/nkK8PzB+eFKYB8OZv0z9RSt1iNIfLmtzW/6Jl7RzlboD9BEIEGYmZCWhXDQIC7 gBsGgO2Kn1BSMxO6R/o7aScstzhr5avQj07CUEqfWIYx6pHC8RfGYJ6NMhsKT0bCa9Tt MypZca9RV/uOHg6vSmO3sBXZ38Tu7vQy9f1uziGKbdZQSs48jiXZjMpAIya+7cdNz1n3 2BSA== X-Forwarded-Encrypted: i=1; AHgh+Ro1U7W18Lc3GZZJSf+oQdPMmT19irVAmZJT7ox8RuDfJ0mMUfTDXSacwGyPEksWwTAQzavWA+eC8VucTO10tBI=@vger.kernel.org X-Gm-Message-State: AOJu0YzVfQ6uXlInrnAfWN2shAFRcslZkNR/P4oiKec5fgeI2o8OLhg2 KFfEF4/vmKYA2T+srelefpIaH53WJ9/jkmFmHQe1iRZV3s/mf4wF9Bal X-Gm-Gg: AR+sD121OTEOnSHvimV6YdfKfAX2lKBT2SiKqBczv/oZqx4kuL8SpFC6TOAcsh178Iq de43A05lgBkrBCUqCRmeK8nd6qMKygE8YNRIBcWBvZFsdjHdX0TrpOmxq50s5J25K2dJHthAWTz KI8x4aJPJcZJvawO6tf7CXSvLzajf/GRrR/UmlMTGiK8mm2h586Klju/46uujZen2gHV5fFX8M2 HEFfGZtcpirC3Ta/bhkK+i12ch9kM0pEN9cTV954kHVkYV9/aFrEnAcbnBLqfLcPspXdW/atqzs cxzUnxS9ykw9ERR0CqOO1+yFSi43kYB6P+jlquGD9lyH1pptMUvS9FkyRACJrU/bmh94PWF2tBN cQpYNUzUonzzqNDc8+nnNdMne/TpC2Ej3ZgidJoyFMXXTHAv8n4ei40KoUw+LyFNZiLL4gWYvVU VaezrAFJbVLXV8YHSELhXWKNP1P6q2HoHfSXMOU0BiajGaiO79wbkyaY8toPqiVyJxhJAYVQcXk g0h8csc3GiX0F62mXu2upWz4yFMpQ== X-Received: by 2002:a05:600c:4fca:b0:496:c2fd:1731 with SMTP id 5b1f17b1804b1-4994e711309mr3148375e9.1.1785867681458; Tue, 04 Aug 2026 11:21:21 -0700 (PDT) Received: from im-t490s.redhat.com (78-80-108-129.customers.tmcz.cz. [78.80.108.129]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4994e4bf5c1sm4946925e9.2.2026.08.04.11.21.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 Aug 2026 11:21:21 -0700 (PDT) From: Ilya Maximets To: netdev@vger.kernel.org Cc: Andrew Lunn , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Simon Horman , Aaron Conole , Eelco Chaudron , David Ahern , Ido Schimmel , Shuah Khan , Kuniyuki Iwashima , Nikolay Aleksandrov , Fernando Fernandez Mancera , Antoine Tenart , linux-kernel@vger.kernel.org, dev@openvswitch.org, linux-kselftest@vger.kernel.org, Ilya Maximets Subject: [PATCH net-next 6/6] net: vxlan: remove unused vxlan_dev_create Date: Tue, 4 Aug 2026 20:20:40 +0200 Message-ID: <20260804182049.2289754-7-i.maximets@ovn.org> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20260804182049.2289754-1-i.maximets@ovn.org> References: <20260804182049.2289754-1-i.maximets@ovn.org> Precedence: bulk X-Mailing-List: linux-kselftest@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit The vport-vxlan in openvswitch was the last user and it is now gone. And we can now rename the internal function to have a better name. Signed-off-by: Ilya Maximets --- drivers/net/vxlan/vxlan_core.c | 42 ++++------------------------------ include/net/vxlan.h | 3 --- 2 files changed, 4 insertions(+), 41 deletions(-) diff --git a/drivers/net/vxlan/vxlan_core.c b/drivers/net/vxlan/vxlan_core.c index 25e3fe1ee751..fd5505153d0b 100644 --- a/drivers/net/vxlan/vxlan_core.c +++ b/drivers/net/vxlan/vxlan_core.c @@ -3966,9 +3966,9 @@ static int vxlan_dev_configure(struct net *src_net, struct net_device *dev, return 0; } -static int __vxlan_dev_create(struct net *net, struct net_device *dev, - struct vxlan_config *conf, - struct netlink_ext_ack *extack) +static int vxlan_dev_create(struct net *net, struct net_device *dev, + struct vxlan_config *conf, + struct netlink_ext_ack *extack) { struct vxlan_net *vn = net_generic(net, vxlan_net_id); struct vxlan_dev *vxlan = netdev_priv(dev); @@ -4416,7 +4416,7 @@ static int vxlan_newlink(struct net_device *dev, if (err) return err; - return __vxlan_dev_create(link_net, dev, &conf, extack); + return vxlan_dev_create(link_net, dev, &conf, extack); } static int vxlan_changelink(struct net_device *dev, struct nlattr *tb[], @@ -4700,40 +4700,6 @@ static struct rtnl_link_ops vxlan_link_ops __read_mostly = { .get_link_net = vxlan_get_link_net, }; -struct net_device *vxlan_dev_create(struct net *net, const char *name, - u8 name_assign_type, - struct vxlan_config *conf) -{ - struct nlattr *tb[IFLA_MAX + 1]; - struct net_device *dev; - int err; - - memset(&tb, 0, sizeof(tb)); - - dev = rtnl_create_link(net, name, name_assign_type, - &vxlan_link_ops, tb, NULL); - if (IS_ERR(dev)) - return dev; - - err = __vxlan_dev_create(net, dev, conf, NULL); - if (err < 0) { - free_netdev(dev); - return ERR_PTR(err); - } - - err = rtnl_configure_link(dev, NULL, 0, NULL); - if (err < 0) { - LIST_HEAD(list_kill); - - vxlan_dellink(dev, &list_kill); - unregister_netdevice_many(&list_kill); - return ERR_PTR(err); - } - - return dev; -} -EXPORT_SYMBOL_GPL(vxlan_dev_create); - static void vxlan_handle_lowerdev_unregister(struct vxlan_net *vn, struct net_device *dev) { diff --git a/include/net/vxlan.h b/include/net/vxlan.h index 6e64757151b8..7b8207505523 100644 --- a/include/net/vxlan.h +++ b/include/net/vxlan.h @@ -359,9 +359,6 @@ struct vxlan_dev { VXLAN_F_MC_ROUTE | \ 0) -struct net_device *vxlan_dev_create(struct net *net, const char *name, - u8 name_assign_type, struct vxlan_config *conf); - static inline netdev_features_t vxlan_features_check(struct sk_buff *skb, netdev_features_t features) { -- 2.55.0