diff options
| author | songyanchao <[email protected]> | 2024-04-25 06:18:48 +0000 |
|---|---|---|
| committer | songyanchao <[email protected]> | 2024-04-25 06:18:48 +0000 |
| commit | c2aef64bdbfef094e5dca7b7b1d2044ac670978d (patch) | |
| tree | d88db3397b200225ab7ca2e70b87a3e4d9161193 /include | |
| parent | 78856a637644577eb0464e06d31595a24611c082 (diff) | |
🎈 perf: Mark the sizes of metadata fields.
Mark the sizes of metadata fields.
Diffstat (limited to 'include')
| -rw-r--r-- | include/external/marsio.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/include/external/marsio.h b/include/external/marsio.h index 4ed5025..712d39f 100644 --- a/include/external/marsio.h +++ b/include/external/marsio.h @@ -99,21 +99,21 @@ enum mr_timestamp_type enum mr_buff_metadata_type { - /* Rehash Index */ + /* Rehash Index, uint32_t (4bytes) */ MR_BUFF_REHASH_INDEX = 0, - /* VLAN TCI */ + /* VLAN TCI, uint16_t (2bytes) */ MR_BUFF_METADATA_VLAN_TCI = 1, - /* dispatch ctx */ + /* dispatch ctx, > 28bytes */ MR_BUFF_ROUTE_CTX = 2, - /* session id */ + /* session id, uint64_t (8bytes) */ MR_BUFF_SESSION_ID = 3, - /* dir, internal->external or external->internal */ + /* dir, internal->external or external->internal, unsigned int (4bytes) */ MR_BUFF_DIR = 4, - /* payload offset */ + /* payload offset, uint16_t (2bytes) */ MR_BUFF_PAYLOAD_OFFSET = 5, - /* link id */ + /* link id, uint16_t (2bytes) */ MR_BUFF_LINK_ID = 6, - /* user 0 */ + /* user 0, uint16_t (2bytes) */ MR_BUFF_USER_0 = 254 }; |
