Commit 7096b187 authored by Stefan Raspl's avatar Stefan Raspl Committed by David S. Miller

qeth: Clarify card type naming for virtual NICs

So far, virtual NICs whether attached to a VSWITCH or a guest LAN were always
displayed as guest LANs in the device driver attributes and messages, while
in fact it is a virtual NIC.
Signed-off-by: default avatarStefan Raspl <raspl@linux.vnet.ibm.com>
Signed-off-by: default avatarFrank Blaschka <frank.blaschka@de.ibm.com>
Reviewed-by: default avatarUrsula Braun <ursula.braun@de.ibm.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 569743e4
...@@ -73,13 +73,13 @@ static inline const char *qeth_get_cardname(struct qeth_card *card) ...@@ -73,13 +73,13 @@ static inline const char *qeth_get_cardname(struct qeth_card *card)
if (card->info.guestlan) { if (card->info.guestlan) {
switch (card->info.type) { switch (card->info.type) {
case QETH_CARD_TYPE_OSD: case QETH_CARD_TYPE_OSD:
return " Guest LAN QDIO"; return " Virtual NIC QDIO";
case QETH_CARD_TYPE_IQD: case QETH_CARD_TYPE_IQD:
return " Guest LAN Hiper"; return " Virtual NIC Hiper";
case QETH_CARD_TYPE_OSM: case QETH_CARD_TYPE_OSM:
return " Guest LAN QDIO - OSM"; return " Virtual NIC QDIO - OSM";
case QETH_CARD_TYPE_OSX: case QETH_CARD_TYPE_OSX:
return " Guest LAN QDIO - OSX"; return " Virtual NIC QDIO - OSX";
default: default:
return " unknown"; return " unknown";
} }
...@@ -108,13 +108,13 @@ const char *qeth_get_cardname_short(struct qeth_card *card) ...@@ -108,13 +108,13 @@ const char *qeth_get_cardname_short(struct qeth_card *card)
if (card->info.guestlan) { if (card->info.guestlan) {
switch (card->info.type) { switch (card->info.type) {
case QETH_CARD_TYPE_OSD: case QETH_CARD_TYPE_OSD:
return "GuestLAN QDIO"; return "Virt.NIC QDIO";
case QETH_CARD_TYPE_IQD: case QETH_CARD_TYPE_IQD:
return "GuestLAN Hiper"; return "Virt.NIC Hiper";
case QETH_CARD_TYPE_OSM: case QETH_CARD_TYPE_OSM:
return "GuestLAN OSM"; return "Virt.NIC OSM";
case QETH_CARD_TYPE_OSX: case QETH_CARD_TYPE_OSX:
return "GuestLAN OSX"; return "Virt.NIC OSX";
default: default:
return "unknown"; return "unknown";
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment