]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
s390/qeth: Move all OSA RCs to single enum
authorAswin Karuvally <aswin@linux.ibm.com>
Thu, 13 Nov 2025 14:42:08 +0000 (15:42 +0100)
committerJakub Kicinski <kuba@kernel.org>
Tue, 18 Nov 2025 04:02:01 +0000 (20:02 -0800)
OSA Express defines a number of return codes whose meaning is
determined by the issuing command, making them ambiguous. Move
definitions of all return codes including the ambiguous ones to a single
enum block to aid readability and maintainability.

Reviewed-by: Alexandra Winter <wintera@linux.ibm.com>
Signed-off-by: Aswin Karuvally <aswin@linux.ibm.com>
Link: https://patch.msgid.link/20251113144209.2140061-2-aswin@linux.ibm.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/s390/net/qeth_core_mpc.h

index 6257f00786b36f6de04faf904275342ec8e48eb8..e6904ca9defa7fb23a9c8a4fd3cc3fec9f28fbca 100644 (file)
@@ -159,13 +159,17 @@ enum qeth_ipa_return_codes {
        IPA_RC_SUCCESS                  = 0x0000,
        IPA_RC_NOTSUPP                  = 0x0001,
        IPA_RC_IP_TABLE_FULL            = 0x0002,
+       IPA_RC_INVALID_SUBCMD           = 0x0002,
        IPA_RC_UNKNOWN_ERROR            = 0x0003,
+       IPA_RC_HARDWARE_AUTH_ERROR      = 0x0003,
        IPA_RC_UNSUPPORTED_COMMAND      = 0x0004,
        IPA_RC_TRACE_ALREADY_ACTIVE     = 0x0005,
+       IPA_RC_VNICC_OOSEQ              = 0x0005,
        IPA_RC_INVALID_FORMAT           = 0x0006,
        IPA_RC_DUP_IPV6_REMOTE          = 0x0008,
        IPA_RC_SBP_IQD_NOT_CONFIGURED   = 0x000C,
        IPA_RC_DUP_IPV6_HOME            = 0x0010,
+       IPA_RC_SBP_IQD_OS_MISMATCH      = 0x0010,
        IPA_RC_UNREGISTERED_ADDR        = 0x0011,
        IPA_RC_NO_ID_AVAILABLE          = 0x0012,
        IPA_RC_ID_NOT_FOUND             = 0x0013,
@@ -173,6 +177,7 @@ enum qeth_ipa_return_codes {
        IPA_RC_SBP_IQD_CURRENT_SECOND   = 0x0018,
        IPA_RC_SBP_IQD_LIMIT_SECOND     = 0x001C,
        IPA_RC_INVALID_IP_VERSION       = 0x0020,
+       IPA_RC_SBP_IQD_NOT_AUTHD_BY_ZMAN = 0x0020,
        IPA_RC_SBP_IQD_CURRENT_PRIMARY  = 0x0024,
        IPA_RC_LAN_FRAME_MISMATCH       = 0x0040,
        IPA_RC_SBP_IQD_NO_QDIO_QUEUES   = 0x00EB,
@@ -220,16 +225,6 @@ enum qeth_ipa_return_codes {
        IPA_RC_INVALID_IP_VERSION2      = 0xf001,
        IPA_RC_FFFF                     = 0xffff
 };
-/* for VNIC Characteristics */
-#define IPA_RC_VNICC_OOSEQ 0x0005
-
-/* for SET_DIAGNOSTIC_ASSIST */
-#define IPA_RC_INVALID_SUBCMD          IPA_RC_IP_TABLE_FULL
-#define IPA_RC_HARDWARE_AUTH_ERROR     IPA_RC_UNKNOWN_ERROR
-
-/* for SETBRIDGEPORT (double occupancies) */
-#define IPA_RC_SBP_IQD_OS_MISMATCH      IPA_RC_DUP_IPV6_HOME
-#define IPA_RC_SBP_IQD_NOT_AUTHD_BY_ZMAN IPA_RC_INVALID_IP_VERSION
 
 /* IPA function flags; each flag marks availability of respective function */
 enum qeth_ipa_funcs {