Re: [RFC 0/7] Introduce FreeBSD macros for SAFE iteration

2025-01-27 Thread Stephen Hemminger
On Mon, 27 Jan 2025 20:29:55 +0100 Morten Brørup wrote: > > From: Stephen Hemminger [mailto:step...@networkplumber.org] > > Sent: Monday, 27 January 2025 19.44 > > > > On Mon, 27 Jan 2025 18:16:18 + > > Bruce Richardson wrote: > > > > > On Mon, Jan 27, 2025 at 10:03:54AM -0800, Stephen H

RE: [RFC 0/7] Introduce FreeBSD macros for SAFE iteration

2025-01-27 Thread Morten Brørup
> From: Stephen Hemminger [mailto:step...@networkplumber.org] > Sent: Monday, 27 January 2025 19.44 > > On Mon, 27 Jan 2025 18:16:18 + > Bruce Richardson wrote: > > > On Mon, Jan 27, 2025 at 10:03:54AM -0800, Stephen Hemminger wrote: > > > This series adds common macros for safe iteration ov

Re: [RFC 0/7] Introduce FreeBSD macros for SAFE iteration

2025-01-27 Thread Stephen Hemminger
On Mon, 27 Jan 2025 18:16:18 + Bruce Richardson wrote: > On Mon, Jan 27, 2025 at 10:03:54AM -0800, Stephen Hemminger wrote: > > This series adds common macros for safe iteration over lists. > > It is a subset copy of the macros from FreeBSD that are > > missing from the Linux header sys/queue

Re: [RFC 0/7] Introduce FreeBSD macros for SAFE iteration

2025-01-27 Thread Bruce Richardson
On Mon, Jan 27, 2025 at 10:03:54AM -0800, Stephen Hemminger wrote: > This series adds common macros for safe iteration over lists. > It is a subset copy of the macros from FreeBSD that are > missing from the Linux header sys/queue.h > > Chose this over several other options: > - let each driver