Re: linux debian jail - network problems

2022-03-01 Thread Zhenlei Huang
le).. I also saw oncompatibilities in > socket.c > > Btw: I tried to enter the link you sent and it asked for username and > password.. its not public review? > > Sami > > בתאריך יום ו׳, 25 בפבר׳ 2022, 04:18, מאת Zhenlei Huang ‏ <mailto:zlei.hu...@gmail.com>

Re: What's going on with vnets and epairs w/ addresses?

2022-12-13 Thread Zhenlei Huang
Hi, I also encounter this problem while testing gif tunnel between jails. My script is similar but with additional gif tunnels. There are reports in mailing list [1], [2], and another one in forum [3] . Seem to be a long standing issue. [1] https://lists.freebsd.org/pipermail/freebsd-stable/

Re: What's going on with vnets and epairs w/ addresses?

2022-12-16 Thread Zhenlei Huang
ee up the cache by per-VNET SYSUNINIT tcp_destroy / udp_destroy / rip_destroy. Best regards, Zhenlei > On Dec 14, 2022, at 9:56 AM, Zhenlei Huang wrote: > > > Hi, > > I also encounter this problem while testing gif tunnel between jails. > > My script is similar but with

Is it possible to employ epoch to simplify managing prison lifecycle

2022-12-16 Thread Zhenlei Huang
Hi, While hacking `sys/kern/kern_jail.c` I got lost. There're lots of ref / unref and flags to prevent visit invalid prison while concurrent modification is possible and some refs looks weird. Is it possible to employ epoch(9) to simplify managing of prison lifecycle ? Best regards, Zhenlei

Re: What's going on with vnets and epairs w/ addresses?

2022-12-17 Thread Zhenlei Huang
> On Dec 17, 2022, at 6:55 AM, Bjoern A. Zeeb <mailto:b...@freebsd.org>> wrote: > > On Fri, 16 Dec 2022, Zhenlei Huang wrote: > > Hi, > >> I managed to repeat this issue on CURRENT/14 with this small snip: >> >> ---

Re: What's going on with vnets and epairs w/ addresses?

2022-12-17 Thread Zhenlei Huang
> On Dec 18, 2022, at 3:23 AM, Bjoern A. Zeeb wrote: > > On Sat, 17 Dec 2022, Gleb Smirnoff wrote: > >> Zhenlei, >> >> On Fri, Dec 16, 2022 at 06:30:57PM +0800, Zhenlei Huang wrote: >> Z> I managed to repeat this issue on CURR

Propose a new stage `vnet_shutdown` before `vnet_destroy`

2022-12-18 Thread Zhenlei Huang
Hi, I'm currently working on route nexthop caching feature for tunneling interfaces such as if_gif, if_gre, if_vxlan, and potentially if_wg. I encounter a nasty bug related to VNET lifecycle. More preciously I'd like to call `rib_unsubscribe()` to unsubscribe route event when the interface tunn

Re: What's going on with vnets and epairs w/ addresses?

2022-12-22 Thread Zhenlei Huang
>> Zhenlei, >>> >>> On Fri, Dec 16, 2022 at 06:30:57PM +0800, Zhenlei Huang wrote: >>> Z> I managed to repeat this issue on CURRENT/14 with this small snip: >>> Z> >>> Z> --- >>> Z> #!/bi

Re: What's going on with vnets and epairs w/ addresses?

2023-01-02 Thread Zhenlei Huang
Hi, Happy New Year 2023! > On Dec 27, 2022, at 4:42 AM, Gleb Smirnoff wrote: > > Zhenlei, Bjoern, Mark, > > sorry for delayed response on this thread. Back when the problem > was first introduced, I made a code that forces purge of SMR zones. > However, I didn't push it in, hence the change on

Re: Propose a new stage `vnet_shutdown` before `vnet_destroy`

2023-01-06 Thread Zhenlei Huang
> On Dec 19, 2022, at 1:44 AM, James Gritton wrote: > > On 2022-12-18 00:01, Zhenlei Huang wrote: >> I'm currently working on route nexthop caching feature for tunneling >> interfaces such as >> if_gif, if_gre, if_vxlan, and potentially if_wg. I encounte

Re: setting VNET tunables in a new jail

2024-12-17 Thread Zhenlei Huang
> On Dec 18, 2024, at 5:19 AM, Mark Johnston wrote: > > We have a number of sysctls which are defined as tunables, whose values > cannot be changed after boot. Some of these sysctls, such as net.fibs, > are per-VNET so could in principle be changed at jail creation time. For current/15, it is

Re: setting VNET tunables in a new jail

2024-12-17 Thread Zhenlei Huang
> On Dec 18, 2024, at 11:05 AM, Zhenlei Huang wrote: > > > >> On Dec 18, 2024, at 5:19 AM, Mark Johnston > <mailto:ma...@freebsd.org>> wrote: >> >> We have a number of sysctls which are defined as tunables, whose values >> cannot be cha

Re: setting VNET tunables in a new jail

2024-12-18 Thread Zhenlei Huang
> On Dec 19, 2024, at 12:43 AM, Mark Johnston wrote: > > On Wed, Dec 18, 2024 at 11:05:46AM +0800, Zhenlei Huang wrote: >> >> >>> On Dec 18, 2024, at 5:19 AM, Mark Johnston >> <mailto:ma...@freebsd.org>> wrote: >>> >>> We have