From c34249b90a6a3faab59f92385f513b49afc92ac6 Mon Sep 17 00:00:00 2001 From: logicog Date: Mon, 23 Mar 2026 07:55:53 +0100 Subject: [PATCH] Add n_10g property in machine structure This uint8_t field corresponds to the n_sfp field and gives the number of 10G ports for the machine. The values can be 0, 1, 2 for known machines, all currently supported machines do not have any 10G ports, so no need to change any entries in machine.c --- machine.h | 1 + 1 file changed, 1 insertion(+) diff --git a/machine.h b/machine.h index 8ae0334..5e252af 100644 --- a/machine.h +++ b/machine.h @@ -58,6 +58,7 @@ typedef struct machine { // Highest logical port number uint8_t max_port; uint8_t n_sfp; + uint8_t n_10g; uint8_t log_to_phys_port[9]; uint8_t phys_to_log_port[9]; // Starts at 0 for port 1 uint8_t is_sfp[9]; // 0 for non-SFP ports 1 or 2 for the I2C port number