s390/qeth: vnicc Fix EOPNOTSUPP precedence
authorAlexandra Winter <wintera@linux.ibm.com>
Thu, 20 Feb 2020 14:54:54 +0000 (15:54 +0100)
committerDavid S. Miller <davem@davemloft.net>
Thu, 20 Feb 2020 18:30:47 +0000 (10:30 -0800)
commit6f3846f0955308b6d1b219419da42b8de2c08845
tree572685eabc9c6050724aeb1526cfe316f5c8bca6
parent16a556eeb7ed2dc3709fe2c5be76accdfa4901ab
s390/qeth: vnicc Fix EOPNOTSUPP precedence

When getting or setting VNICC parameters, the error code EOPNOTSUPP
should have precedence over EBUSY.

EBUSY is used because vnicc feature and bridgeport feature are mutually
exclusive, which is a temporary condition.
Whereas EOPNOTSUPP indicates that the HW does not support all or parts of
the vnicc feature.
This issue causes the vnicc sysfs params to show 'blocked by bridgeport'
for HW that does not support VNICC at all.

Fixes: caa1f0b10d18 ("s390/qeth: add VNICC enable/disable support")
Signed-off-by: Alexandra Winter <wintera@linux.ibm.com>
Signed-off-by: Julian Wiedmann <jwi@linux.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/s390/net/qeth_l2_main.c