Page MenuHomeFreeBSD

zlei (Zhenlei Huang)
User

Projects

User Details

User Since
Apr 1 2021, 3:21 AM (258 w, 17 h)

Recent Activity

Today

zlei added a comment to D55828: ifnet: Remove unreachable code.

I though that a bit, and I think no need for the assertions.

So your point is that as we see that ifioctl() already did this check the assertions are not needed, as we already know that they will never fire.

Thu, Mar 12, 7:17 PM
zlei added a comment to D55828: ifnet: Remove unreachable code.

I though that a bit, and I think no need for the assertions.

So your point is that as we see that ifioctl() already did this check the assertions are not needed, as we already know that they will never fire. But that's the point of assertions - to put them so that they never fire :) Assertions also act as documentation.

I'm not insisting on assertions, just suggesting. My longer term plan is to get rid of if_vmove anyway.

Thu, Mar 12, 6:49 PM
zlei added a comment to D55828: ifnet: Remove unreachable code.

The current logic of checking the src / dst vnet is a bit confusing. Refactor them a little. See D55832 .

Thu, Mar 12, 6:44 PM
zlei requested review of D55832: ifnet: if_vmove_(loan|reclaim): Refactor a bit the checking of src / dst vnet.
Thu, Mar 12, 6:41 PM
zlei added a comment to D55828: ifnet: Remove unreachable code.

I'd suggest to add assertions that VNET is not shutting down.

Thu, Mar 12, 6:11 PM
zlei added a comment to D55828: ifnet: Remove unreachable code.

This makes sense in if_vmove_reclaim, where the vnet comes from the held prison.

Thu, Mar 12, 5:55 PM
zlei added a comment to D55828: ifnet: Remove unreachable code.

I think I read the code carefully. Please do not hesitate to correct me if I missed anything important.

Thu, Mar 12, 3:25 PM
zlei requested review of D55828: ifnet: Remove unreachable code.
Thu, Mar 12, 3:23 PM
zlei committed rG5f0ab9d9e965: amd64: Make start_all_aps() static (authored by zlei).
amd64: Make start_all_aps() static
Thu, Mar 12, 4:26 AM
zlei closed D55668: amd64: Make start_all_aps() static.
Thu, Mar 12, 4:26 AM

Thu, Mar 5

zlei added a comment to D55668: amd64: Make start_all_aps() static.

I'm almost certainly that leaving start_all_aps() public visible was unintended. Post to review for sure.

Thu, Mar 5, 2:57 PM
zlei requested review of D55668: amd64: Make start_all_aps() static.
Thu, Mar 5, 2:54 PM
zlei committed rGec22c4022ddb: vnet: Ensure the space allocated by vnet_data_alloc() is sufficent aligned (authored by zlei).
vnet: Ensure the space allocated by vnet_data_alloc() is sufficent aligned
Thu, Mar 5, 11:14 AM
zlei committed rGbaee504b868b: vnet: Ensure the space allocated by vnet_data_alloc() is sufficent aligned (authored by zlei).
vnet: Ensure the space allocated by vnet_data_alloc() is sufficent aligned
Thu, Mar 5, 11:05 AM
zlei committed rG973d607b284b: vnet: Ensure the space allocated by vnet_data_alloc() is sufficent aligned (authored by zlei).
vnet: Ensure the space allocated by vnet_data_alloc() is sufficent aligned
Thu, Mar 5, 10:53 AM

Tue, Mar 3

zlei added a comment to D49076: tests: carp: Update unicast_v4 to catch PR 284872.

The git change made me crazy while I revisit this after one year -:)

Tue, Mar 3, 1:55 AM

Sun, Mar 1

zlei added a comment to D53484: Remove RIP and RIPng.
In D53484#1272094, @ivy wrote:
In D53484#1270635, @bms wrote:

It's not strictly necessary, but extra karma if you do. It looks like @cy is tracking that as ports/net/freebsd-routed anyway.

well, i don't care about this code or RIP in general and i have no idea who Vernon Schryver is or what sort of diffs we might want to upstream, so i don't really want to be responsible for this. if someone else would like to take on that task, the code will still be available in our git history (and in the port, as you mentioned).

I wouldn't rule out RIP/RIPng entirely, as there may still be "sticking plaster" situations where they are required

