Skip to contentSkip to conversation

net: openvswitch: unexport ovs_vport_alloc/free

PATCH Applied Ilya Maximets 3 participants 3 messages Aug 12 – Aug 14

Subsystems (3)
lore
Share & tools
lore

Ilya Maximets

author maintainer
#0 lore raw

PATCH 1/1 net: openvswitch: unexport ovs_vport_alloc/free

Since removal of the legacy tunnel port types, there are no more users for these functions outside the main openvswitch module. Functions to register vport_ops are also not exported. Allocating vports without operations doesn't make a lot of sense.

Highlighted by Sashiko as a follow up to the removal of the module infrastructure.

---
 net/openvswitch/vport.c | 2 --
 1 file changed, 2 deletions(-)
net/openvswitch/vport.c +0 -2
index 29ebeb164bdc..083f7a8d9d4e 100644
@@ -157,7 +157,6 @@ struct vport *ovs_vport_alloc(int priv_size, const struct vport_ops *ops,
 	kfree(vport);
 	return ERR_PTR(err);
 }
-EXPORT_SYMBOL_GPL(ovs_vport_alloc);
 
 /**
  *	ovs_vport_free - uninitialize and free vport
@@ -178,7 +177,6 @@ void ovs_vport_free(struct vport *vport)
 	free_percpu(vport->upcall_stats);
 	kfree(vport);
 }
-EXPORT_SYMBOL_GPL(ovs_vport_free);
 
 static struct vport_ops *ovs_vport_lookup(const struct vport_parms *parms)
 {
Signature · 1 line
2.55.0
maintainer Reviewed-by on v1 1/1
#1 lore raw
Quoted 5 lines · Ilya Maximets

Since removal of the legacy tunnel port types, there are no more users for these functions outside the main openvswitch module. Functions to register vport_ops are also not exported. Allocating vports without operations doesn't make a lot of sense.

Quoted 8 lines

Highlighted by Sashiko as a follow up to the removal of the module infrastructure.

---
 net/openvswitch/vport.c | 2 --
 1 file changed, 2 deletions(-)
#2 lore raw
In reply to Ilya Maximets
This patch was applied to netdev/net-next.git (main) by Jakub Kicinski <[email protected]>:

Hello:

This patch was applied to netdev/net-next.git (main) by Jakub Kicinski <[email protected]>:

Quoted 9 lines · On Wed, 12 Aug 2026 14:20:06 +0200 you wrote:

Since removal of the legacy tunnel port types, there are no more users for these functions outside the main openvswitch module. Functions to register vport_ops are also not exported. Allocating vports without operations doesn't make a lot of sense.

Highlighted by Sashiko as a follow up to the removal of the module infrastructure.

[...]

Here is the summary with links:
- [net-next] net: openvswitch: unexport ovs_vport_alloc/free

    https://git.kernel.org/netdev/net-next/c/9702af05a007

You are awesome, thank you!

Signature · 2 lines
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html