Page MenuHomeFreeBSD

zlei (Zhenlei Huang)
User

Projects (1)

User Details

User Since
Apr 1 2021, 3:21 AM (296 w, 1 d)

Recent Activity

Today

zlei added a comment to D62438: kern.pre.mk: Stop regenerating the .c file from .m file.

doesn't this break the uses in e.g. sys/conf/files.amd64

Fri, Dec 4, 6:14 PM
zlei requested review of D62438: kern.pre.mk: Stop regenerating the .c file from .m file.
Fri, Dec 4, 5:47 PM
zlei requested review of D62425: sys/modules: Remove MFILES from Makefile.
Fri, Dec 4, 12:14 PM

Wed, Dec 2

zlei accepted D62263: netisr: remove vnet(4) registration.

Looks good to me.

Wed, Dec 2, 7:02 PM
zlei accepted D62307: netstat: drop -Q support when running on a vmcore.

This feature was introduced by 88737be2ddd3e5de3365db49abfb4e84e191e3b6 but it appears that the man page has never been updated.

Wed, Dec 2, 6:36 PM
zlei added inline comments to D62305: sockets: refuse MSG_OOB on a datagram socket.
Wed, Dec 2, 7:21 AM

Tue, Dec 1

zlei accepted D62256: netisr: use enum for nws_flags.

Looks good to me.

Tue, Dec 1, 9:36 AM
zlei accepted D62254: netisr: use enums for netisr policy and dispatch modes.

Looks good to me.

Tue, Dec 1, 9:31 AM

Fri, Nov 27

zlei added a comment to D48646: Virtualise if_vxlan.

gentle ping: @zlei

One issue left unresolved, that is getting statistics via sysctl(8), typically that is two vxlan(4) interfaces with the same unit number from different vnet. I think getting statistics via netlink (or ioctl, deprecated although) is the right approach.

A workaround is using global unit numbers cross different vnets. Or shall we introduce netlink based method to retrieve the statistics first ?

Netlink is the only way.
We should do it the way that its compatible with Linux netlink for EVPN stuff in routing daemons like bird/frr.
You can defer it to me if you want.

Fri, Nov 27, 10:00 AM
zlei added a comment to D48646: Virtualise if_vxlan.

gentle ping: @zlei

Fri, Nov 27, 9:47 AM

Tue, Nov 24

zlei added a reviewer for D61957: routing: Add RT_NH_NOREF for routes that do not reference the nexthop: network.
Tue, Nov 24, 2:11 PM
zlei accepted D61385: ip_forward: Do not reference the nexthop.
Tue, Nov 24, 2:10 PM
zlei accepted D61957: routing: Add RT_NH_NOREF for routes that do not reference the nexthop.

Looks good to me.

Tue, Nov 24, 2:09 PM
zlei accepted D61385: ip_forward: Do not reference the nexthop.

The change looks good to me.

Tue, Nov 24, 10:09 AM
zlei added a comment to D61385: ip_forward: Do not reference the nexthop.

Do I understand it correct that a non-referencing ro would always be on the stack ro and vice versa? I'm thinking of making those flags bitfields and that would allow to make it truly immutable and use language to protect from incorrect use.

Tue, Nov 24, 10:03 AM
zlei accepted D61952: if_geneve: Fix nexthop reference imbalance on output.

Looks good to me.

Tue, Nov 24, 9:54 AM
zlei accepted D61958: if_vxlan: Fix nexthop reference imbalance on output.

Looks good to me.

Tue, Nov 24, 9:54 AM
zlei accepted D61957: routing: Add RT_NH_NOREF for routes that do not reference the nexthop.

Looks good to me.

Tue, Nov 24, 9:30 AM

Mon, Nov 23

zlei added inline comments to D61385: ip_forward: Do not reference the nexthop.
Mon, Nov 23, 3:56 PM
zlei added inline comments to D61385: ip_forward: Do not reference the nexthop.
Mon, Nov 23, 3:49 PM
zlei added inline comments to D61385: ip_forward: Do not reference the nexthop.
Mon, Nov 23, 3:44 PM

Fri, Nov 20

zlei committed rGbf362c1b41c8: kobj: convert KOBJOPLOOKUP() to returning pointer to function (authored by ehem_freebsd_m5p.com).
Fri, Nov 20, 10:11 AM
zlei closed D48408: kobj: convert KOBJOPLOOKUP() to returning pointer to function.
Fri, Nov 20, 10:11 AM
zlei accepted D61725: arp: Teach arp to attach and run itself in a jail.

Looks good to me.

Fri, Nov 20, 1:18 AM

Thu, Nov 19

zlei added a comment to D61687: blackhole.4: These sysctls are sysctl only.

the reason i was wondering that is in case people want to put them in loader.conf. if you put these in loader.conf they just silently do nothing since they are sysctl only.

