netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/32] TIPC updates
@ 2006-06-22 11:14 Per Liden
  2006-06-22 13:59 ` [PATCH 1/32] [TIPC] Improved tolerance to promiscuous mode interface Per Liden
                   ` (32 more replies)
  0 siblings, 33 replies; 37+ messages in thread
From: Per Liden @ 2006-06-22 11:14 UTC (permalink / raw)
  To: David Miller; +Cc: netdev, per.liden

Here's a resend of the latest TIPC updates. I apologize for not properly 
submitting the patches for review the first time around.

This patch set includes several minor bugfixes. Most of them ported over 
from an older TIPC 1.5.x branch maintained on sourceforge (that branch is 
being phased).

Patches can be pulled from:

	git://tipc.cslab.ericsson.net/pub/git/tipc.git

Summary:

 include/net/tipc/tipc_bearer.h |   12 ++
 net/tipc/bcast.c               |   79 ++++++++-------
 net/tipc/bcast.h               |    2 
 net/tipc/bearer.c              |   70 +++++++------
 net/tipc/cluster.c             |   22 ++--
 net/tipc/config.c              |   85 +++++++---------
 net/tipc/core.c                |    7 +
 net/tipc/core.h                |   21 +++-
 net/tipc/discover.c            |   13 +-
 net/tipc/eth_media.c           |   29 +++--
 net/tipc/link.c                |  217 +++++++++++++++++++++++++++++++---------
 net/tipc/name_distr.c          |   30 ++++--
 net/tipc/name_table.c          |  203 ++++++++++++++++++++-----------------
 net/tipc/node.c                |   78 ++++++++------
 net/tipc/node.h                |    2 
 net/tipc/node_subscr.c         |   15 +--
 net/tipc/port.c                |   41 ++++----
 net/tipc/ref.c                 |   31 +++++-
 net/tipc/socket.c              |  100 +++++++++++-------
 net/tipc/subscr.c              |   18 ++-
 net/tipc/zone.c                |   19 ++--
 21 files changed, 661 insertions(+), 433 deletions(-)

Allan Stephens:
      [TIPC] Prevent name table corruption if no room for new publication
      [TIPC] Use correct upper bound when validating network zone number.
      [TIPC] Corrected potential misuse of tipc_media_addr structure.
      [TIPC] Allow ports to receive multicast messages through native API.
      [TIPC] Links now validate destination node specified by incoming messages.
      [TIPC] Multicast link failure now resets all links to "nacking" node.
      [TIPC] Allow compilation when CONFIG_TIPC_DEBUG is not set.
      [TIPC] Fixed privilege checking typo in dest_name_check().
      [TIPC] Fix misleading comment in buf_discard() routine.
      [TIPC] Added support for MODULE_VERSION capability.
      [TIPC] Validate entire interface name when locating bearer to enable.
      [TIPC] Non-operation-affecting corrections to comments & function definitions.
      [TIPC] Fixed connect() to detect a dest address that is missing or too short.
      [TIPC] Implied connect now saves dest name for retrieval as ancillary data.
      [TIPC] Can now return destination name of form {0,x,y} via ancillary data.
      [TIPC] Connected send now checks socket state when retrying congested send.
      [TIPC] Stream socket send indicates partial success if data partially sent.
      [TIPC] Improved performance of error checking during socket creation.
      [TIPC] recvmsg() now returns TIPC ancillary data using correct level (SOL_TIPC)
      [TIPC] Simplify code for returning partial success of stream send request.
      [TIPC] Optimized argument validation done by connect().
      [TIPC] Withdrawing all names from nameless port now returns success, not error
      [TIPC] Added missing warning for out-of-memory condition
      [TIPC] Fixed memory leak in tipc_link_send() when destination is unreachable
      [TIPC] Disallow config operations that aren't supported in certain modes.
      [TIPC] First phase of assert() cleanup
      [TIPC] Enhanced & cleaned up system messages; fixed 2 obscure memory leaks.
      [TIPC] Fixed link switchover bugs
      [TIPC] Get rid of dynamically allocated arrays in broadcast code.
      [TIPC] Fix incorrect correction to discovery timer frequency computation.

Eric Sesterhenn:
      [TIPC] Fix for NULL pointer dereference

Jon Maloy:
      [TIPC] Improved tolerance to promiscuous mode interface

/Per

