net: consolidate PXE processor architecture type Kconfig
authorHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Sun, 8 Jun 2025 07:42:28 +0000 (09:42 +0200)
committerTom Rini <trini@konsulko.com>
Thu, 26 Jun 2025 14:17:17 +0000 (08:17 -0600)
commit092f0c45f4663d03340e50a4752ad56cfd8994b4
tree36c336e610ee538097d69ab0c8bcc7495a8ede1b
parent14480c84dcdbdb5d7861fc1e1100900a8cd16e87
net: consolidate PXE processor architecture type Kconfig

DHCP and DHCPv6 use the same value defined in
https://www.iana.org/assignments/dhcpv6-parameters#processor-architecture
to encode the processor architecture type. We should only use a single
Kconfig symbol for both protocols.

Furthermore we should make the value customizable. This allows for instance
to choose between "x86 BIOS" or "x64 UEFI".

As "x86 BIOS" is encoded as 0, we should not use this value to switch
off transmission of the DHCP option. Use 0xFF instead.

Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
Acked-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
Reviewed-by: Tom Rini <trini@konsulko.com>
cmd/Kconfig
net/bootp.c
net/dhcpv6.c