Thu, Nov 19, 3:53 AM

Wed, Nov 18

zlei added a comment to D61687: blackhole.4: These sysctls are sysctl only.

The sysctl service runs quite early which is before /etc/rc.d/netif ( ignore dhclient right now ),

Wed, Nov 18, 2:59 AM

Mon, Nov 16

zlei added a comment to D48408: kobj: convert KOBJOPLOOKUP() to returning pointer to function.

I plan to commit this in few days. Any objection ?

Mon, Nov 16, 9:51 AM

Sun, Nov 15

zlei accepted D61517: if_bridge: Use bridge's FIB for incoming unicasts.

Looks good to me.

Sun, Nov 15, 1:38 PM

Sat, Nov 14

zlei added a comment to D61320: if_firewire: Be more robust while checking the frame size.

P.S. AFAIK the ubiquitous use of signed integers for unsigned entities that we inherited from 4.3BSD comes from late Bruce Evans. He always insisted that at machine level everything is signed, that's why. I never fully bought this point. It seems to me that by today standards all software development norms is that use unsigned types for unsigned entities. And even a very smart man can be wrong sometimes. Thus, we should do sweeping changes to get rid of this heritage. Any other opinions?

Sat, Nov 14, 5:12 PM · firewire
zlei added inline comments to D61320: if_firewire: Be more robust while checking the frame size.
Sat, Nov 14, 4:30 PM · firewire
zlei added a comment to D61517: if_bridge: Use bridge's FIB for incoming unicasts.

Emm, I guess the bridge members should inherit the default FIB number from bridge ?

Sat, Nov 14, 3:59 PM
zlei added a comment to D59849: gre(4): Add full support for gre key.

Looks good to me. Sorry for the late response.

Sat, Nov 14, 3:28 PM

Wed, Nov 11

zlei added inline comments to D61385: ip_forward: Do not reference the nexthop.
Wed, Nov 11, 4:59 PM

Tue, Nov 10

zlei added a comment to D61320: if_firewire: Be more robust while checking the frame size.

is m_len / m_pktlen ever supposed to be negative?

They should not be negative. But buggy driver / net stack logic may lead to. Here is an example 6429199a2113 (llan: byte swap the receive queue entries) .

If it can't be negative then we could write a mbuf len comparison function that can assert/log an error, and then do the correct things with comparison.

Tue, Nov 10, 6:11 PM · firewire
zlei accepted D48408: kobj: convert KOBJOPLOOKUP() to returning pointer to function.

The change looks good to me. I do not have strong opinion on __extension__ . There're already lots of macro definition without __extension__.

Tue, Nov 10, 6:04 PM
zlei added a reviewer for D48408: kobj: convert KOBJOPLOOKUP() to returning pointer to function: kib.
Tue, Nov 10, 6:01 PM
zlei added inline comments to D61385: ip_forward: Do not reference the nexthop.
Tue, Nov 10, 5:54 PM
zlei committed rG8910f9e5a0cc: kobj: Make the containers of pointers to base classes constant.
Tue, Nov 10, 1:29 PM
zlei closed D61297: kobj: Make the containers of pointers to base classes constant.
Tue, Nov 10, 1:29 PM

Sun, Nov 8

zlei added a comment to D61320: if_firewire: Be more robust while checking the frame size.

is m_len / m_pktlen ever supposed to be negative?

Sun, Nov 8, 6:19 PM · firewire
zlei added inline comments to D61297: kobj: Make the containers of pointers to base classes constant.
Sun, Nov 8, 5:36 PM
zlei added inline comments to D61320: if_firewire: Be more robust while checking the frame size.
Sun, Nov 8, 5:04 PM · firewire
zlei requested review of D61320: if_firewire: Be more robust while checking the frame size.
Sun, Nov 8, 4:45 PM · firewire

Sat, Nov 7

zlei requested review of D61297: kobj: Make the containers of pointers to base classes constant.
Sat, Nov 7, 5:00 PM
zlei committed rG6b38db44f0ea: sys/kobj.h: Convert macro DEFINE_CLASS to designated initializers.
Sat, Nov 7, 2:36 PM
zlei closed D61276: sys/kobj.h: Convert macro DEFINE_CLASS to designated initializers.
Sat, Nov 7, 2:36 PM

Fri, Nov 6

zlei requested review of D61276: sys/kobj.h: Convert macro DEFINE_CLASS to designated initializers.
Fri, Nov 6, 8:50 PM

Thu, Nov 5

zlei committed rG530ece453901: sched: Add sysctl flag CTLFLAG_TUN to loader tunable kern.sched.name.
Thu, Nov 5, 11:22 PM

Nov 4 2026

