Page MenuHomeFreeBSD

zlei (Zhenlei Huang)
User

Projects

User Details

User Since
Apr 1 2021, 3:21 AM (226 w, 10 h)

Recent Activity

Today

zlei committed rGaee028cb4e96: if_genet: Plug memory leaks (authored by zlei).
if_genet: Plug memory leaks
Thu, Jul 31, 10:12 AM
zlei committed rG8c49d0a9f825: if_genet: Consistently use the boolean form (authored by zlei).
if_genet: Consistently use the boolean form
Thu, Jul 31, 10:12 AM
zlei committed rGbfbb93b6de6a: qlnxe: Advertise the IFCAP_HWSTATS capability (authored by zlei).
qlnxe: Advertise the IFCAP_HWSTATS capability
Thu, Jul 31, 4:41 AM
zlei committed rGcdd97f3aacf1: qlnxe: Fix advertising the IFCAP_LINKSTATE capability (authored by zlei).
qlnxe: Fix advertising the IFCAP_LINKSTATE capability
Thu, Jul 31, 4:41 AM

Tue, Jul 29

zlei accepted D51500: netinet6: Don't return non-IPv6 enabled interfaces from in6_getlinkifnet().
Tue, Jul 29, 11:20 AM

Sun, Jul 27

zlei requested review of D51566: tests: if_gif: Add tests to cover all IPv[46] in IPv[46] setups.
Sun, Jul 27, 5:06 AM

Sat, Jul 26

zlei accepted D51500: netinet6: Don't return non-IPv6 enabled interfaces from in6_getlinkifnet().

The change to in6_getlinkifnet() looks good to me.

Sat, Jul 26, 2:27 PM

Tue, Jul 22

zlei closed D51451: qlnxe: Advertise the IFCAP_HWSTATS capability.
Tue, Jul 22, 4:13 AM
zlei closed D51450: qlnxe: Fix advertising the IFCAP_LINKSTATE capability.
Tue, Jul 22, 4:13 AM
zlei committed rG386960a8805e: qlnxe: Advertise the IFCAP_HWSTATS capability (authored by zlei).
qlnxe: Advertise the IFCAP_HWSTATS capability
Tue, Jul 22, 4:12 AM
zlei committed rGc18860339d50: qlnxe: Fix advertising the IFCAP_LINKSTATE capability (authored by zlei).
qlnxe: Fix advertising the IFCAP_LINKSTATE capability
Tue, Jul 22, 4:12 AM
zlei committed rG97d5f16c6966: if_genet: Consistently use the boolean form (authored by zlei).
if_genet: Consistently use the boolean form
Tue, Jul 22, 4:06 AM
zlei committed rG337c3e9859e7: if_genet: Plug memory leaks (authored by zlei).
if_genet: Plug memory leaks
Tue, Jul 22, 4:06 AM
zlei added a comment to D51451: qlnxe: Advertise the IFCAP_HWSTATS capability.

I would remove the phrase 'change will not fix anything but' in the commit message and I think this is good.

Tue, Jul 22, 4:00 AM

Mon, Jul 21

zlei added a comment to D51451: qlnxe: Advertise the IFCAP_HWSTATS capability.

In the commit message do you mean to say there is something else double counting?

Mon, Jul 21, 12:53 PM
zlei requested review of D51451: qlnxe: Advertise the IFCAP_HWSTATS capability.
Mon, Jul 21, 11:18 AM
zlei requested review of D51450: qlnxe: Fix advertising the IFCAP_LINKSTATE capability.
Mon, Jul 21, 10:49 AM

Sun, Jul 20

zlei committed rGd9a1e54cb037: qlnxe: Fix error handling of SIOCGI2C ioctl (authored by zlei).
qlnxe: Fix error handling of SIOCGI2C ioctl
Sun, Jul 20, 2:18 PM
zlei committed rG8ef7ad95e915: qlnx: fix panic at startup (authored by kp).
qlnx: fix panic at startup
Sun, Jul 20, 2:10 PM
zlei committed rGf40f6374f3d2: qlnxe: Fix error handling of SIOCGI2C ioctl (authored by zlei).
qlnxe: Fix error handling of SIOCGI2C ioctl
Sun, Jul 20, 2:10 PM
zlei committed rGeaf1cda90610: qlnxe: Fix build with INET (authored by zlei).
qlnxe: Fix build with INET
Sun, Jul 20, 2:10 PM

