s390/qeth: fix setting VIPA address
authorThomas Richter <tmricht@linux.vnet.ibm.com>
Thu, 15 Sep 2016 12:39:27 +0000 (14:39 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 16 Sep 2016 08:29:14 +0000 (04:29 -0400)
commit732a59cb6e7faed7a40da6665a517945c95fc895
treebe89253d289b616f1a146ecf11b5db3461784237
parent5722963a8e83309dad831cf6968c4c805aa342c0
s390/qeth: fix setting VIPA address

commit 5f78e29ceebf ("qeth: optimize IP handling in rx_mode callback")
restructured the internal address handling.
This work broke setting a virtual IP address.
The command
echo 10.1.1.1 > /sys/bus/ccwgroup/devices/<device>/vipa/add4
fails with file exist error even if the IP address has not
been set before.

It turned out that the search result for the IP address
search is handled incorrectly in the VIPA case.

This patch fixes the setting of an virtual IP address.

Signed-off-by: Thomas Richter <tmricht@linux.vnet.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_l3_main.c