diff options
| author | Allan Stephens <allan.stephens@windriver.com> | 2011-04-08 10:50:52 -0400 |
|---|---|---|
| committer | Paul Gortmaker <paul.gortmaker@windriver.com> | 2011-05-10 16:03:36 -0400 |
| commit | cc4c4353f0ebde05992bf360f16ec92260811393 (patch) | |
| tree | c0113e997ddb16ae2743ccc89cf579bc525b7173 | |
| parent | 97fbdc1f77e9ce50ed0be543273d78f8de8675ac (diff) | |
tipc: Update comments in message header include file
Removes comments in TIPC's message header include file that are
outdated and/or unnecessary. Also introduces short comments (or
supplements existing ones) to better describe several set of existing
symbolic constants.
Signed-off-by: Allan Stephens <allan.stephens@windriver.com>
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
| -rw-r--r-- | net/tipc/msg.h | 89 |
1 files changed, 23 insertions, 66 deletions
diff --git a/net/tipc/msg.h b/net/tipc/msg.h index de02339fc175..d098317a513a 100644 --- a/net/tipc/msg.h +++ b/net/tipc/msg.h | |||
| @@ -39,41 +39,24 @@ | |||
| 39 | 39 | ||
| 40 | #include "bearer.h" | 40 | #include "bearer.h" |
| 41 | 41 | ||
| 42 | /* | ||
| 43 | * Constants and routines used to read and write TIPC payload message headers | ||
| 44 | * | ||
| 45 | * Note: Some items are also used with TIPC internal message headers | ||
| 46 | */ | ||
| 47 | |||
| 42 | #define TIPC_VERSION 2 | 48 | #define TIPC_VERSION 2 |
| 43 | 49 | ||
| 44 | /* | 50 | /* |
| 45 | * TIPC user data message header format, version 2: | 51 | * Payload message users are defined in TIPC's public API: |
| 46 | * | 52 | * - TIPC_LOW_IMPORTANCE |
| 47 | * | 53 | * - TIPC_MEDIUM_IMPORTANCE |
| 48 | * 1 0 9 8 7 6 5 4|3 2 1 0 9 8 7 6|5 4 3 2 1 0 9 8|7 6 5 4 3 2 1 0 | 54 | * - TIPC_HIGH_IMPORTANCE |
| 49 | * +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | 55 | * - TIPC_CRITICAL_IMPORTANCE |
| 50 | * w0:|vers | user |hdr sz |n|d|s|-| message size | | 56 | */ |
| 51 | * +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | 57 | |
| 52 | * w1:|mstyp| error |rer cnt|lsc|opt p| broadcast ack no | | 58 | /* |
| 53 | * +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | 59 | * Payload message types |
| 54 | * w2:| link level ack no | broadcast/link level seq no | | ||
| 55 | * +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | ||
| 56 | * w3:| previous node | | ||
| 57 | * +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | ||
| 58 | * w4:| originating port | | ||
| 59 | * +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | ||
| 60 | * w5:| destination port | | ||
| 61 | * +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | ||
| 62 | * w6:| originating node | | ||
| 63 | * +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | ||
| 64 | * w7:| destination node | | ||
| 65 | * +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | ||
| 66 | * w8:| name type / transport sequence number | | ||
| 67 | * +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | ||
| 68 | * w9:| name instance/multicast lower bound | | ||
| 69 | * +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | ||
| 70 | * wA:| multicast upper bound | | ||
| 71 | * +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | ||
| 72 | * / / | ||
| 73 | * \ options \ | ||
| 74 | * / / | ||
| 75 | * +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | ||
| 76 | * | ||
| 77 | */ | 60 | */ |
| 78 | 61 | ||
| 79 | #define TIPC_CONN_MSG 0 | 62 | #define TIPC_CONN_MSG 0 |
| @@ -81,6 +64,9 @@ | |||
| 81 | #define TIPC_NAMED_MSG 2 | 64 | #define TIPC_NAMED_MSG 2 |
| 82 | #define TIPC_DIRECT_MSG 3 | 65 | #define TIPC_DIRECT_MSG 3 |
| 83 | 66 | ||
| 67 | /* | ||
| 68 | * Message header sizes | ||
| 69 | */ | ||
| 84 | 70 | ||
| 85 | #define SHORT_H_SIZE 24 /* Connected, in-cluster messages */ | 71 | #define SHORT_H_SIZE 24 /* Connected, in-cluster messages */ |
| 86 | #define DIR_MSG_H_SIZE 32 /* Directly addressed messages */ | 72 | #define DIR_MSG_H_SIZE 32 /* Directly addressed messages */ |
| @@ -473,40 +459,11 @@ static inline struct tipc_msg *msg_get_wrapped(struct tipc_msg *m) | |||
| 473 | 459 | ||
| 474 | 460 | ||
| 475 | /* | 461 | /* |
| 476 | TIPC internal message header format, version 2 | 462 | * Constants and routines used to read and write TIPC internal message headers |
| 477 | 463 | */ | |
| 478 | 1 0 9 8 7 6 5 4|3 2 1 0 9 8 7 6|5 4 3 2 1 0 9 8|7 6 5 4 3 2 1 0 | ||
| 479 | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | ||
| 480 | w0:|vers |msg usr|hdr sz |n|resrv| packet size | | ||
| 481 | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | ||
| 482 | w1:|m typ| sequence gap | broadcast ack no | | ||
| 483 | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | ||
| 484 | w2:| link level ack no/bc_gap_from | seq no / bcast_gap_to | | ||
| 485 | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | ||
| 486 | w3:| previous node | | ||
| 487 | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | ||
| 488 | w4:| next sent broadcast/fragm no | next sent pkt/ fragm msg no | | ||
| 489 | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | ||
| 490 | w5:| session no |rsv=0|r|berid|link prio|netpl|p| | ||
| 491 | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | ||
| 492 | w6:| originating node | | ||
| 493 | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | ||
| 494 | w7:| destination node | | ||
| 495 | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | ||
| 496 | w8:| transport sequence number | | ||
| 497 | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | ||
| 498 | w9:| msg count / bcast tag | link tolerance | | ||
| 499 | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | ||
| 500 | \ \ | ||
| 501 | / User Specific Data / | ||
| 502 | \ \ | ||
| 503 | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | ||
| 504 | |||
| 505 | NB: CONN_MANAGER use data message format. LINK_CONFIG has own format. | ||
| 506 | */ | ||
| 507 | 464 | ||
| 508 | /* | 465 | /* |
| 509 | * Internal users | 466 | * Internal message users |
| 510 | */ | 467 | */ |
| 511 | 468 | ||
| 512 | #define BCAST_PROTOCOL 5 | 469 | #define BCAST_PROTOCOL 5 |
| @@ -520,7 +477,7 @@ static inline struct tipc_msg *msg_get_wrapped(struct tipc_msg *m) | |||
| 520 | #define LINK_CONFIG 13 | 477 | #define LINK_CONFIG 13 |
| 521 | 478 | ||
| 522 | /* | 479 | /* |
| 523 | * Connection management protocol messages | 480 | * Connection management protocol message types |
| 524 | */ | 481 | */ |
| 525 | 482 | ||
| 526 | #define CONN_PROBE 0 | 483 | #define CONN_PROBE 0 |
| @@ -528,7 +485,7 @@ static inline struct tipc_msg *msg_get_wrapped(struct tipc_msg *m) | |||
| 528 | #define CONN_ACK 2 | 485 | #define CONN_ACK 2 |
| 529 | 486 | ||
| 530 | /* | 487 | /* |
| 531 | * Name distributor messages | 488 | * Name distributor message types |
| 532 | */ | 489 | */ |
| 533 | 490 | ||
| 534 | #define PUBLICATION 0 | 491 | #define PUBLICATION 0 |
