1. 09 Nov, 2013 1 commit
  2. 08 Nov, 2013 37 commits
  3. 07 Nov, 2013 2 commits
    • David S. Miller's avatar
      Merge branch 'tipc_fragmentation' · 95ed4019
      David S. Miller authored
      Erik Hugne says:
      
      ====================
      tipc: message reassembly using fragment chain
      
      We introduce a new reassembly algorithm that improves performance
      and eliminates the risk of causing out-of-memory situations.
      
      v3: -Use skb_try_coalesce, and revert to fraglist if this does not succeed.
          -Make sure reassembly list head is uncloned.
      
      v2: -Rebased on Ying's indentation fix.
          -Node unlock call in msg_fragmenter case moved from patch #2 to #1.
           ('continue' with this lock held would cause spinlock recursion if only
            patch #1 is used)
      ====================
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      95ed4019
    • Erik Hugne's avatar
      tipc: reassembly failures should cause link reset · a715b49e
      Erik Hugne authored
      If appending a received fragment to the pending fragment chain
      in a unicast link fails, the current code tries to force a retransmission
      of the fragment by decrementing the 'next received sequence number'
      field in the link. This is done under the assumption that the failure
      is caused by an out-of-memory situation, an assumption that does
      not hold true after the previous patch in this series.
      
      A failure to append a fragment can now only be caused by a protocol
      violation by the sending peer, and it must hence be assumed that it
      is either malicious or buggy.  Either way, the correct behavior is now
      to reset the link instead of trying to revert its sequence number.
      So, this is what we do in this commit.
      Signed-off-by: default avatarErik Hugne <erik.hugne@ericsson.com>
      Reviewed-by: default avatarPaul Gortmaker <paul.gortmaker@windriver.com>
      Signed-off-by: default avatarJon Maloy <jon.maloy@ericsson.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      a715b49e