^ permalink raw reply	[flat|nested] 37+ messages in thread
* RE: [PATCH 7/32] [TIPC] Multicast link failure now resets all links to "nacking" node.
@ 2006-06-22 20:33 Stephens, Allan
  2006-06-26 11:50 ` Per Liden
  0 siblings, 1 reply; 37+ messages in thread
From: Stephens, Allan @ 2006-06-22 20:33 UTC (permalink / raw)
  To: James Morris, Per Liden; +Cc: David Miller, netdev

Nice observation, James.  As a relative newcomer to the official Linux
kernel development world, I'm impressed that non-TIPC folks are looking
at TIPC changes closely enough to see things like this!

Per, I'll leave it to you to decide if you want to address James's
concern.  But be aware that the link_reset_all() routine is only called
to handle emergency situations when TIPC's multicast link has run into
serious problems and is trying to recover.  Most systems will never
follow this path, so the cost of the unnecessary
local_bh_disable()/local_bh_enable() pairing shouldn't have any real
impact on the overall performance of TIPC.

Regards,
Al Stephens

> -----Original Message-----
> From: James Morris [mailto:jmorris@namei.org] 
> Sent: Thursday, June 22, 2006 2:51 PM
> To: Per Liden
> Cc: David Miller; netdev@vger.kernel.org; Stephens, Allan
> Subject: Re: [PATCH 7/32] [TIPC] Multicast link failure now 
> resets all links to "nacking" node.
> 
> On Thu, 22 Jun 2006, Per Liden wrote:
> 
> > +static void link_reset_all(unsigned long addr) {
> > +	struct node *n_ptr;
> > +	char addr_string[16];
> > +	u32 i;
> > +
> > +	read_lock_bh(&tipc_net_lock);
> > +	n_ptr = tipc_node_find((u32)addr);
> > +	if (!n_ptr) {
> > +		read_unlock_bh(&tipc_net_lock);
> > +		return;	/* node no longer exists */
> > +	}
> > +
> > +	tipc_node_lock(n_ptr);
> 
> You already have bh's disabled here, and tipc_node_lock() 
> also disables them.
> 
> Not sure if it's really worth worrying about but if so, you 
> could perhaps implement tipc_node_lock_bh() and tipc_node_lock().
> 
> 
> 
> - James
> -- 
> James Morris
> <jmorris@namei.org>
> 

^ permalink raw reply	[flat|nested] 37+ messages in thread

end of thread, other threads:[~2006-06-26 11:50 UTC | newest]

Thread overview: 37+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-06-22 11:14 [PATCH 0/32] TIPC updates Per Liden
2006-06-22 13:59 ` [PATCH 1/32] [TIPC] Improved tolerance to promiscuous mode interface Per Liden
2006-06-22 13:59 ` [PATCH 2/32] [TIPC] Prevent name table corruption if no room for new publication Per Liden
2006-06-22 13:59 ` [PATCH 3/32] [TIPC] Use correct upper bound when validating network zone number Per Liden
2006-06-22 13:59 ` [PATCH 4/32] [TIPC] Corrected potential misuse of tipc_media_addr structure Per Liden
2006-06-22 13:59 ` [PATCH 5/32] [TIPC] Allow ports to receive multicast messages through native API Per Liden
2006-06-22 13:59 ` [PATCH 6/32] [TIPC] Links now validate destination node specified by incoming messages Per Liden
2006-06-22 13:59 ` [PATCH 7/32] [TIPC] Multicast link failure now resets all links to "nacking" node Per Liden
2006-06-22 18:51   ` James Morris
2006-06-22 13:59 ` [PATCH 8/32] [TIPC] Allow compilation when CONFIG_TIPC_DEBUG is not set Per Liden
2006-06-22 13:59 ` [PATCH 9/32] [TIPC] Fix for NULL pointer dereference Per Liden
2006-06-22 13:59 ` [PATCH 10/32] [TIPC] Fixed privilege checking typo in dest_name_check() Per Liden
2006-06-22 13:59 ` [PATCH 11/32] [TIPC] Fix misleading comment in buf_discard() routine Per Liden
2006-06-22 13:59 ` [PATCH 12/32] [TIPC] Added support for MODULE_VERSION capability Per Liden
2006-06-22 13:59 ` [PATCH 13/32] [TIPC] Validate entire interface name when locating bearer to enable Per Liden
2006-06-22 13:59 ` [PATCH 14/32] [TIPC] Non-operation-affecting corrections to comments & function definitions Per Liden
2006-06-22 13:59 ` [PATCH 15/32] [TIPC] Fixed connect() to detect a dest address that is missing or too short Per Liden
2006-06-22 13:59 ` [PATCH 16/32] [TIPC] Implied connect now saves dest name for retrieval as ancillary data Per Liden
2006-06-22 13:59 ` [PATCH 17/32] [TIPC] Can now return destination name of form {0,x,y} via " Per Liden
2006-06-22 13:59 ` [PATCH 18/32] [TIPC] Connected send now checks socket state when retrying congested send Per Liden
2006-06-22 13:59 ` [PATCH 19/32] [TIPC] Stream socket send indicates partial success if data partially sent Per Liden
2006-06-22 13:59 ` [PATCH 20/32] [TIPC] Improved performance of error checking during socket creation Per Liden
2006-06-22 13:59 ` [PATCH 21/32] [TIPC] recvmsg() now returns TIPC ancillary data using correct level (SOL_TIPC) Per Liden
2006-06-22 13:59 ` [PATCH 22/32] [TIPC] Simplify code for returning partial success of stream send request Per Liden
2006-06-22 13:59 ` [PATCH 23/32] [TIPC] Optimized argument validation done by connect() Per Liden
2006-06-22 13:59 ` [PATCH 24/32] [TIPC] Withdrawing all names from nameless port now returns success, not error Per Liden
2006-06-22 13:59 ` [PATCH 25/32] [TIPC] Added missing warning for out-of-memory condition Per Liden
2006-06-22 13:59 ` [PATCH 26/32] [TIPC] Fixed memory leak in tipc_link_send() when destination is unreachable Per Liden
2006-06-22 13:59 ` [PATCH 27/32] [TIPC] Disallow config operations that aren't supported in certain modes Per Liden
2006-06-22 13:59 ` [PATCH 28/32] [TIPC] First phase of assert() cleanup Per Liden
2006-06-22 13:59 ` [PATCH 29/32] [TIPC] Enhanced & cleaned up system messages; fixed 2 obscure memory leaks Per Liden
2006-06-22 13:59 ` [PATCH 30/32] [TIPC] Fixed link switchover bugs Per Liden
2006-06-22 13:59 ` [PATCH 31/32] [TIPC] Get rid of dynamically allocated arrays in broadcast code Per Liden
2006-06-22 13:59 ` [PATCH 32/32] [TIPC] Fix incorrect correction to discovery timer frequency computation Per Liden
2006-06-26  6:54 ` [PATCH 0/32] TIPC updates David Miller
  -- strict thread matches above, loose matches on Subject: below --
2006-06-22 20:33 [PATCH 7/32] [TIPC] Multicast link failure now resets all links to "nacking" node Stephens, Allan
2006-06-26 11:50 ` Per Liden

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).