Skip to content

Commit

Permalink
Use default hash in IPFIX cache
Browse files Browse the repository at this point in the history
Remove FNV hash; we'll just use the default hash now that it's been
improved.
  • Loading branch information
wingo committed Jul 25, 2017
1 parent 60e1a0c commit d60b166
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 114 deletions.
2 changes: 0 additions & 2 deletions src/apps/ipfix/cache.lua
Expand Up @@ -6,7 +6,6 @@ module(..., package.seeall)
local bit = require("bit")
local ffi = require("ffi")
local ctable = require("lib.ctable")
local fnv = require("apps.ipfix.hash")

-- Flow key & flow record FFI type definitions
--
Expand Down Expand Up @@ -64,7 +63,6 @@ function FlowCache:new(config)
value_type = ffi.typeof("struct flow_record"),
max_occupancy_rate = 0.4,
initial_size = math.ceil(o.cache_size / 0.4),
hash_fn = fnv.make_fnv_hash(ffi.sizeof("struct flow_key"))
}

o.table = ctable.new(params)
Expand Down
112 changes: 0 additions & 112 deletions src/apps/ipfix/hash.dasl

This file was deleted.

0 comments on commit d60b166

Please sign in to comment.