Date: Tue, 09 Mar 2021 20:48:16 +0000 From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 254171] 13.0-RC1: pf: vnet: jail leaves a unnecessary swi1 thread in intr process Message-ID: <bug-254171-227@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D254171 Bug ID: 254171 Summary: 13.0-RC1: pf: vnet: jail leaves a unnecessary swi1 thread in intr process Product: Base System Version: 13.0-STABLE Hardware: amd64 OS: Any Status: New Severity: Affects Some People Priority: --- Component: kern Assignee: bugs@FreeBSD.org Reporter: rashey@superbox.pl To reproduce the issue you must load pf module and create the jail with vnet option. # cat /etc/jail.conf path =3D "/usr/jail/${name}"; exec.clean; exec.prestart =3D "ifconfig epair${epairid} create"; exec.prestart +=3D "ifconfig epair${epairid}a inet6 ifdisabled up"; exec.prestart +=3D "ifconfig bridge0 addm epair${epairid}a"; exec.created =3D "cpuset -l 1 -j ${name}"; exec.start =3D "ifconfig epair${epairid}b ether 02:ef:a4:c1:60:0${epai= rid}"; exec.start +=3D "ifconfig epair${epairid}b inet ${ipaddress} netmask ${netmask}"; exec.start +=3D "route add default ${gateway}"; exec.start +=3D "sh /etc/rc"; exec.stop =3D "sh /etc/rc.shutdown jail"; exec.poststop =3D "ifconfig epair${epairid}a destroy"; host.hostname =3D "${name}"; mount.devfs; vnet; vnet.interface =3D "epair${epairid}b"; test1 { $epairid =3D 1; $ipaddress =3D 192.168.0.101; $netmask =3D 255.255.255.0; $gateway =3D 192.168.0.1; } test2 { $epairid =3D 2; $ipaddress =3D 192.168.0.102; $netmask =3D 255.255.255.0; $gateway =3D 192.168.0.1; } # ifconfig bridge0 create # kldload pf # service jail onestart Starting jails: test1 test2. # procstat -t 12 | egrep 'PID|swi1' PID TID COMM TDNAME CPU PRI STATE WCHAN 12 100031 intr swi1: netisr 0 -1 28 wait - 12 100134 intr swi1: pf send -1 28 wait - 12 100138 intr swi1: pf send -1 28 wait - 12 100147 intr swi1: pf send -1 28 wait - # service jail onerestart Stopping jails: test1 test2. Starting jails: test1 test2. # service jail onerestart Stopping jails: test1 test2. Starting jails: test1 test2. # service jail onestop Stopping jails: test1 test2. # procstat -t 12 | egrep 'PID|swi1' PID TID COMM TDNAME CPU PRI STATE WCHAN 12 100031 intr swi1: netisr 0 -1 28 wait - 12 100134 intr swi1: pf send -1 28 wait - 12 100138 intr swi1: -1 47 wait - 12 100147 intr swi1: -1 47 wait - 12 100157 intr swi1: -1 47 wait - 12 100158 intr swi1: -1 47 wait - 12 100159 intr swi1: -1 47 wait - 12 100160 intr swi1: -1 47 wait - --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-254171-227>