netfilter-devel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2] netfilter: hash resizing
@ 2014-02-28 13:48 Patrick McHardy
  2014-02-28 13:48 ` [PATCH v2] netfilter: nft_hash: bug fixes and resizing Patrick McHardy
  0 siblings, 1 reply; 4+ messages in thread
From: Patrick McHardy @ 2014-02-28 13:48 UTC (permalink / raw)
  To: pablo; +Cc: netfilter-devel, josh, paulmck

this is a slightly updates patch for nft_hash to use RCU resizing. Since
the current implementation is seriously buggy, this should in any case be
an improvement. Testing also works fine.

Changes this v1 posting:

- use vmalloc as fallback for failed kmalloc allocations

- avoid potential overflow in hash expansion and shrinking checks,
  suggested by Josh. Note: I didn't use a shift since gcc properly
  generates that itself.

Please apply. Thanks!

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2014-02-28 14:35 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-02-28 13:48 [PATCH v2] netfilter: hash resizing Patrick McHardy
2014-02-28 13:48 ` [PATCH v2] netfilter: nft_hash: bug fixes and resizing Patrick McHardy
2014-02-28 14:24   ` Eric Dumazet
2014-02-28 14:35     ` Patrick McHardy

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).