1
0
mirror of https://github.com/openbsd/src.git synced 2026-04-25 06:35:46 +00:00

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)
This commit is contained in:
dlg
2025-11-26 03:43:29 +00:00
parent 4013668b64
commit 244266f8f4

View File

@@ -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 <dlg@openbsd.org>
@@ -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);