]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitf02b85f832886c5c39841a23e1c77d7f8eae01c0
treebe89253d289b616f1a146ecf11b5db3461784237
parent4e328a43cb94449208e12ef4ca6e15f284e3aa0f
s390/qeth: fix setting VIPA address

commit 97835251b327 ("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