Skip to content
Snippets Groups Projects
  1. May 10, 2013
    • Marek Vavrusa's avatar
      Imported mempool from libucw. · 2c5a7a3d
      Marek Vavrusa authored
      Mempool is a type of memory allocator that allows to
      free all allocated elements at once.
      Removed unnecessary string and state operations.
      Licensed under LGPL, same as lists and heap.
      
      Change-Id: I8b8f84f41dcc321f37e51894b5c121f463c4f111
      2c5a7a3d
    • Marek Vavrusa's avatar
      Generic memory allocation context. · e2e2152f
      Marek Vavrusa authored
      Default is libc malloc/free.
      This will be used to supply to functions where a memory is allocated
      in some context (f.e. when building packet) so the API stays the same
      and we could switch the allocator as we see fit.
      
      Change-Id: Ia5956b6da38d9feb01c5bfb0a4cd4e9393db0589
      e2e2152f
  2. May 09, 2013
  3. May 07, 2013
  4. May 03, 2013
  5. May 02, 2013
    • Marek Vavrusa's avatar
      Implemented HAT trie longest prefix match + tests. · 8d1f0569
      Marek Vavrusa authored
      General idea is regular search with keeping node stack.
      If node is found, then return current node.
      If node is htable, search for suffixes in htable.
      If anything fails, walk up the visited nodes and check if
      any visited node has value. If yes, then it is a prefix.
      
      f.e. searching for 'abcd'
      visited nodes: root -a-> {1:trie} -b-> {2:htable}
      1. search htable for 'cd', 'c'
      2. retrace to node {1}, does it have value?
      3. yes, node1 is prefix 'ab' for 'abcd'
      
      Change-Id: I622adbe9a127d8317b933af4bf56e1411e2d915f
      8d1f0569
    • Marek Vavrusa's avatar
      Better knot_zonedb_find_zone_for_name() implementation. · 6c00e514
      Marek Vavrusa authored
      Previous with full dname copy and chopping was really inefficient.
      Yields approx. 20% lower relative cost, 6% throughput increase.
      
      Change-Id: Icaa49572f75769739ae61f48d2ca958e38db6104
      6c00e514
    • Marek Vavrusa's avatar
      RX rate measurement code (disable by default). · ddf7e3b5
      Marek Vavrusa authored
      Change-Id: I3cfa7f07a71b1d8b9e77f93ef16b683c15f9fe24
      ddf7e3b5
  6. May 01, 2013
  7. Apr 30, 2013
  8. Apr 29, 2013
  9. Apr 27, 2013
  10. Apr 26, 2013
Loading