HomeFreeBSD

lagg: Handle a port count of zero

Description

lagg: Handle a port count of zero

The sc_count check in lagg_transmit_ethernet() and
lagg_transmit_infiniband() is racy, as the lagg protocol handlers are
only synchronized by net_epoch. Handle a count of 0 in each protocol
handler where it's needed, namely in the RR and LB handlers.

Reported by: Yuxiang Yang, Yizhou Zhao, Xuewei Feng, Qi Li, and Ke Xu from Tsinghua University using GLM5.1 from Z.ai
Reviewed by: pouria, zlei
MFC after: 2 weeks
Differential Revision: https://reviews.freebsd.org/D56942

Details

Provenance
markjAuthored on Jun 1 2026, 4:40 PM
Reviewer
pouria
Differential Revision
D56942: lagg: Handle a port count of zero
Parents
rG86326398b73b: Merge commit 63c29df8eceb from llvm git (by Dmitry Polukhin):
Branches
Unknown
Tags
Unknown