X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=lustre%2Fptlrpc%2Fptlrpc_internal.h;h=12a3c20155d5b93dbd3c0dc4088f1c963911630b;hb=316113bbe60da637297a914f336c5f1f81257c6a;hp=e49b5f941ebb75b26b3c1926586bbfadc1ac228b;hpb=191061ee668400324f4505cf498f1ee2d57e4962;p=fs%2Flustre-release.git diff --git a/lustre/ptlrpc/ptlrpc_internal.h b/lustre/ptlrpc/ptlrpc_internal.h index e49b5f9..12a3c20 100644 --- a/lustre/ptlrpc/ptlrpc_internal.h +++ b/lustre/ptlrpc/ptlrpc_internal.h @@ -85,6 +85,14 @@ static inline int opcode_offset(__u32 opc) { (LDLM_LAST_OPC - LDLM_FIRST_OPC) + (MDS_LAST_OPC - MDS_FIRST_OPC) + (OST_LAST_OPC - OST_FIRST_OPC)); + } else if (opc < SEC_LAST_OPC) { + /* Security negotiate */ + return (opc - SEC_FIRST_OPC + + (PTLBD_LAST_OPC - PTLBD_FIRST_OPC) + + (LDLM_LAST_OPC - LDLM_FIRST_OPC) + + (MDS_LAST_OPC - MDS_FIRST_OPC) + + (OST_LAST_OPC - OST_FIRST_OPC) + + (OBD_LAST_OPC - OBD_FIRST_OPC)); } else { /* Unknown Opcode */ return -1; @@ -95,7 +103,8 @@ static inline int opcode_offset(__u32 opc) { (LDLM_LAST_OPC - LDLM_FIRST_OPC) + \ (MDS_LAST_OPC - MDS_FIRST_OPC) + \ (OST_LAST_OPC - OST_FIRST_OPC) + \ - (OBD_LAST_OPC - OBD_FIRST_OPC)) + (OBD_LAST_OPC - OBD_FIRST_OPC) + \ + (SEC_LAST_OPC - SEC_FIRST_OPC)) enum { PTLRPC_REQWAIT_CNTR = 0,