aboutsummaryrefslogtreecommitdiff
path: root/net/tipc/node.c
AgeCommit message (Collapse)AuthorFilesLines
2008-09-02tipc: Don't use structure names which easily globally conflict.David S. Miller1-30/+30
Andrew Morton reported a build failure on sparc32, because TIPC uses names like "struct node" and there is a like named data structure defined in linux/node.h This just regexp replaces "struct node*" to "struct tipc_node*" to avoid this and any future similar problems. Signed-off-by: David S. Miller <[email protected]>
2008-07-14tipc: Add missing locks when inspecting node list & link listAllan Stephens1-5/+24
This patch ensures that TIPC configuration commands that display info about neighboring nodes and their links take the spinlocks that protect the node list and link lists from changing while the lists are being traversed. Signed-off-by: Allan Stephens <[email protected]> Signed-off-by: David S. Miller <[email protected]>
2008-05-21tipc: Prevent node object duplication due to simultaneous discoveryAllan Stephens1-0/+26
This patch ensures that the simultaneous discovery of the same neighboring node by multiple interfaces does not cause TIPC to add the node into its internal data structures more than once. Signed-off-by: Allan Stephens <[email protected]> Signed-off-by: David S. Miller <[email protected]>
2007-08-02[TIPC]: Fix two minor sparse warnings.Florian Westphal1-2/+0
fix two warnings generated by sparse: link.c:2386 symbol 'msgcount' shadows an earlier one node.c:244 symbol 'addr_string' shadows an earlier one Signed-off-by: Florian Westphal <[email protected]> Signed-off-by: David S. Miller <[email protected]>
2007-02-10[NET] TIPC: Fix whitespace errors.YOSHIFUJI Hideaki1-110/+110
Signed-off-by: YOSHIFUJI Hideaki <[email protected]> Signed-off-by: David S. Miller <[email protected]>
2006-12-02[TIPC]: Use kzalloc where appropriateArnaldo Carvalho de Melo1-2/+1
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
2006-12-02[TIPC]: endianness annotationsAl Viro1-6/+3
Signed-off-by: Al Viro <[email protected]> Signed-off-by: David S. Miller <[email protected]>
2006-10-18[TIPC]: Can now list multicast link on an isolated network nodeAllan Stephens1-1/+1
This patch fixes a minor bug that prevents "tipc-config -l" from displaying the multicast link if a TIPC node has never successfully established at least one unicast link. Signed-off-by: Allan Stephens <[email protected]> Signed-off-by: Per Liden <[email protected]> Signed-off-by: David S. Miller <[email protected]>
2006-06-29[TIPC]: Improve response to requests for node/link informationAllan Stephens1-9/+17
Now allocates reply space for "get links" request based on number of actual links, not number of potential links. Also, limits reply to "get links" and "get nodes" requests to 32KB to match capabilities of tipc-config utility that issued request. Signed-off-by: Allan Stephens <[email protected]> Signed-off-by: Per Liden <[email protected]>
2006-06-27[PATCH] spin/rwlock init cleanupsIngo Molnar1-1/+1
locking init cleanups: - convert " = SPIN_LOCK_UNLOCKED" to spin_lock_init() or DEFINE_SPINLOCK() - convert rwlocks in a similar manner this patch was generated automatically. Motivation: - cleanliness - lockdep needs control of lock initialization, which the open-coded variants do not give - it's also useful for -rt and for lock debugging in general Signed-off-by: Ingo Molnar <[email protected]> Signed-off-by: Arjan van de Ven <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
2006-06-25[TIPC]: Fixed link switchover bugsAllan Stephens1-2/+5
Incorporates several related fixes: - switchover now occurs when switching from an active link to a standby link - failure of a standby link no longer initiates switchover - links now display correct # of received packtes following reactivation Signed-off-by: Allan Stephens <[email protected]> Signed-off-by: Per Liden <[email protected]> Signed-off-by: David S. Miller <[email protected]>
2006-06-25[TIPC]: Enhanced & cleaned up system messages; fixed 2 obscure memory leaks.Allan Stephens1-32/+36
Signed-off-by: Allan Stephens <[email protected]> Signed-off-by: Per Liden <[email protected]> Signed-off-by: David S. Miller <[email protected]>
2006-06-25[TIPC]: First phase of assert() cleanupAllan Stephens1-2/+1
This also contains enhancements to simplify comparisons in name table publication removal algorithm and to simplify name table sanity checking when shutting down TIPC. Signed-off-by: Allan Stephens <[email protected]> Signed-off-by: Per Liden <[email protected]> Signed-off-by: David S. Miller <[email protected]>
2006-03-20[TIPC]: CleanupsAdrian Bunk1-1/+1
This patch contains the following possible cleanups: - make needlessly global code static - #if 0 the following unused global functions: - name_table.c: tipc_nametbl_print() - name_table.c: tipc_nametbl_dump() - net.c: tipc_net_next_node() Signed-off-by: Adrian Bunk <[email protected]> Signed-off-by: Per Liden <[email protected]> Signed-off-by: David S. Miller <[email protected]>
2006-03-20[TIPC]: Fix simple sparse warningsSam Ravnborg1-9/+9
Tried to run the new tipc stack through sparse. Following patch fixes all cases where 0 was used as replacement of NULL. Use NULL to document this is a pointer and to silence sparse. This brough sparse warning count down with 127 to 24 warnings. Signed-off-by: Sam Ravnborg <[email protected]> Signed-off-by: Per Liden <[email protected]> Signed-off-by: David S. Miller <[email protected]>
2006-01-18[TIPC] Avoid polluting the global namespacePer Liden1-108/+107
This patch adds a tipc_ prefix to all externally visible symbols. Signed-off-by: Per Liden <[email protected]>
2006-01-12[TIPC] More updates of file headersPer Liden1-1/+1
Updated copyright notice to include the year the file was actually created. Information about file creation dates was extracted from the files in the old CVS repository at tipc.sourceforge.net. Signed-off-by: Per Liden <[email protected]>
2006-01-12[TIPC] Update of file headersPer Liden1-2/+1
The copyright statements from different parts of Ericsson have been merged into one. Signed-off-by: Per Liden <[email protected]>
2006-01-12[TIPC] License header updatePer Liden1-19/+23
The license header in each file now more clearly state that this code is licensed under a dual BSD/GPL. Before this was only evident if you looked at the MODULE_LICENSE line in core.c. Signed-off-by: Per Liden <[email protected]>
2006-01-12[TIPC] Initial mergePer Liden1-0/+676
TIPC (Transparent Inter Process Communication) is a protocol designed for intra cluster communication. For more information see http://tipc.sourceforge.net Signed-off-by: Per Liden <[email protected]>