people who still require RIP can use a modern implementation, such as in the ports net/bird3 or net/frr10. as far as i'm aware these both work well on FreeBSD and have good implementations of both RIP and RIPng.

i personally don't think anyone should be using RIP anymore, but if they want to, they can continue to do so; we just don't want to support this in src anymore.

Sun, Mar 1, 4:02 PM

Sat, Feb 28

zlei added a comment to D55593: netinet6: Fix memory leak on auto_linklocal.

@pouria

MFC to: stable/15

Sat, Feb 28, 5:45 PM
zlei added a reviewer for D55593: netinet6: Fix memory leak on auto_linklocal: melifaro.
Sat, Feb 28, 5:43 PM
zlei added inline comments to D55593: netinet6: Fix memory leak on auto_linklocal.
Sat, Feb 28, 5:42 PM
zlei accepted D55593: netinet6: Fix memory leak on auto_linklocal.

Looks good to me.

Sat, Feb 28, 5:34 PM
zlei added a comment to D55593: netinet6: Fix memory leak on auto_linklocal.

I'd rather prefer this, to ease my brain ;)

Sat, Feb 28, 5:27 PM
zlei committed rG32beb3ae71cb: vnet: Ensure the space allocated by vnet_data_alloc() is sufficent aligned (authored by zlei).
vnet: Ensure the space allocated by vnet_data_alloc() is sufficent aligned
Sat, Feb 28, 11:37 AM
zlei closed D55560: vnet: Ensure space allocated by vnet_data_alloc() is properly aligned.
Sat, Feb 28, 11:36 AM

Fri, Feb 27

zlei added inline comments to D20838: aarch64: expose esr in mcontext.
Fri, Feb 27, 7:08 PM · arm64
zlei added a comment to D55560: vnet: Ensure space allocated by vnet_data_alloc() is properly aligned.
In D55560#1271351, @mjg wrote:

I did not co-autor the change, so please drop that tag.

Fri, Feb 27, 6:59 PM
zlei updated subscribers of D55560: vnet: Ensure space allocated by vnet_data_alloc() is properly aligned.
Fri, Feb 27, 12:18 PM
zlei updated subscribers of D55560: vnet: Ensure space allocated by vnet_data_alloc() is properly aligned.
Fri, Feb 27, 12:17 PM
zlei requested review of D55560: vnet: Ensure space allocated by vnet_data_alloc() is properly aligned.
Fri, Feb 27, 12:12 PM

Thu, Feb 26

zlei accepted D55537: divert: Use a better source identifier for netisr_queue_src() calls.

Good idea !

Thu, Feb 26, 7:01 PM
zlei added inline comments to D54614: bge: Convert driver to CTLFLAG_MPSAFE.
Thu, Feb 26, 6:16 PM
zlei committed rGbaed1f130ab1: qlnx: fix panic at startup (authored by kp).
qlnx: fix panic at startup
Thu, Feb 26, 2:35 PM
zlei committed rG59c399d38dd8: qlnxe: Remove a pointless copy back from the link-layer address (authored by zlei).
qlnxe: Remove a pointless copy back from the link-layer address
Thu, Feb 26, 2:34 PM
zlei committed rG8f1de03b50d0: qlnxe: Advertise the IFCAP_HWSTATS capability (authored by zlei).
qlnxe: Advertise the IFCAP_HWSTATS capability
Thu, Feb 26, 2:34 PM

Tue, Feb 24

zlei added a comment to D49447: WIP ifnet: Introduce and use ifnet_byindex_attached() for outpath.

Are you still working on this? @zlei
Could you please set the planned change state for this revision?