zlei closed D61179: RELNOTES: Fix the name of the loader tunable kern.sched.name.
Nov 4 2026, 7:30 PM
zlei committed rGba855bc358b9: RELNOTES: Fix the name of the loader tunable kern.sched.name.
Nov 4 2026, 7:30 PM
zlei closed D61178: sched: Add sysctl flag CTLFLAG_TUN to loader tunable kern.sched.name.
Nov 4 2026, 7:30 PM
zlei committed rG5e54a402f896: sched: Add sysctl flag CTLFLAG_TUN to loader tunable kern.sched.name.
Nov 4 2026, 7:30 PM
zlei committed rG8e429142feaa: kobj: Avoid initializing pointer from boolean value.
Nov 4 2026, 7:30 PM
zlei closed D61173: kobj: Avoid initializing pointer from boolean value.
Nov 4 2026, 7:30 PM
zlei added inline comments to D61178: sched: Add sysctl flag CTLFLAG_TUN to loader tunable kern.sched.name.
Nov 4 2026, 7:17 PM
zlei added a comment to D61173: kobj: Avoid initializing pointer from boolean value.
In D61173#1402811, @kib wrote:

Perhaps properly fixing it would change to use designated initializers, as a follow-up.

Nov 4 2026, 7:11 PM
zlei added inline comments to D61179: RELNOTES: Fix the name of the loader tunable kern.sched.name.
Nov 4 2026, 9:01 AM
zlei requested review of D61179: RELNOTES: Fix the name of the loader tunable kern.sched.name.
Nov 4 2026, 9:00 AM
zlei requested review of D61178: sched: Add sysctl flag CTLFLAG_TUN to loader tunable kern.sched.name.
Nov 4 2026, 8:58 AM
zlei requested review of D61173: kobj: Avoid initializing pointer from boolean value.
Nov 4 2026, 3:54 AM

Oct 17 2026

zlei accepted D60788: ng_pppoe: fix m_pullup() logic.

Looks sane to me.

Oct 17 2026, 3:06 PM

Oct 15 2026

zlei accepted D60689: net*: use inlined m_pullup().

Looks good to me.

Oct 15 2026, 7:36 AM
zlei accepted D60738: net*: remove remnants of caddr_t.

Generally looks good to me.

Oct 15 2026, 7:24 AM
zlei accepted D60736: mbuf: remove remnants of caddr_t.

Looks good to me.

Oct 15 2026, 6:20 AM
zlei added inline comments to D60736: mbuf: remove remnants of caddr_t.
Oct 15 2026, 3:13 AM

Oct 14 2026

zlei updated subscribers of D60689: net*: use inlined m_pullup().

Generally looks good to me. Well I'd recommend fixing existing bugs prior to committing this change.

Oct 14 2026, 3:42 PM

Oct 13 2026

zlei accepted D60688: mbuf: make m_pullup() an inline over most expected case.

I like this idea !

Oct 13 2026, 1:58 AM

Oct 12 2026

zlei added a comment to D59450: loopback: set MTU to IF_MAXMTU.

Hi @glebius , I made a mistake while doing the benchmark -:)

Oct 12 2026, 5:54 PM
zlei added inline comments to D59849: gre(4): Add full support for gre key.
Oct 12 2026, 10:14 AM

Oct 11 2026

zlei accepted D60616: Makefile.inc1: Demote root build message to .info.

Looks good to me.

Oct 11 2026, 3:00 PM
zlei added a reviewer for D60616: Makefile.inc1: Demote root build message to .info: jhb.
Oct 11 2026, 3:00 PM
zlei added inline comments to D50352: build: Emit a warning for build targets run as root.
Oct 11 2026, 1:32 PM

Oct 10 2026

zlei added a comment to D58742: qlnx: Report SR-IOV VF status.

@kbowling I have the hardware ( QLogic FastLinQ QL41000 ) which is supported by this driver. Do you want me to test with this new feature ?

Yes please. Create some VFs with iovctl and use 'ifconfig -v'

Oct 10 2026, 1:01 PM

Sep 30 2026

zlei added a comment to D59748: Jail init process and virtual reboot.

I think this is a nice feature !

Sep 30 2026, 4:39 AM

Sep 27 2026

zlei accepted D59919: net: Fix handling of sockaddrs in the SIOC{ADD,DEL}MULTI handlers.

Looks good to me.

Sep 27 2026, 2:12 PM

Sep 24 2026

zlei added inline comments to D59919: net: Fix handling of sockaddrs in the SIOC{ADD,DEL}MULTI handlers.
Sep 24 2026, 7:09 AM

Sep 17 2026

zlei added a comment to D59450: loopback: set MTU to IF_MAXMTU.
In D59450#1370998, @cc wrote:

