Files
freebsd-src/usr.sbin
John Baldwin d1a8fa2e0f ctld: Only check physical port linking in a single configuration context
Commit 969876fcee moved struct pport from being per-configuration to
being a "global" object shared across multiple configurations.  As a
result, the check for duplicate ports actually spanned across
configurations, such that reloading a configuration would now think
that existing physical ports were already linked.

The linking field in pport added in the C++-ification (commit
6acc7afa34) faithfully replicated this bug (albeit simpler as I had
noticed that the TAILQ links weren't used after the earlier commit).

To restore the desired behavior, remove the linking field from struct
pport entirely and use a local unordered_map in conf::add_pports which
tracks if a given pport is claimed by more than one target.

PR:		293076
Reported by:	Ken J. Thomson <[email protected]>
Fixes:		969876fcee ("ctld: parse config file independently of getting kernel info")
Sponsored by:	Chelsio Communications
Differential Revision:	https://reviews.freebsd.org/D57093
2026-05-27 16:57:38 -04:00
..
2026-05-03 13:53:25 -04:00
2026-05-03 13:53:25 -04:00
2025-08-12 14:35:35 -06:00
2026-05-03 05:31:51 +00:00
2026-05-03 05:31:51 +00:00
2024-11-03 15:18:39 -05:00
2025-11-12 12:09:09 -05:00
2026-05-12 20:05:19 +00:00
2025-07-22 16:06:31 -04:00
2024-10-14 10:26:17 -07:00
2024-11-04 11:26:14 -04:00
2026-03-18 14:00:43 -07:00
2026-01-05 11:04:46 -05:00
2026-01-06 12:56:50 -05:00
2026-05-25 18:52:17 +02:00
2024-09-21 05:25:15 -06:00
2024-01-24 17:10:24 -05:00
2026-02-24 15:29:01 +01:00
2026-05-03 13:53:25 -04:00
2026-03-10 12:51:00 -04:00
2024-10-14 10:26:17 -07:00
2024-10-14 10:26:17 -07:00
2024-10-14 10:26:17 -07:00
2025-05-21 12:37:10 -04:00
2024-11-04 08:57:13 -05:00
2025-11-14 15:29:05 +01:00
2025-05-05 16:39:25 +01:00
2025-08-07 03:23:19 +02:00
2026-03-06 16:05:09 +03:30
2025-11-18 16:24:20 +00:00
2026-05-27 17:27:11 +02:00
2026-05-25 18:52:15 +02:00
2026-03-15 23:22:18 -03:00
2025-03-31 16:55:39 +02:00
2025-12-09 21:57:10 +07:00
2025-08-06 11:18:59 -04:00
2025-03-29 17:48:06 -03:00
2025-11-08 08:04:33 +00:00
2024-10-14 10:26:17 -07:00
2025-08-22 16:13:15 -04:00
2026-05-27 00:05:45 +01:00
2026-05-11 15:18:52 -07:00
2026-01-09 11:28:43 -05:00