Tue, Feb 24, 1:48 PM
zlei committed rG091a1e7d21c9: qlnxe: Overhaul setting the multicast MAC filters (authored by zlei).
qlnxe: Overhaul setting the multicast MAC filters
Tue, Feb 24, 10:47 AM
zlei committed rG281d578e9ff5: qlnxe: Allow tapping the TX packets (authored by zlei).
qlnxe: Allow tapping the TX packets
Tue, Feb 24, 10:47 AM
zlei committed rGeeb4c04dd12b: qlnxe: Refactor setting the promiscuous and allmulti mode (authored by zlei).
qlnxe: Refactor setting the promiscuous and allmulti mode
Tue, Feb 24, 10:47 AM
zlei committed rG52609ccbf703: qlnxe: Let ether_ioctl() handle SIOCSIFADDR ioctl (authored by zlei).
qlnxe: Let ether_ioctl() handle SIOCSIFADDR ioctl
Tue, Feb 24, 10:47 AM
zlei committed rGaef23e8e2736: qlnxe: Avoid reinitializing the interface when it is already initialized (authored by zlei).
qlnxe: Avoid reinitializing the interface when it is already initialized
Tue, Feb 24, 10:46 AM
zlei committed rGe16c965add1d: qlnxe: Prevent potential concurrency between ioctls (authored by zlei).
qlnxe: Prevent potential concurrency between ioctls
Tue, Feb 24, 10:46 AM
zlei committed rGfb463bcd621b: qlnxe: Fix setting the unicast MAC filter of RX path (authored by zlei).
qlnxe: Fix setting the unicast MAC filter of RX path
Tue, Feb 24, 10:46 AM
zlei committed rG18e4cb41e945: qlnxe: Avoid memcpy with same source and destination (authored by zlei).
qlnxe: Avoid memcpy with same source and destination
Tue, Feb 24, 10:46 AM
zlei committed rG610b81333f48: qlnxe: Fix promiscuous and allmulti settings (authored by Keith Reynolds <keith.reynolds@hpe.com>).
qlnxe: Fix promiscuous and allmulti settings
Tue, Feb 24, 10:45 AM

Sun, Feb 22

zlei accepted D55420: rge: correctly free busdma memory / zero things out only if allocated.

Looks good to me.

Sun, Feb 22, 6:39 AM · network
zlei accepted D55402: rge: log silicon revision during attach.

Looks good to me.

Sun, Feb 22, 3:42 AM · network
zlei accepted D55419: rge: fix callout setup/teardown; handle invalid ethernet address.

Looks good to me.

Sun, Feb 22, 3:26 AM · network

Fri, Feb 20

zlei added a comment to D55398: if_gre: make access to softc's data safe in network epoch.

Ahh, I think I see what's happening. While some time ago I was trying to diagnose PR 275474, I observed UAF and got messed up in mind.

Fri, Feb 20, 6:59 PM

Thu, Feb 19

zlei accepted D55367: icmp6: Remove csum_flags on mbuf reused for ICMP message.

Looks good to me.

Thu, Feb 19, 2:09 PM

Mon, Feb 16

zlei committed rGfe1299f16c55: lagg: Avoid dropping locks when starting the interface (authored by zlei).
lagg: Avoid dropping locks when starting the interface
Mon, Feb 16, 10:01 AM
zlei committed rG6ceb731a9897: lagg: Make lagg_link_active() static (authored by zlei).
lagg: Make lagg_link_active() static
Mon, Feb 16, 10:01 AM

Fri, Feb 13

zlei accepted D55236: ip_mroute: Make the routing socket private.

Looks good!

Fri, Feb 13, 11:28 AM

Thu, Feb 12

zlei accepted D55259: ngctl: Fix buffer overflow in config command.

Solid fix !

Thu, Feb 12, 3:24 PM

Wed, Feb 11

zlei committed rGc182cf646a4f: lagg: Avoid dropping locks when starting the interface (authored by zlei).
lagg: Avoid dropping locks when starting the interface
Wed, Feb 11, 6:17 PM
zlei closed D55198: lagg: Avoid dropping locks when starting the interface.
Wed, Feb 11, 6:17 PM
zlei added a comment to D55198: lagg: Avoid dropping locks when starting the interface.

The init routine of a lagg(4) interface will not change during the whole lifecycle. So we can call lagg_init() directly instead of through the function pointer.

I just want to note that this logic does not generalize everywhere. e.g., netmap will sneakily override the I/O routines in an ifnet in some cases. It does not touch if_init, so this particular case is ok.