Sat, Jul 19

zlei accepted D51409: mld: allow sysctls to be set per vnet.
Sat, Jul 19, 5:14 PM
zlei committed rGf46e95ae3add: if_genet: Plug memory leaks (authored by zlei).
if_genet: Plug memory leaks
Sat, Jul 19, 5:09 PM
zlei committed rG2fc051d09093: if_genet: Consistently use the boolean form (authored by zlei).
if_genet: Consistently use the boolean form
Sat, Jul 19, 5:09 PM
zlei accepted D51409: mld: allow sysctls to be set per vnet.

Looks good to me.

Sat, Jul 19, 9:45 AM

Thu, Jul 17

zlei added a comment to D51351: qlnxe: Fix SIOCGI2C ioctl.
In D51351#1173150, @kp wrote:

A bit late, but Steve confirmed this fixed the freeze with ifconfig when the SFP is not plugged in.

Thu, Jul 17, 3:35 PM
zlei added a comment to D51368: ifconfig: Garbage collect unused parameter swabips.

Open for review to see if someone has better knowledge about this parameter.

Thu, Jul 17, 10:34 AM
zlei requested review of D51368: ifconfig: Garbage collect unused parameter swabips.
Thu, Jul 17, 10:33 AM
zlei closed D51351: qlnxe: Fix SIOCGI2C ioctl.
Thu, Jul 17, 4:03 AM
zlei closed D51295: qlnxe: Fix build with INET.
Thu, Jul 17, 4:03 AM
zlei committed rG12fea464070a: qlnxe: Fix error handling of SIOCGI2C ioctl (authored by zlei).
qlnxe: Fix error handling of SIOCGI2C ioctl
Thu, Jul 17, 4:02 AM
zlei committed rG10d9ec31bf28: qlnxe: Fix build with INET (authored by zlei).
qlnxe: Fix build with INET
Thu, Jul 17, 4:02 AM

Wed, Jul 16

zlei updated the summary of D51295: qlnxe: Fix build with INET.
Wed, Jul 16, 4:45 PM
zlei requested review of D51351: qlnxe: Fix SIOCGI2C ioctl.
Wed, Jul 16, 4:45 PM

Tue, Jul 15

zlei closed D50947: ethernet: Move the assertion of ether header sizes back into ethernet.h.
Tue, Jul 15, 3:33 PM
zlei committed rGdb8296ff38cd: ethernet: Move the assertion of ether header sizes back into ethernet.h (authored by zlei).
ethernet: Move the assertion of ether header sizes back into ethernet.h
Tue, Jul 15, 3:33 PM
zlei added a comment to D50947: ethernet: Move the assertion of ether header sizes back into ethernet.h.

P.S. Why do you want to merge that to a stable branch?

The structs has __packed attribute so it is unlikely to have wrong size. Well I'm a little paranoiac that may happen in some way :)

It is not about observing a different size, but about the _Static_assert() not being support by some compiler with some flags. The risk is low of course. But practical benefits of having change in STABLE are also very low.

Tue, Jul 15, 3:17 PM
zlei added a comment to D50947: ethernet: Move the assertion of ether header sizes back into ethernet.h.

Please include the link to the exp-run bugzilla into the commit message.

P.S. Why do you want to merge that to a stable branch?

Tue, Jul 15, 2:54 AM

Mon, Jul 14

zlei added a comment to D50947: ethernet: Move the assertion of ether header sizes back into ethernet.h.

The exp-run looks good. Any objections ?

Mon, Jul 14, 10:39 AM
zlei added a comment to D51297: if_gif(4): Support the NOCLAMP flag to change the MTU handling for IPv6.

I like the word noclamp. Well, there're other tunneling interfaces such as if_gre, if_vxlan and if_wg. Will we introduce too many XX_NOCLAP flags for other types of tunneling interfaces?

Mon, Jul 14, 10:34 AM
zlei requested review of D51295: qlnxe: Fix build with INET.
Mon, Jul 14, 3:39 AM

Sat, Jul 12

