summaryrefslogtreecommitdiff
path: root/net/openvswitch/datapath.c
diff options
context:
space:
mode:
authorIlya Maximets <i.maximets@ovn.org>2026-08-04 20:20:37 +0200
committerPaolo Abeni <pabeni@redhat.com>2026-08-06 15:09:23 +0200
commit2425eba0f8225fa808e2c2f0d5bc5f492c88ef88 (patch)
treec31e898d9ecdfb26ced8ce2a2162c028f3ac4fae /net/openvswitch/datapath.c
parent38aecd1a1973806524b183e21cedf52a088607f2 (diff)
openvswitch: vport: remove infrastructure for separate modules
Since removal of legacy tunnel vport types only the built-in ones remain. So, there is no need for the extra infrastructure for dynamic module loading. Can be reinstated in the future if we need a new vport type. Note: It is technically possible that someone has an out-of-tree module named vport-type-N that implements a different vport type. At this time we're not aware of anyone doing that. People running out-of-tree modules normally just have an out-of-tree openvswitch module as a whole. And there are actually no supported out-of-tree implementations of the openvswitch module known to the community. Signed-off-by: Ilya Maximets <i.maximets@ovn.org> Link: https://patch.msgid.link/20260804182049.2289754-4-i.maximets@ovn.org Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Diffstat (limited to 'net/openvswitch/datapath.c')
-rw-r--r--net/openvswitch/datapath.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/net/openvswitch/datapath.c b/net/openvswitch/datapath.c
index 57c83f05fead..34a15ef76a70 100644
--- a/net/openvswitch/datapath.c
+++ b/net/openvswitch/datapath.c
@@ -2331,7 +2331,6 @@ static int ovs_vport_cmd_new(struct sk_buff *skb, struct genl_info *info)
return -ENOMEM;
ovs_lock();
-restart:
dp = get_dp(sock_net(skb->sk), ovs_header->dp_ifindex);
err = -ENODEV;
if (!dp)
@@ -2363,11 +2362,8 @@ restart:
vport = new_vport(&parms);
err = PTR_ERR(vport);
- if (IS_ERR(vport)) {
- if (err == -EAGAIN)
- goto restart;
+ if (IS_ERR(vport))
goto exit_unlock_free;
- }
err = ovs_vport_cmd_fill_info(vport, reply, genl_info_net(info),
info->snd_portid, info->snd_seq, 0,