diff options
author | Jonathan Herman <hermanjl@cs.unc.edu> | 2013-01-17 16:15:55 -0500 |
---|---|---|
committer | Jonathan Herman <hermanjl@cs.unc.edu> | 2013-01-17 16:15:55 -0500 |
commit | 8dea78da5cee153b8af9c07a2745f6c55057fe12 (patch) | |
tree | a8f4d49d63b1ecc92f2fddceba0655b2472c5bd9 /net/tipc/bcast.h | |
parent | 406089d01562f1e2bf9f089fd7637009ebaad589 (diff) |
Patched in Tegra support.
Diffstat (limited to 'net/tipc/bcast.h')
-rw-r--r-- | net/tipc/bcast.h | 22 |
1 files changed, 13 insertions, 9 deletions
diff --git a/net/tipc/bcast.h b/net/tipc/bcast.h index a93306557e0..500c97f1c85 100644 --- a/net/tipc/bcast.h +++ b/net/tipc/bcast.h | |||
@@ -45,22 +45,26 @@ | |||
45 | * @count: # of nodes in set | 45 | * @count: # of nodes in set |
46 | * @map: bitmap of node identifiers that are in the set | 46 | * @map: bitmap of node identifiers that are in the set |
47 | */ | 47 | */ |
48 | |||
48 | struct tipc_node_map { | 49 | struct tipc_node_map { |
49 | u32 count; | 50 | u32 count; |
50 | u32 map[MAX_NODES / WSIZE]; | 51 | u32 map[MAX_NODES / WSIZE]; |
51 | }; | 52 | }; |
52 | 53 | ||
54 | extern struct tipc_node_map tipc_bcast_nmap; | ||
55 | |||
53 | #define PLSIZE 32 | 56 | #define PLSIZE 32 |
54 | 57 | ||
55 | /** | 58 | /** |
56 | * struct tipc_port_list - set of node local destination ports | 59 | * struct port_list - set of node local destination ports |
57 | * @count: # of ports in set (only valid for first entry in list) | 60 | * @count: # of ports in set (only valid for first entry in list) |
58 | * @next: pointer to next entry in list | 61 | * @next: pointer to next entry in list |
59 | * @ports: array of port references | 62 | * @ports: array of port references |
60 | */ | 63 | */ |
61 | struct tipc_port_list { | 64 | |
65 | struct port_list { | ||
62 | int count; | 66 | int count; |
63 | struct tipc_port_list *next; | 67 | struct port_list *next; |
64 | u32 ports[PLSIZE]; | 68 | u32 ports[PLSIZE]; |
65 | }; | 69 | }; |
66 | 70 | ||
@@ -75,28 +79,28 @@ void tipc_nmap_remove(struct tipc_node_map *nm_ptr, u32 node); | |||
75 | /** | 79 | /** |
76 | * tipc_nmap_equal - test for equality of node maps | 80 | * tipc_nmap_equal - test for equality of node maps |
77 | */ | 81 | */ |
82 | |||
78 | static inline int tipc_nmap_equal(struct tipc_node_map *nm_a, struct tipc_node_map *nm_b) | 83 | static inline int tipc_nmap_equal(struct tipc_node_map *nm_a, struct tipc_node_map *nm_b) |
79 | { | 84 | { |
80 | return !memcmp(nm_a, nm_b, sizeof(*nm_a)); | 85 | return !memcmp(nm_a, nm_b, sizeof(*nm_a)); |
81 | } | 86 | } |
82 | 87 | ||
83 | void tipc_port_list_add(struct tipc_port_list *pl_ptr, u32 port); | 88 | void tipc_port_list_add(struct port_list *pl_ptr, u32 port); |
84 | void tipc_port_list_free(struct tipc_port_list *pl_ptr); | 89 | void tipc_port_list_free(struct port_list *pl_ptr); |
85 | 90 | ||
86 | void tipc_bclink_init(void); | 91 | int tipc_bclink_init(void); |
87 | void tipc_bclink_stop(void); | 92 | void tipc_bclink_stop(void); |
88 | void tipc_bclink_add_node(u32 addr); | ||
89 | void tipc_bclink_remove_node(u32 addr); | ||
90 | struct tipc_node *tipc_bclink_retransmit_to(void); | 93 | struct tipc_node *tipc_bclink_retransmit_to(void); |
91 | void tipc_bclink_acknowledge(struct tipc_node *n_ptr, u32 acked); | 94 | void tipc_bclink_acknowledge(struct tipc_node *n_ptr, u32 acked); |
92 | int tipc_bclink_send_msg(struct sk_buff *buf); | 95 | int tipc_bclink_send_msg(struct sk_buff *buf); |
93 | void tipc_bclink_recv_pkt(struct sk_buff *buf); | 96 | void tipc_bclink_recv_pkt(struct sk_buff *buf); |
94 | u32 tipc_bclink_get_last_sent(void); | 97 | u32 tipc_bclink_get_last_sent(void); |
95 | u32 tipc_bclink_acks_missing(struct tipc_node *n_ptr); | 98 | u32 tipc_bclink_acks_missing(struct tipc_node *n_ptr); |
96 | void tipc_bclink_update_link_state(struct tipc_node *n_ptr, u32 last_sent); | 99 | void tipc_bclink_check_gap(struct tipc_node *n_ptr, u32 seqno); |
97 | int tipc_bclink_stats(char *stats_buf, const u32 buf_size); | 100 | int tipc_bclink_stats(char *stats_buf, const u32 buf_size); |
98 | int tipc_bclink_reset_stats(void); | 101 | int tipc_bclink_reset_stats(void); |
99 | int tipc_bclink_set_queue_limits(u32 limit); | 102 | int tipc_bclink_set_queue_limits(u32 limit); |
100 | void tipc_bcbearer_sort(void); | 103 | void tipc_bcbearer_sort(void); |
104 | void tipc_bcbearer_push(void); | ||
101 | 105 | ||
102 | #endif | 106 | #endif |