From 20145b6d06debd47944bff0a471d17e5eba07010 Mon Sep 17 00:00:00 2001 From: Julian Wiedmann Date: Mon, 22 Oct 2018 14:43:24 +0200 Subject: [PATCH] qethqoat: add OSA-Express7S support MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add the missing identifiers to report the card name and link speed. Signed-off-by: Julian Wiedmann Signed-off-by: Jan Höppner --- CHANGELOG.md | 1 + qethqoat/qethqoat.c | 6 ++++++ qethqoat/qethqoat.h | 2 ++ 3 files changed, 9 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4887aa4c..adbd7b01 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,7 @@ Release history for s390-tools (MIT version) * __v2.6.1 (XXXX-XX-XX)__ Changes of existing tools: + - qethqoat: add OSA-Express7S support Bug Fixes: - lstape: fix output with SCSI lin_tape and multiple paths to same unit diff --git a/qethqoat/qethqoat.c b/qethqoat/qethqoat.c index 6a30d1dd..7110c283 100644 --- a/qethqoat/qethqoat.c +++ b/qethqoat/qethqoat.c @@ -208,6 +208,9 @@ static void print_physical(struct qeth_qoat_physical *phdr) case OAT_OSA_GEN_OSAE6S: osagen = "OSA-Express6S"; break; + case OAT_OSA_GEN_OSAE7S: + osagen = "OSA-Express7S"; + break; default: sprintf(tmp, "unknown (0x%x)", phdr->osa_gen); osagen = tmp; @@ -239,6 +242,9 @@ static void print_physical(struct qeth_qoat_physical *phdr) case OAT_PORT_SPEED_10gbs_full: speed = "10 Gb/s / full duplex"; break; + case OAT_PORT_SPEED_25gbs_full: + speed = "25 Gb/s / full duplex"; + break; case OAT_PORT_SPEED_UNKNOWN: speed = "unknown / unknown"; break; diff --git a/qethqoat/qethqoat.h b/qethqoat/qethqoat.h index dd7e9924..e6929371 100644 --- a/qethqoat/qethqoat.h +++ b/qethqoat/qethqoat.h @@ -58,6 +58,7 @@ struct qeth_qoat_physical { #define OAT_OSA_GEN_OSAE4S 0x02 #define OAT_OSA_GEN_OSAE5S 0x03 #define OAT_OSA_GEN_OSAE6S 0x04 +#define OAT_OSA_GEN_OSAE7S 0x05 __u8 osa_gen; #define OAT_PORT_SPEED_UNKNOWN 0x00 #define OAT_PORT_SPEED_10mbs_half 0x01 @@ -68,6 +69,7 @@ struct qeth_qoat_physical { #define OAT_PORT_SPEED_1000mbs_full 0x06 #define OAT_PORT_SPEED_NA 0x07 #define OAT_PORT_SPEED_10gbs_full 0x08 +#define OAT_PORT_SPEED_25gbs_full 0x0A __u8 port_speed; #define OAT_PORT_MEDIA_COPPER 0x01 #define OAT_PORT_MEDIA_MULTI_MODE 0x02