Wed, Feb 11, 5:41 PM
zlei added a reverting change for rG8a847947153e: sys/modules: fix standalone build for multiple modules: rGe1a051fd53a0: qlnxev: Remove now unneeded include for opt_inet.h.
Wed, Feb 11, 1:50 PM
zlei committed rG87942d7f8fc5: qlnxe: Overhaul setting the multicast MAC filters (authored by zlei).
qlnxe: Overhaul setting the multicast MAC filters
Wed, Feb 11, 1:50 PM
zlei committed rGddfe98e8ccb1: qlnxe: Allow tapping the TX packets (authored by zlei).
qlnxe: Allow tapping the TX packets
Wed, Feb 11, 1:50 PM
zlei committed rG00ab0df79364: qlnxe: Refactor setting the promiscuous and allmulti mode (authored by zlei).
qlnxe: Refactor setting the promiscuous and allmulti mode
Wed, Feb 11, 1:49 PM
zlei committed rGe1a051fd53a0: qlnxev: Remove now unneeded include for opt_inet.h (authored by zlei).
qlnxev: Remove now unneeded include for opt_inet.h
Wed, Feb 11, 1:49 PM
zlei committed rG20ffe22fcfe1: qlnxe: Let ether_ioctl() handle SIOCSIFADDR ioctl (authored by zlei).
qlnxe: Let ether_ioctl() handle SIOCSIFADDR ioctl
Wed, Feb 11, 1:49 PM
zlei committed rGee6495580925: qlnxe: Avoid reinitializing the interface when it is already initialized (authored by zlei).
qlnxe: Avoid reinitializing the interface when it is already initialized
Wed, Feb 11, 1:49 PM
zlei committed rG6e5b12acb66a: qlnxe: Prevent potential concurrency between ioctls (authored by zlei).
qlnxe: Prevent potential concurrency between ioctls
Wed, Feb 11, 1:49 PM
zlei committed rG93719f8c8348: qlnxe: Fix setting the unicast MAC filter of RX path (authored by zlei).
qlnxe: Fix setting the unicast MAC filter of RX path
Wed, Feb 11, 1:49 PM
zlei added a reverting change for D52062: sys/modules: fix standalone build for multiple build: rGe1a051fd53a0: qlnxev: Remove now unneeded include for opt_inet.h.
Wed, Feb 11, 1:49 PM
zlei committed rG7d7cee09b9a4: qlnxe: Remove a pointless copy back from the link-layer address (authored by zlei).
qlnxe: Remove a pointless copy back from the link-layer address
Wed, Feb 11, 1:49 PM
zlei committed rGea1143bddbc3: qlnxe: Avoid memcpy with same source and destination (authored by zlei).
qlnxe: Avoid memcpy with same source and destination
Wed, Feb 11, 1:49 PM
zlei added a reverting change for rG8a847947153e: sys/modules: fix standalone build for multiple modules: rG926e44b49834: qlnxev: Remove now unneeded include for opt_inet.h.
Wed, Feb 11, 10:04 AM
zlei committed rG0233e3f8953b: lagg: Remove the member pr_num from struct lagg_proto (authored by zlei).
lagg: Remove the member pr_num from struct lagg_proto
Wed, Feb 11, 10:04 AM
zlei committed rG0cfc1145cdfc: qlnxe: Overhaul setting the multicast MAC filters (authored by zlei).
qlnxe: Overhaul setting the multicast MAC filters
Wed, Feb 11, 10:04 AM
zlei committed rG18c70c737cb3: lagg: Make the none protocol a first-class citizen (authored by zlei).
lagg: Make the none protocol a first-class citizen
Wed, Feb 11, 10:04 AM
zlei committed rG425b9cec0b8c: qlnxe: Allow tapping the TX packets (authored by zlei).
qlnxe: Allow tapping the TX packets
Wed, Feb 11, 10:04 AM
zlei committed rGb8d2c1c36746: qlnxe: Refactor setting the promiscuous and allmulti mode (authored by zlei).
qlnxe: Refactor setting the promiscuous and allmulti mode
Wed, Feb 11, 10:04 AM
zlei committed rG926e44b49834: qlnxev: Remove now unneeded include for opt_inet.h (authored by zlei).
qlnxev: Remove now unneeded include for opt_inet.h
Wed, Feb 11, 10:04 AM
zlei committed rG0f383f74b739: qlnxe: Let ether_ioctl() handle SIOCSIFADDR ioctl (authored by zlei).
qlnxe: Let ether_ioctl() handle SIOCSIFADDR ioctl
Wed, Feb 11, 10:03 AM
zlei committed rG8731ff4871d5: qlnxe: Avoid reinitializing the interface when it is already initialized (authored by zlei).
qlnxe: Avoid reinitializing the interface when it is already initialized
Wed, Feb 11, 10:03 AM
zlei committed rG285b25c080fa: qlnxe: Prevent potential concurrency between ioctls (authored by zlei).
qlnxe: Prevent potential concurrency between ioctls
Wed, Feb 11, 10:03 AM
zlei committed rG6d138e958ffb: qlnxe: Fix setting the unicast MAC filter of RX path (authored by zlei).
qlnxe: Fix setting the unicast MAC filter of RX path
Wed, Feb 11, 10:03 AM
zlei committed rG646218959504: qlnxe: Avoid memcpy with same source and destination (authored by zlei).
qlnxe: Avoid memcpy with same source and destination
Wed, Feb 11, 10:03 AM
zlei added a reverting change for D52062: sys/modules: fix standalone build for multiple build: rG926e44b49834: qlnxev: Remove now unneeded include for opt_inet.h.
Wed, Feb 11, 10:03 AM
zlei committed rG23ffd1650cc4: qlnxe: Remove a pointless copy back from the link-layer address (authored by zlei).
qlnxe: Remove a pointless copy back from the link-layer address
Wed, Feb 11, 10:03 AM
zlei added inline comments to D55236: ip_mroute: Make the routing socket private.
Wed, Feb 11, 2:33 AM
zlei updated subscribers of D55203: svc_vc.c: Add support for an xp_extpg boolean.
Wed, Feb 11, 1:58 AM
zlei accepted D54972: atf_python/vnet: Make it possible to set the FIB of vnet interfaces.

