diff options
Diffstat (limited to 'net/tipc/bcast.h')
| -rw-r--r-- | net/tipc/bcast.h | 38 | 
1 files changed, 18 insertions, 20 deletions
diff --git a/net/tipc/bcast.h b/net/tipc/bcast.h index 011c03f0a4a..00330c45df3 100644 --- a/net/tipc/bcast.h +++ b/net/tipc/bcast.h @@ -2,7 +2,7 @@   * net/tipc/bcast.h: Include file for TIPC broadcast code   *   * Copyright (c) 2003-2006, Ericsson AB - * Copyright (c) 2005, Wind River Systems + * Copyright (c) 2005, 2010-2011, Wind River Systems   * All rights reserved.   *   * Redistribution and use in source and binary forms, with or without @@ -39,31 +39,29 @@  #define MAX_NODES 4096  #define WSIZE 32 +#define TIPC_BCLINK_RESET 1  /**   * struct tipc_node_map - set of node identifiers   * @count: # of nodes in set   * @map: bitmap of node identifiers that are in the set   */ -  struct tipc_node_map {  	u32 count;  	u32 map[MAX_NODES / WSIZE];  }; -  #define PLSIZE 32  /** - * struct port_list - set of node local destination ports + * struct tipc_port_list - set of node local destination ports   * @count: # of ports in set (only valid for first entry in list)   * @next: pointer to next entry in list   * @ports: array of port references   */ - -struct port_list { +struct tipc_port_list {  	int count; -	struct port_list *next; +	struct tipc_port_list *next;  	u32 ports[PLSIZE];  }; @@ -72,33 +70,33 @@ struct tipc_node;  extern const char tipc_bclink_name[]; -void tipc_nmap_add(struct tipc_node_map *nm_ptr, u32 node); -void tipc_nmap_remove(struct tipc_node_map *nm_ptr, u32 node); -  /**   * tipc_nmap_equal - test for equality of node maps   */ - -static inline int tipc_nmap_equal(struct tipc_node_map *nm_a, struct tipc_node_map *nm_b) +static inline int tipc_nmap_equal(struct tipc_node_map *nm_a, +				  struct tipc_node_map *nm_b)  {  	return !memcmp(nm_a, nm_b, sizeof(*nm_a));  } -void tipc_port_list_add(struct port_list *pl_ptr, u32 port); -void tipc_port_list_free(struct port_list *pl_ptr); +void tipc_port_list_add(struct tipc_port_list *pl_ptr, u32 port); +void tipc_port_list_free(struct tipc_port_list *pl_ptr); -int  tipc_bclink_init(void); +int tipc_bclink_init(void);  void tipc_bclink_stop(void); +void tipc_bclink_set_flags(unsigned int flags); +void tipc_bclink_add_node(u32 addr); +void tipc_bclink_remove_node(u32 addr); +struct tipc_node *tipc_bclink_retransmit_to(void);  void tipc_bclink_acknowledge(struct tipc_node *n_ptr, u32 acked); -int  tipc_bclink_send_msg(struct sk_buff *buf); -void tipc_bclink_recv_pkt(struct sk_buff *buf); +int  tipc_bclink_xmit(struct sk_buff *buf); +void tipc_bclink_rcv(struct sk_buff *buf);  u32  tipc_bclink_get_last_sent(void);  u32  tipc_bclink_acks_missing(struct tipc_node *n_ptr); -void tipc_bclink_check_gap(struct tipc_node *n_ptr, u32 seqno); +void tipc_bclink_update_link_state(struct tipc_node *n_ptr, u32 last_sent);  int  tipc_bclink_stats(char *stats_buf, const u32 buf_size);  int  tipc_bclink_reset_stats(void);  int  tipc_bclink_set_queue_limits(u32 limit); -void tipc_bcbearer_sort(void); -void tipc_bcbearer_push(void); +void tipc_bcbearer_sort(struct tipc_node_map *nm_ptr, u32 node, bool action);  #endif  | 
