netdev
[Top] [All Lists]

[PATCH] improvement on net/sched/cls_fw.c's hash function

To: netdev@xxxxxxxxxxx
Subject: [PATCH] improvement on net/sched/cls_fw.c's hash function
From: Wang Jian <lark@xxxxxxxxxxxx>
Date: Tue, 05 Apr 2005 13:35:02 +0800
Sender: netdev-bounce@xxxxxxxxxxx
Hi,

This is a simple patch against net/sched/cls_fw.c. The idea of this
patch is discussed in this thread

https://lists.netfilter.org/pipermail/netfilter-devel/2005-March/018762.html

I chose 509 for FW_FILTER_HSIZE. If you feel it is waste of memory, then
251 is good too.

BTW: I don't know much about hash performance and hash distribution of
jhash. This is a quick fix.



-- 
  lark

Attachment: hash-cls_fw.diff
Description: Binary data

<Prev in Thread] Current Thread [Next in Thread>