For the case of MTU=64KB, in FreeBSD you have to change the net.inet.tcp.sendspace value from default 32KB to 64KB or larger to make sense of using MSS=64KB. If so, you also have to increase the net.inet.tcp.recvspace value from default 64KB to a larger value.

Reference:
https://wiki.freebsd.org/chengcui/tcp_loopback_perf

Sep 17 2026, 9:01 AM

Sep 16 2026

zlei accepted D59567: icmp: Limit routing table updates to the FIB of the redirect.

I have not tested this change yet, but it looks reasonable!

Sep 16 2026, 8:56 AM
zlei accepted D59589: website: Restore "The Power to Serve" on homepage.
Sep 16 2026, 6:32 AM
zlei added a comment to D58742: qlnx: Report SR-IOV VF status.

@kbowling I have the hardware ( QLogic FastLinQ QL41000 ) which is supported by this driver. Do you want me to test with this new feature ?

Sep 16 2026, 2:19 AM
zlei added a comment to D59450: loopback: set MTU to IF_MAXMTU.

@glebius I think this is not a breaking change, but it improves the performance significantly ( now with a larger default MTU ). Does it deserve a change log or release note ?

Sep 16 2026, 2:06 AM
zlei accepted D59450: loopback: set MTU to IF_MAXMTU.

Some time ago I was wondering why the MTU of loopback interface was limited to 16K, I thought a larger one should have better performance so I did a simple test ( iperf3 on lo0 ). It was weird that I saw performance degrees when increasing the MTU to 64K.

Sep 16 2026, 1:52 AM
zlei added inline comments to D59387: net/if: Fix ifa memory leak during vnet removal.
Sep 16 2026, 1:27 AM

Aug 2 2026

zlei added inline comments to D58591: mtest: Use ntohl() when assigning IPv4-mapped addresses for IPv6 sockets..
Aug 2 2026, 6:46 PM

Jul 24 2026

zlei accepted D58423: netinet6/nd6: Sprinkle missing prefix refcounting.

Looks good to me. @markj Do you plan to MFC ?

Jul 24 2026, 6:29 AM

Jul 20 2026

zlei added a comment to D58294: netlink: Add RTA_PREFSRC support.

Nice feature!

Jul 20 2026, 2:59 AM

Jul 13 2026

zlei accepted D58151: libnetmap: fix extra indirection in nmreq_remove_option.
Jul 13 2026, 7:28 AM
zlei added a reviewer for D58151: libnetmap: fix extra indirection in nmreq_remove_option: vmaffione.
Jul 13 2026, 7:28 AM
zlei accepted D58150: libnetmap: fix error path in nmport_extmem_from_file.
Jul 13 2026, 7:26 AM
zlei added a reviewer for D58150: libnetmap: fix error path in nmport_extmem_from_file: vmaffione.
Jul 13 2026, 7:25 AM
zlei added a comment to D58132: netinet6: Fix ND link-layer address option layout for IPoIB (stable/15).

@adrian Hi, could you please MFC this one into stable/15?
I'm not sure how to apply this patch from phabricator while cherry-picking it from CURRENT..

Jul 13 2026, 7:17 AM
zlei added a comment to D58096: netinet6: fix ND link-layer address option layout for IPoIB.

It's really hard to MFC this change to stable/15.

Jul 13 2026, 7:15 AM · network
zlei committed rG37340348b9a8: iflib: Add a missing CURVNET_RESTORE() in the error path (authored by Peter Ganzhorn <peter.ganzhorn@gmail.com>).
Jul 13 2026, 1:42 AM

Jul 8 2026

zlei accepted D58062: lagg: re-check port caps after bringing up a port.

Looks good to me.

Jul 8 2026, 5:09 AM
zlei accepted D58054: if_epair: support IFCAP_MEXTPG.

Looks good to me.

Jul 8 2026, 3:46 AM

Jun 30 2026

zlei accepted D57755: bsdinstall: add a hardening knob for unprivileged kenv access.

Looks good to me.

Jun 30 2026, 1:58 AM

Jun 21 2026

zlei accepted D57697: kern: add a security knob to disable unprivileged access to kenv.

Looks good to me.

Jun 21 2026, 3:48 PM

Jun 20 2026

zlei added a comment to D57669: if_gre(4): Fix races by changing initialization order and locks.

I'd recommend to split this to multiple commits. For example the removal of GRE_RLOCK() / GRE_RUNLOCK() in gre_transmit() is an optimization and does not look like a FIX.

Jun 20 2026, 7:59 AM
zlei added inline comments to D57697: kern: add a security knob to disable unprivileged access to kenv.
Jun 20 2026, 7:16 AM

Jun 15 2026

zlei added reviewers for D57519: netlink: Add sync path in user-kernel interface: emaste, pouria, markj.
Jun 15 2026, 8:22 AM