zlei accepted D51245: tests/sys/net/if_bridge_test: fix MTU test.

Looks good to me.

Sat, Jul 12, 2:39 PM

Tue, Jul 8

zlei committed rG0a5e8108bf20: pfsync: Allocate and initialize buckets before attaching the interface (authored by zlei).
pfsync: Allocate and initialize buckets before attaching the interface
Tue, Jul 8, 10:06 AM
zlei committed rG9d53e7eaab9e: pfsync: Destroy buckets mutexes on clone destroying interface (authored by zlei).
pfsync: Destroy buckets mutexes on clone destroying interface
Tue, Jul 8, 10:06 AM
zlei committed rG2db01aea744f: pfsync: Remove a redundant assignment of if_type (authored by zlei).
pfsync: Remove a redundant assignment of if_type
Tue, Jul 8, 10:06 AM
zlei committed rG12a1baa42bd0: bridge: Remove a redundant assignment of if_type (authored by zlei).
bridge: Remove a redundant assignment of if_type
Tue, Jul 8, 10:06 AM
zlei committed rG56a81f37332a: ng_iface(4): Remove a redundant assignment of if_type (authored by zlei).
ng_iface(4): Remove a redundant assignment of if_type
Tue, Jul 8, 10:06 AM
zlei committed rGe59f60d3c08c: if_vlan: Fix up if_type before attaching the interface (authored by zlei).
if_vlan: Fix up if_type before attaching the interface
Tue, Jul 8, 10:06 AM
zlei committed rGafaa32661b48: axgbe: Fix setting promisc mode (authored by zlei).
axgbe: Fix setting promisc mode
Tue, Jul 8, 10:06 AM

Mon, Jul 7

zlei committed rG8cc376735c65: pfsync: Allocate and initialize buckets before attaching the interface (authored by zlei).
pfsync: Allocate and initialize buckets before attaching the interface
Mon, Jul 7, 10:10 AM
zlei committed rGefbaf14c5b68: pfsync: Destroy buckets mutexes on clone destroying interface (authored by zlei).
pfsync: Destroy buckets mutexes on clone destroying interface
Mon, Jul 7, 10:10 AM
zlei committed rGff54b680383b: if_vlan: Fix up if_type before attaching the interface (authored by zlei).
if_vlan: Fix up if_type before attaching the interface
Mon, Jul 7, 10:10 AM
zlei committed rG99d4e2870c03: ifnet: Eliminate unnecessary synchronization of the interface index in the link… (authored by zlei).
ifnet: Eliminate unnecessary synchronization of the interface index in the link…
Mon, Jul 7, 10:10 AM
zlei committed rG3bb09e6b1930: ethernet: Set maximum Ethernet header length based on the capability… (authored by zlei).
ethernet: Set maximum Ethernet header length based on the capability…
Mon, Jul 7, 10:09 AM
zlei committed rG193f0bde3b04: bridge: Remove a redundant assignment of if_type (authored by zlei).
bridge: Remove a redundant assignment of if_type
Mon, Jul 7, 10:09 AM
zlei committed rG082a6da890f3: pfsync: Remove a redundant assignment of if_type (authored by zlei).
pfsync: Remove a redundant assignment of if_type
Mon, Jul 7, 10:09 AM
zlei committed rG3da0853d7119: ng_iface(4): Remove a redundant assignment of if_type (authored by zlei).
ng_iface(4): Remove a redundant assignment of if_type
Mon, Jul 7, 10:09 AM
zlei committed rG1ddf7942c331: git-blame-ignore-revs: iflib style(9) tweaks (authored by zlei).
git-blame-ignore-revs: iflib style(9) tweaks
Mon, Jul 7, 10:09 AM
zlei committed rGa2989d11eabe: iflib: Some style(9) tweaks (authored by zlei).
iflib: Some style(9) tweaks
Mon, Jul 7, 10:09 AM
zlei committed rG3bc1aea4cc8a: if_firewire: Make firewire_broadcastaddr static const (authored by zlei).
if_firewire: Make firewire_broadcastaddr static const
Mon, Jul 7, 10:09 AM
zlei committed rG2466a1871154: ifnet: Initialize the address family dependent data region earlier (authored by zlei).
ifnet: Initialize the address family dependent data region earlier
Mon, Jul 7, 10:09 AM
zlei committed rG077895676d3b: UPDATING: Add an entry for the removal of in6_maxmtu (authored by zlei).
UPDATING: Add an entry for the removal of in6_maxmtu
Mon, Jul 7, 10:08 AM
zlei committed rGf5195b1a63df: netinet6: Remove a set but not used global variable in6_maxmtu (authored by zlei).
netinet6: Remove a set but not used global variable in6_maxmtu
Mon, Jul 7, 10:08 AM
zlei committed rG839b9596b35d: axgbe: Fix setting promisc mode (authored by zlei).
axgbe: Fix setting promisc mode
Mon, Jul 7, 10:08 AM
zlei committed rG8ba6d328fdf8: git-blame-ignore-revs: sys/sys/kernel.h: Various whitespace fixes (authored by zlei).
git-blame-ignore-revs: sys/sys/kernel.h: Various whitespace fixes
Mon, Jul 7, 10:08 AM
zlei committed rGf0931a31f536: git-blame-ignore-revs: iflib: Many style fixes (authored by zlei).
git-blame-ignore-revs: iflib: Many style fixes
Mon, Jul 7, 10:07 AM
zlei committed rG72652c93e396: git-blame-ignore-revs: bpf: Some style and white space cleanup (authored by zlei).
git-blame-ignore-revs: bpf: Some style and white space cleanup
Mon, Jul 7, 10:07 AM

