aboutsummaryrefslogtreecommitdiffstats
path: root/net/tipc/bcast.h
diff options
context:
space:
mode:
authorJonathan Herman <hermanjl@cs.unc.edu>2013-01-17 16:15:55 -0500
committerJonathan Herman <hermanjl@cs.unc.edu>2013-01-17 16:15:55 -0500
commit8dea78da5cee153b8af9c07a2745f6c55057fe12 (patch)
treea8f4d49d63b1ecc92f2fddceba0655b2472c5bd9 /net/tipc/bcast.h
parent406089d01562f1e2bf9f089fd7637009ebaad589 (diff)
Patched in Tegra support.
Diffstat (limited to 'net/tipc/bcast.h')
-rw-r--r--net/tipc/bcast.h22
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
48struct tipc_node_map { 49struct 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
54extern 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 */
61struct tipc_port_list { 64
65struct 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
78static inline int tipc_nmap_equal(struct tipc_node_map *nm_a, struct tipc_node_map *nm_b) 83static 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
83void tipc_port_list_add(struct tipc_port_list *pl_ptr, u32 port); 88void tipc_port_list_add(struct port_list *pl_ptr, u32 port);
84void tipc_port_list_free(struct tipc_port_list *pl_ptr); 89void tipc_port_list_free(struct port_list *pl_ptr);
85 90
86void tipc_bclink_init(void); 91int tipc_bclink_init(void);
87void tipc_bclink_stop(void); 92void tipc_bclink_stop(void);
88void tipc_bclink_add_node(u32 addr);
89void tipc_bclink_remove_node(u32 addr);
90struct tipc_node *tipc_bclink_retransmit_to(void); 93struct tipc_node *tipc_bclink_retransmit_to(void);
91void tipc_bclink_acknowledge(struct tipc_node *n_ptr, u32 acked); 94void tipc_bclink_acknowledge(struct tipc_node *n_ptr, u32 acked);
92int tipc_bclink_send_msg(struct sk_buff *buf); 95int tipc_bclink_send_msg(struct sk_buff *buf);
93void tipc_bclink_recv_pkt(struct sk_buff *buf); 96void tipc_bclink_recv_pkt(struct sk_buff *buf);
94u32 tipc_bclink_get_last_sent(void); 97u32 tipc_bclink_get_last_sent(void);
95u32 tipc_bclink_acks_missing(struct tipc_node *n_ptr); 98u32 tipc_bclink_acks_missing(struct tipc_node *n_ptr);
96void tipc_bclink_update_link_state(struct tipc_node *n_ptr, u32 last_sent); 99void tipc_bclink_check_gap(struct tipc_node *n_ptr, u32 seqno);
97int tipc_bclink_stats(char *stats_buf, const u32 buf_size); 100int tipc_bclink_stats(char *stats_buf, const u32 buf_size);
98int tipc_bclink_reset_stats(void); 101int tipc_bclink_reset_stats(void);
99int tipc_bclink_set_queue_limits(u32 limit); 102int tipc_bclink_set_queue_limits(u32 limit);
100void tipc_bcbearer_sort(void); 103void tipc_bcbearer_sort(void);
104void tipc_bcbearer_push(void);
101 105
102#endif 106#endif