]> git.baikalelectronics.ru Git - kernel.git/commit
s390/qeth: Consider dependency on SWITCHDEV module
authorAlexandra Winter <wintera@linux.ibm.com>
Fri, 11 Jun 2021 07:33:41 +0000 (09:33 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 11 Jun 2021 19:49:15 +0000 (12:49 -0700)
commit2e389326cd81c20b53a5d4ae7c6b06f6e3be8d7d
tree285dda92a33c9ffda1c952bfbec24f3270874860
parente91e5afc029a4ea3e712ba843882ca135c332849
s390/qeth: Consider dependency on SWITCHDEV module

Without the SWITCHDEV module, the bridgeport attribute LEARNING_SYNC
of the physical device (self) does not provide any functionality.
Instead of calling the no-op stub version of the switchdev functions,
fail the setting of the attribute with an appropriate message.

While at it, also add an error message for the 'not supported by HW'
case.

Signed-off-by: Alexandra Winter <wintera@linux.ibm.com>
Reviewed-by: Julian Wiedmann <jwi@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