Sat, Jul 5

zlei added a comment to D51157: if_epair(4): use ether_gen_addr(9) for stable MAC address.

For hardware interfaces, the hardware address is a nature of the interface, regardless of its name or host uuid or jail name.

Sat, Jul 5, 2:44 AM

Thu, Jul 3

zlei added inline comments to D51139: Clarify the purpose of interface groups in ifconfig(8).
Thu, Jul 3, 7:03 AM

Jul 1 2025

zlei accepted D50241: Teach ngctl to attach and run itself in a jail..
Jul 1 2025, 12:58 AM

Jun 28 2025

zlei committed rGedc307eca9a9: pfsync: Allocate and initialize buckets before attaching the interface (authored by zlei).
pfsync: Allocate and initialize buckets before attaching the interface
Jun 28 2025, 3:49 PM
zlei committed rG8213c07c2058: pfsync: Destroy buckets mutexes on clone destroying interface (authored by zlei).
pfsync: Destroy buckets mutexes on clone destroying interface
Jun 28 2025, 3:49 PM
zlei closed D51064: pfsync: Allocate and initialize buckets before attaching the interface.
Jun 28 2025, 3:49 PM
zlei closed D51063: pfsync: Destroy mutexes on clone destroying interface.
Jun 28 2025, 3:49 PM

Jun 27 2025

zlei added a comment to D51067: (draft) if: Ensure additions to groups are visible to readers.

That fence should be too much, and CK_STAILQ_INSERT_TAIL() is supposed to insert a proper store to store barrier, so this is probably a mistake, but if possible I'd like to know if that changes something in practice.

Jun 27 2025, 3:07 AM

Jun 26 2025

zlei closed D50914: if_vlan: Fix up the if_type prior to attaching the interface.
Jun 26 2025, 4:41 PM
zlei committed rGa19b353d354d: if_vlan: Fix up if_type before attaching the interface (authored by zlei).
if_vlan: Fix up if_type before attaching the interface
Jun 26 2025, 4:41 PM
zlei requested review of D51064: pfsync: Allocate and initialize buckets before attaching the interface.
Jun 26 2025, 2:04 PM
zlei requested review of D51063: pfsync: Destroy mutexes on clone destroying interface.
Jun 26 2025, 2:02 PM

Jun 25 2025

zlei accepted D50505: bridge.4: clarify vlan support status.
Jun 25 2025, 10:01 AM
zlei accepted D50504: allow vlan(4) interfaces to be created on a bridge(4).

Generally looks good to me.

Jun 25 2025, 10:00 AM

Jun 24 2025

