OSDN Git Service

s390/qeth: use diag26c to get MAC address on L2
authorJulian Wiedmann <jwi@linux.vnet.ibm.com>
Tue, 20 Jun 2017 14:00:34 +0000 (16:00 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 20 Jun 2017 19:44:21 +0000 (15:44 -0400)
commitec61bd2fd2a27bf7368261b230ef54fe34d1cce3
tree2d548e40b8b5eae5d19e8091572b5c2516a9c7dd
parent1b030478166cdbdffe9bcffadc32558b4b511869
s390/qeth: use diag26c to get MAC address on L2

When a s390 guest runs on a z/VM host that's part of a SSI cluster,
it can be migrated to a different host. In this case, the MAC address
it originally obtained on the old host may be re-assigned to a new
guest. This would result in address conflicts between the two guests.

When running as z/VM guest, use the diag26c MAC Service to obtain
a hypervisor-managed MAC address. The MAC Service is SSI-aware, and
won't re-assign the address after the guest is migrated to a new host.

This patch adds support for the z/VM MAC Service on L2 devices.

Signed-off-by: Julian Wiedmann <jwi@linux.vnet.ibm.com>
Acked-by: Ursula Braun <ubraun@linux.vnet.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/s390/net/qeth_core.h
drivers/s390/net/qeth_core_main.c
drivers/s390/net/qeth_l2_main.c