summaryrefslogtreecommitdiff
path: root/examples/l3fwd
diff options
context:
space:
mode:
authorBruce Richardson <bruce.richardson@intel.com>2015-07-13 17:38:45 +0100
committerThomas Monjalon <thomas.monjalon@6wind.com>2015-07-13 19:27:31 +0200
commit24b4bb8123904e066ec0f47f4e8661e75ef8cace (patch)
tree6b8bea959bf7985e38190f4a79ae12a6c000a7ad /examples/l3fwd
parenta8dd50513dea7eb13bd9bd6ad40acb2f46f4876a (diff)
downloaddpdk-24b4bb8123904e066ec0f47f4e8661e75ef8cace.zip
dpdk-24b4bb8123904e066ec0f47f4e8661e75ef8cace.tar.gz
dpdk-24b4bb8123904e066ec0f47f4e8661e75ef8cace.tar.xz
hash: rename unused field
The cuckoo hash has a fixed number of entries per bucket, so the configuration parameter for this is unused. We change this field in the parameters struct to "reserved" to indicate that there is now no such parameter value, while at the same time keeping ABI consistency. Fixes: 48a399119619 ("hash: replace with cuckoo hash implementation") Suggested-by: Thomas Monjalon <thomas.monjalon@6wind.com> Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
Diffstat (limited to 'examples/l3fwd')
-rw-r--r--examples/l3fwd/main.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/examples/l3fwd/main.c b/examples/l3fwd/main.c
index 5c22ed1..def9594 100644
--- a/examples/l3fwd/main.c
+++ b/examples/l3fwd/main.c
@@ -2162,7 +2162,6 @@ setup_hash(int socketid)
struct rte_hash_parameters ipv4_l3fwd_hash_params = {
.name = NULL,
.entries = L3FWD_HASH_ENTRIES,
- .bucket_entries = 4,
.key_len = sizeof(union ipv4_5tuple_host),
.hash_func = ipv4_hash_crc,
.hash_func_init_val = 0,
@@ -2171,7 +2170,6 @@ setup_hash(int socketid)
struct rte_hash_parameters ipv6_l3fwd_hash_params = {
.name = NULL,
.entries = L3FWD_HASH_ENTRIES,
- .bucket_entries = 4,
.key_len = sizeof(union ipv6_5tuple_host),
.hash_func = ipv6_hash_crc,
.hash_func_init_val = 0,