From 244266f8f40afdaf2f94e6c5ce4b92b866624dd2 Mon Sep 17 00:00:00 2001 From: dlg Date: Wed, 26 Nov 2025 03:43:29 +0000 Subject: [PATCH] allocate ifiqs for vport interfaces. there are some situations where vport will queue packets it has "received". this spreads the processing of them over the softnet threads. this is like what's done for lo(4) and rport(4) --- sys/net/if_veb.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sys/net/if_veb.c b/sys/net/if_veb.c index ee3e9c17bc3..588a4416c12 100644 --- a/sys/net/if_veb.c +++ b/sys/net/if_veb.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_veb.c,v 1.58 2025/11/26 02:13:54 dlg Exp $ */ +/* $OpenBSD: if_veb.c,v 1.59 2025/11/26 03:43:29 dlg Exp $ */ /* * Copyright (c) 2021 David Gwynne @@ -3262,6 +3262,7 @@ vport_clone_create(struct if_clone *ifc, int unit) if_counters_alloc(ifp); if_attach(ifp); + if_attach_iqueues(ifp, softnet_count()); ether_ifattach(ifp); return (0);