datapath: Allow the number of hash entries to exceed TBL_MAX_BUCKETS
authorSimon Horman <horms@verge.net.au>
Wed, 3 Aug 2011 02:19:47 +0000 (11:19 +0900)
committerJesse Gross <jesse@nicira.com>
Wed, 3 Aug 2011 04:45:20 +0000 (21:45 -0700)
commitde06dce673979eb9208c539bad15fae855e1d4c5
treeefa475ad9b11d38a6474f9f45d1f3f6ce71db993
parentd1993ffea5d91f28f39838e8bcb1c67bc6bec790
datapath: Allow the number of hash entries to exceed TBL_MAX_BUCKETS

* If the number of entries in a table exceeds
  the number of buckets that it has then
  an attempt will be made to resize the table.

* There is a limit of TBL_MAX_BUCKETS placed on
  the number of buckets of a table.

* If this limit is exceeded keep using the existing table.
  This allows a table to hold more than TBL_MAX_BUCKETS
  entries at the expense of increased hash collisions.

Signed-off-by: Simon Horman <horms@verge.net.au>
Signed-off-by: Jesse Gross <jesse@nicira.com>
datapath/datapath.c
datapath/tunnel.c