1. 11 7月, 2012 1 次提交
  2. 04 6月, 2012 1 次提交
    • J
      net: Remove casts to same type · e3192690
      Joe Perches 提交于
      Adding casts of objects to the same type is unnecessary
      and confusing for a human reader.
      
      For example, this cast:
      
      	int y;
      	int *p = (int *)&y;
      
      I used the coccinelle script below to find and remove these
      unnecessary casts.  I manually removed the conversions this
      script produces of casts with __force and __user.
      
      @@
      type T;
      T *p;
      @@
      
      -	(T *)p
      +	p
      Signed-off-by: NJoe Perches <joe@perches.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      e3192690
  3. 01 5月, 2012 1 次提交
    • P
      tipc: compress out gratuitous extra carriage returns · 617d3c7a
      Paul Gortmaker 提交于
      Some of the comment blocks are floating in limbo between two
      functions, or between blocks of code.  Delete the extra line
      feeds between any comment and its associated following block
      of code, to be consistent with the majority of the rest of
      the kernel.  Also delete trailing newlines at EOF and fix
      a couple trivial typos in existing comments.
      
      This is a 100% cosmetic change with no runtime impact.  We get
      rid of over 500 lines of non-code, and being blank line deletes,
      they won't even show up as noise in git blame.
      Signed-off-by: NPaul Gortmaker <paul.gortmaker@windriver.com>
      617d3c7a
  4. 27 4月, 2012 1 次提交
    • A
      tipc: Enhance error checking of published names · 8f177896
      Allan Stephens 提交于
      Consolidates validation of scope and name sequence range values into
      a single routine where it applies both to local name publications
      and to name publications issued by other nodes in the network. This
      change means that the scope value for non-local publications is now
      validated and the name sequence range for local publications is now
      validated only once. Additionally, a publication attempt that fails
      validation now creates an entry in the system log file only if debugging
      capabilities have been enabled; this prevents the system log from being
      cluttered up with messages caused by a defective application or network
      node.
      Signed-off-by: NAllan Stephens <allan.stephens@windriver.com>
      Signed-off-by: NPaul Gortmaker <paul.gortmaker@windriver.com>
      8f177896
  5. 24 4月, 2012 1 次提交
  6. 20 4月, 2012 7 次提交
  7. 01 3月, 2012 2 次提交
  8. 25 2月, 2012 2 次提交
  9. 07 2月, 2012 1 次提交
  10. 30 12月, 2011 1 次提交
  11. 25 6月, 2011 9 次提交
  12. 11 5月, 2011 4 次提交
  13. 24 2月, 2011 3 次提交
    • A
      tipc: Remove support for per-connection message sequence numbering · 741de3e9
      Allan Stephens 提交于
      Eliminates TIPC's prototype support for message sequence numbering
      on routable connections (i.e. connections requiring more than one hop).
      This capability isn't currently used, and can be removed since TIPC
      only supports systems in which all inter-node communication can be
      achieved in a single hop.
      Signed-off-by: NAllan Stephens <Allan.Stephens@windriver.com>
      Signed-off-by: NPaul Gortmaker <paul.gortmaker@windriver.com>
      741de3e9
    • A
      tipc: Fix port counter handling to correct congestion control · cb7ce914
      Allan Stephens 提交于
      Modifies TIPC's congestion control between a connected port and its
      peer so that it works as documented. The following changes have been
      made:
      
      1) The counter of the number of messages sent by a port now starts
         at zero, rather than one. This prevents the port from reporting port
         congestion one message earlier than it was supposed to.
      
      2) The counter of the number of messages sent by a port is now
         incremented only if a non-empty message is sent successfully.
         This prevents the port from becoming permanently congested if
         too many send attempts are unsuccessful because of congestion
         (or other reasons). It also removes the risk that empty hand-
         shaking messages used during connection setup might cause the
         port to report congestion earlier than it was supposed to.
      
      3) The counter of the number of unacknowledged messages received by
         a port controlled by an internal TIPC service is now incremented
         only if the message is non-empty, in order to be consistent with
         the aforementioned changes.
      Signed-off-by: NAllan Stephens <Allan.Stephens@windriver.com>
      Signed-off-by: NPaul Gortmaker <paul.gortmaker@windriver.com>
      cb7ce914
    • A
      tipc: Combine port structure with tipc_port structure · 23dd4cce
      Allan Stephens 提交于
      Merge two distinct structures containing information about a TIPC port
      into a single structure. The structures were previously kept separate
      so that public information about a port could be made available to
      applications using TIPC's native API, while the remaining information
      was kept private for use by TIPC itself. However, now that the native
      API has been removed there is no longer any need for this somewhat
      confusing arrangement.
      
      Since one of the structures was already embedded within the other, the
      change largely involves replacing instances of "publ.foo" with "foo".
      The changes do not otherwise alter the operation of TIPC ports.
      Signed-off-by: NAllan Stephens <Allan.Stephens@windriver.com>
      Signed-off-by: NPaul Gortmaker <paul.gortmaker@windriver.com>
      23dd4cce
  14. 02 1月, 2011 6 次提交