[Bug 1426] Inefficient command lookup on errors

bugzilla-daemon at netfilter.org bugzilla-daemon at netfilter.org
Tue Sep 22 01:29:38 CEST 2020


https://bugzilla.netfilter.org/show_bug.cgi?id=1426

--- Comment #4 from Pablo Neira Ayuso <pablo at netfilter.org> ---
Patch is applied, thanks.

I observe a real gain (much faster speedup) if 

        struct {                                                                
                uint16_t        offset;                                         
                struct location *location;                                      
        } attr[NFT_NLATTR_LOC_MAX];

in struct cmd is translated to use a hashtable, probably using the command
sequence number and the offset as key and importing the jhash() into the tree
(like in the conntrack-tools).

-- 
You are receiving this mail because:
You are watching all bug changes.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.netfilter.org/pipermail/netfilter-buglog/attachments/20200921/eae5ce10/attachment.html>


More information about the netfilter-buglog mailing list