OSDN Git Service

qeth: Support VEPA mode
authorStefan Raspl <raspl@linux.vnet.ibm.com>
Mon, 21 Jan 2013 02:30:20 +0000 (02:30 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 21 Jan 2013 18:51:14 +0000 (13:51 -0500)
commit0f54761d167f98dd93cb19a16edbc47bb6574a28
tree8168f8df9a334bd636721f937d6a8c6fd959a7e8
parenteb3fb0baa2369595fa5cbfadc16f87f99a71ce4b
qeth: Support VEPA mode

The existing port isolation mode 'forward' will now verify that the adjacent
switch port supports the required reflective relay (RR) mode. This patch adds
the required error handling for the cases where enabling port isolation mode
'forward' can now fail.
Furthermore, once established, we never fall back from one of the port
isolation modes to a non-isolated mode without further user-interaction.
This includes cases where the isolation mode was enabled successfully, but
ceases to work e.g. due to configuration changes at the switch port.
Finally, configuring an isolation mode with the device being offline
will make onlining the device fail permanently upon errors encountered until
either errors are resolved or the isolation mode is changed by the user to a
different mode.

Signed-off-by: Stefan Raspl <raspl@linux.vnet.ibm.com>
Signed-off-by: Frank Blaschka <frank.blaschka@de.ibm.com>
Reviewed-by: Ursula Braun <ursula.braun@de.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_core_mpc.c
drivers/s390/net/qeth_core_mpc.h
drivers/s390/net/qeth_core_sys.c
drivers/s390/net/qeth_l2_main.c
drivers/s390/net/qeth_l3_main.c