]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commitdiff
qeth: Include error message for "OS Mismatch"
authorEugene Crosser <Eugene.Crosser@ru.ibm.com>
Thu, 16 Jun 2016 14:18:51 +0000 (16:18 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 17 Jun 2016 05:16:11 +0000 (22:16 -0700)
Having understood the semantics of BRIDGEPORT error code 0x0010,
we can introduce a meaningful error message.

Signed-off-by: Eugene Crosser <Eugene.Crosser@ru.ibm.com>
Signed-off-by: Ursula Braun <ubraun@linux.vnet.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/s390/net/qeth_l2_main.c

index 80b1979e8d955f6022e7810a4b65a62f13ec1224..faab0b669ca46a1debd25f5fe18121b69ef6fa8b 100644 (file)
@@ -1800,6 +1800,12 @@ static int qeth_bridgeport_makerc(struct qeth_card *card,
                        dev_err(&card->gdev->dev,
        "The device is not configured as a Bridge Port\n");
                        break;
+               case 0x2B10:
+               case 0x0010: /* OS mismatch */
+                       rc = -EPERM;
+                       dev_err(&card->gdev->dev,
+       "A Bridge Port is already configured by a different operating system\n");
+                       break;
                case 0x2B14:
                case 0x0014: /* Another device is Primary */
                        switch (setcmd) {