Looks good to me.

Wed, Feb 11, 1:22 AM

Feb 10 2026

zlei added inline comments to D54972: atf_python/vnet: Make it possible to set the FIB of vnet interfaces.
Feb 10 2026, 6:12 PM
zlei added inline comments to D54972: atf_python/vnet: Make it possible to set the FIB of vnet interfaces.
Feb 10 2026, 5:41 PM
zlei added a comment to D55203: svc_vc.c: Add support for an xp_extpg boolean.
Feb 10 2026, 10:11 AM

Feb 9 2026

zlei requested review of D55198: lagg: Avoid dropping locks when starting the interface.
Feb 9 2026, 6:34 PM
zlei accepted D55138: Switch net.inet6.ip6.use_stableaddr to on by default.
Feb 9 2026, 6:32 PM
zlei committed rG30988d0a7bd7: lagg: Make lagg_link_active() static (authored by zlei).
lagg: Make lagg_link_active() static
Feb 9 2026, 5:50 PM

Feb 8 2026

zlei added inline comments to D55138: Switch net.inet6.ip6.use_stableaddr to on by default.
Feb 8 2026, 5:19 AM
zlei accepted D55171: net: Remove the IFF_RENAMING flag.

Looks good to me.

Feb 8 2026, 5:00 AM

Feb 7 2026

zlei added a comment to D54443: if_gre: Add netlink support with tests.

Except for the tests, do you have real usage of the netlink protocol ? The commit message does not mention it. So it is better to explain, otherwise would confuse people.

Feb 7 2026, 4:03 PM

Feb 6 2026

zlei accepted D55138: Switch net.inet6.ip6.use_stableaddr to on by default.

This is a behavior change. Please also add a meta Relnotes: yes to the commit message.

Feb 6 2026, 7:34 PM
zlei closed D54892: qlnxe: Overhaul setting the multicast MAC filters.
Feb 6 2026, 6:05 PM
zlei closed D54891: qlnxe: Allow tapping the tx packets.
Feb 6 2026, 6:01 PM
zlei closed D54887: qlnxe: Avoid reinitializing the interface when it is already initialized.
Feb 6 2026, 6:01 PM
zlei closed D54885: qlnxe: Fix setting unicast MAC filter of rx path.
Feb 6 2026, 6:01 PM
zlei added a reverting change for rG8a847947153e: sys/modules: fix standalone build for multiple modules: rGec7950fe4234: qlnxev: Remove now unneeded include for opt_inet.h.
Feb 6 2026, 6:01 PM