zlei closed D50975: ifnet: Eliminate unnecessary synchronization of the interface index in the link layer address.
Jun 24 2025, 10:02 AM
zlei committed rG0b4c4833ee3e: ifnet: Eliminate unnecessary synchronization of the interface index in the link… (authored by zlei).
ifnet: Eliminate unnecessary synchronization of the interface index in the link…
Jun 24 2025, 10:02 AM
zlei added a comment to D50947: ethernet: Move the assertion of ether header sizes back into ethernet.h.

I intended to MFC this to stable/14, but stable/14 still has gnu99 as the default.

But this header is also used outside of the base system, isn't it? This could break applications using ethernet.h compiled with -pedantic -std=c99 -Werror, for instance. I'm not sure if any exist, but an exp-run would be a good idea IMO.

That is exactly what I concerned. Or I push this in main and later do exp-run before the MFCing ?

It would be better to do the exp-run first, I think. There may be enough failures that this change is not worthwhile.

Jun 24 2025, 9:51 AM

Jun 23 2025

zlei requested review of D50975: ifnet: Eliminate unnecessary synchronization of the interface index in the link layer address.
Jun 23 2025, 8:28 AM

Jun 21 2025

zlei closed D50846: ethernet: Set maximum Ethernet header length based on the capability IFCAP_VLAN_MTU.
Jun 21 2025, 3:28 PM
zlei committed rG6ce8fd1978a9: ethernet: Set maximum Ethernet header length based on the capability… (authored by zlei).
ethernet: Set maximum Ethernet header length based on the capability…
Jun 21 2025, 3:28 PM
zlei added a comment to D50947: ethernet: Move the assertion of ether header sizes back into ethernet.h.

I intended to MFC this to stable/14, but stable/14 still has gnu99 as the default.

But this header is also used outside of the base system, isn't it? This could break applications using ethernet.h compiled with -pedantic -std=c99 -Werror, for instance. I'm not sure if any exist, but an exp-run would be a good idea IMO.

Jun 21 2025, 3:26 PM

Jun 20 2025

zlei added a comment to D50947: ethernet: Move the assertion of ether header sizes back into ethernet.h.

I intended to MFC this to stable/14, but stable/14 still has gnu99 as the default. Modern compilers used by FreeBSD support _Static_assert so for in-tree consumes the MFC should be safe, then how about the out-of-tree consumes ?

Jun 20 2025, 5:30 AM
zlei requested review of D50947: ethernet: Move the assertion of ether header sizes back into ethernet.h.
Jun 20 2025, 5:19 AM

Jun 18 2025

zlei requested review of D50914: if_vlan: Fix up the if_type prior to attaching the interface.
Jun 18 2025, 4:58 AM

Jun 16 2025

zlei committed rGa07604e6264b: bridge: Remove a redundant assignment of if_type (authored by zlei).
bridge: Remove a redundant assignment of if_type
Jun 16 2025, 2:46 PM
zlei committed rG48af70e7c821: pfsync: Remove a redundant assignment of if_type (authored by zlei).
pfsync: Remove a redundant assignment of if_type
Jun 16 2025, 2:13 PM

Jun 14 2025

zlei updated subscribers of D50846: ethernet: Set maximum Ethernet header length based on the capability IFCAP_VLAN_MTU.
Jun 14 2025, 4:08 PM
zlei added a comment to D50846: ethernet: Set maximum Ethernet header length based on the capability IFCAP_VLAN_MTU.

In-tree drivers will be cleaned up in following up commits. I intended to mention this behavior change in UPDATING, but 3rd party shall not be affected, if they FIX the header length after attaching the interface.

Jun 14 2025, 3:27 PM
zlei requested review of D50846: ethernet: Set maximum Ethernet header length based on the capability IFCAP_VLAN_MTU.
Jun 14 2025, 3:22 PM

Jun 13 2025

zlei committed rGc43d6dadf7e3: ng_iface(4): Remove a redundant assignment of if_type (authored by zlei).
ng_iface(4): Remove a redundant assignment of if_type
Jun 13 2025, 10:14 AM
zlei accepted D50819: qlnx: fix panic at startup.
Jun 13 2025, 3:29 AM

Jun 6 2025

zlei requested review of D50713: iflib: Make iflib_register() return void.
Jun 6 2025, 10:17 AM
zlei added inline comments to D50712: iflib: Set the get counter routine prior to attaching the interface.
Jun 6 2025, 10:16 AM