+#define MAX_U32_STR_LEN 10
+#define NRS_TBF_KEY_LEN (LNET_NIDSTR_SIZE + LUSTRE_JOBID_SIZE + \
+ MAX_U32_STR_LEN + MAX_U32_STR_LEN + 3 + 2)
+
+enum nrs_tbf_flag {
+ NRS_TBF_FLAG_INVALID = 0x0000000,
+ NRS_TBF_FLAG_JOBID = 0x0000001,
+ NRS_TBF_FLAG_NID = 0x0000002,
+ NRS_TBF_FLAG_OPCODE = 0x0000004,
+ NRS_TBF_FLAG_GENERIC = 0x0000008,
+ NRS_TBF_FLAG_UID = 0x0000010,
+ NRS_TBF_FLAG_GID = 0x0000020,
+};
+
+struct tbf_id {
+ enum nrs_tbf_flag ti_type;
+ u32 ti_uid;
+ u32 ti_gid;
+};
+
+struct nrs_tbf_id {
+ struct tbf_id nti_id;
+ struct list_head nti_linkage;
+};
+