]> git.karo-electronics.de Git - linux-beck.git/commitdiff
staging: lustre: ldlm: remove code wireshark handling
authorBruce Korb <bruce.korb@gmail.com>
Wed, 27 Apr 2016 22:20:59 +0000 (18:20 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 29 Apr 2016 04:51:58 +0000 (21:51 -0700)
Wireshark output moved to userland file "lustre_dlm_flags_wshark.c"
and only bits that can actually appear "on the wire" are emitted.
The user land "packet-lustre.c" code that references these bits
now gets emitted into that file. e.g. the "local_only" bit is
never put on the wire, so references to it in wireshark are gone.

Signed-off-by: Bruce Korb <bruce.korb@gmail.com>
Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-2906
Reviewed-by: Keith Mannthey <Keith.Mannthey@intel.com>
Reviewed-on: http://review.whamcloud.com/7963
Reviewed-by: Doug Oucharek <doug.s.oucharek@intel.com>
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Signed-off-by: James Simmons <jsimmons@infradead.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/lustre/include/lustre_dlm_flags.h

index 62d3b3155f4f05511ce5c9fcb927682871c75a9b..1eb0cc4fb55ca39cbc399ce7410a1ca28a830dcd 100644 (file)
 
 /** @} subgroup */
 /** @} group */
-#ifdef WIRESHARK_COMPILE
-static int hf_lustre_ldlm_fl_lock_changed        = -1;
-static int hf_lustre_ldlm_fl_block_granted       = -1;
-static int hf_lustre_ldlm_fl_block_conv          = -1;
-static int hf_lustre_ldlm_fl_block_wait          = -1;
-static int hf_lustre_ldlm_fl_ast_sent            = -1;
-static int hf_lustre_ldlm_fl_replay              = -1;
-static int hf_lustre_ldlm_fl_intent_only         = -1;
-static int hf_lustre_ldlm_fl_has_intent          = -1;
-static int hf_lustre_ldlm_fl_flock_deadlock      = -1;
-static int hf_lustre_ldlm_fl_discard_data        = -1;
-static int hf_lustre_ldlm_fl_no_timeout          = -1;
-static int hf_lustre_ldlm_fl_block_nowait        = -1;
-static int hf_lustre_ldlm_fl_test_lock           = -1;
-static int hf_lustre_ldlm_fl_cancel_on_block     = -1;
-static int hf_lustre_ldlm_fl_deny_on_contention  = -1;
-static int hf_lustre_ldlm_fl_ast_discard_data    = -1;
-static int hf_lustre_ldlm_fl_fail_loc            = -1;
-static int hf_lustre_ldlm_fl_skipped             = -1;
-static int hf_lustre_ldlm_fl_cbpending           = -1;
-static int hf_lustre_ldlm_fl_wait_noreproc       = -1;
-static int hf_lustre_ldlm_fl_cancel              = -1;
-static int hf_lustre_ldlm_fl_local_only          = -1;
-static int hf_lustre_ldlm_fl_failed              = -1;
-static int hf_lustre_ldlm_fl_canceling           = -1;
-static int hf_lustre_ldlm_fl_local               = -1;
-static int hf_lustre_ldlm_fl_lvb_ready           = -1;
-static int hf_lustre_ldlm_fl_kms_ignore          = -1;
-static int hf_lustre_ldlm_fl_cp_reqd             = -1;
-static int hf_lustre_ldlm_fl_cleaned             = -1;
-static int hf_lustre_ldlm_fl_atomic_cb           = -1;
-static int hf_lustre_ldlm_fl_bl_ast              = -1;
-static int hf_lustre_ldlm_fl_bl_done             = -1;
-static int hf_lustre_ldlm_fl_no_lru              = -1;
-static int hf_lustre_ldlm_fl_fail_notified       = -1;
-static int hf_lustre_ldlm_fl_destroyed           = -1;
-static int hf_lustre_ldlm_fl_server_lock         = -1;
-static int hf_lustre_ldlm_fl_res_locked          = -1;
-static int hf_lustre_ldlm_fl_waited              = -1;
-static int hf_lustre_ldlm_fl_ns_srv              = -1;
-static int hf_lustre_ldlm_fl_excl                = -1;
-
-const value_string lustre_ldlm_flags_vals[] = {
-       {LDLM_FL_LOCK_CHANGED,        "LDLM_FL_LOCK_CHANGED"},
-       {LDLM_FL_BLOCK_GRANTED,       "LDLM_FL_BLOCK_GRANTED"},
-       {LDLM_FL_BLOCK_CONV,          "LDLM_FL_BLOCK_CONV"},
-       {LDLM_FL_BLOCK_WAIT,          "LDLM_FL_BLOCK_WAIT"},
-       {LDLM_FL_AST_SENT,            "LDLM_FL_AST_SENT"},
-       {LDLM_FL_REPLAY,              "LDLM_FL_REPLAY"},
-       {LDLM_FL_INTENT_ONLY,         "LDLM_FL_INTENT_ONLY"},
-       {LDLM_FL_HAS_INTENT,          "LDLM_FL_HAS_INTENT"},
-       {LDLM_FL_FLOCK_DEADLOCK,      "LDLM_FL_FLOCK_DEADLOCK"},
-       {LDLM_FL_DISCARD_DATA,        "LDLM_FL_DISCARD_DATA"},
-       {LDLM_FL_NO_TIMEOUT,          "LDLM_FL_NO_TIMEOUT"},
-       {LDLM_FL_BLOCK_NOWAIT,        "LDLM_FL_BLOCK_NOWAIT"},
-       {LDLM_FL_TEST_LOCK,           "LDLM_FL_TEST_LOCK"},
-       {LDLM_FL_CANCEL_ON_BLOCK,     "LDLM_FL_CANCEL_ON_BLOCK"},
-       {LDLM_FL_DENY_ON_CONTENTION,  "LDLM_FL_DENY_ON_CONTENTION"},
-       {LDLM_FL_AST_DISCARD_DATA,    "LDLM_FL_AST_DISCARD_DATA"},
-       {LDLM_FL_FAIL_LOC,            "LDLM_FL_FAIL_LOC"},
-       {LDLM_FL_SKIPPED,             "LDLM_FL_SKIPPED"},
-       {LDLM_FL_CBPENDING,           "LDLM_FL_CBPENDING"},
-       {LDLM_FL_WAIT_NOREPROC,       "LDLM_FL_WAIT_NOREPROC"},
-       {LDLM_FL_CANCEL,              "LDLM_FL_CANCEL"},
-       {LDLM_FL_LOCAL_ONLY,          "LDLM_FL_LOCAL_ONLY"},
-       {LDLM_FL_FAILED,              "LDLM_FL_FAILED"},
-       {LDLM_FL_CANCELING,           "LDLM_FL_CANCELING"},
-       {LDLM_FL_LOCAL,               "LDLM_FL_LOCAL"},
-       {LDLM_FL_LVB_READY,           "LDLM_FL_LVB_READY"},
-       {LDLM_FL_KMS_IGNORE,          "LDLM_FL_KMS_IGNORE"},
-       {LDLM_FL_CP_REQD,             "LDLM_FL_CP_REQD"},
-       {LDLM_FL_CLEANED,             "LDLM_FL_CLEANED"},
-       {LDLM_FL_ATOMIC_CB,           "LDLM_FL_ATOMIC_CB"},
-       {LDLM_FL_BL_AST,              "LDLM_FL_BL_AST"},
-       {LDLM_FL_BL_DONE,             "LDLM_FL_BL_DONE"},
-       {LDLM_FL_NO_LRU,              "LDLM_FL_NO_LRU"},
-       {LDLM_FL_FAIL_NOTIFIED,       "LDLM_FL_FAIL_NOTIFIED"},
-       {LDLM_FL_DESTROYED,           "LDLM_FL_DESTROYED"},
-       {LDLM_FL_SERVER_LOCK,         "LDLM_FL_SERVER_LOCK"},
-       {LDLM_FL_RES_LOCKED,          "LDLM_FL_RES_LOCKED"},
-       {LDLM_FL_WAITED,              "LDLM_FL_WAITED"},
-       {LDLM_FL_NS_SRV,              "LDLM_FL_NS_SRV"},
-       {LDLM_FL_EXCL,                "LDLM_FL_EXCL"},
-       { 0, NULL }
-};
-#endif /*  WIRESHARK_COMPILE */
+
 #endif /* LDLM_ALL_FLAGS_MASK */