]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitae00e39c352f201b781fd1dce802fc58eb2b8ef5
tree572685eabc9c6050724aeb1526cfe316f5c8bca6
parentd5d1ea99b59cb2a5011e59ddea11436da6fa928c
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: 7cb7f614c986 ("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