netfilter-devel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [xtables-addons][PATCH 0/2] Misc ipset issues
@ 2009-12-19 20:50 Kevin Locke
  2009-12-19 20:50 ` [xtables-addons][PATCH 1/2] Rename skb->iif to skb->skb_iif for after 2.6.32 Kevin Locke
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Kevin Locke @ 2009-12-19 20:50 UTC (permalink / raw)
  To: netfilter-devel; +Cc: Kevin Locke

Hello All,

I just wanted to express my thanks for writing/maintaining ipset and
xtables-addons.  I have found them to be very useful.

I ran across a few issues getting ipset to work on my system and
wanted to bring them up here for consideration.

The first is that in 2.6.33-rc1, sk_buff->iff was renamed to
sk_buff->skb_iif, which breaks compilation on kernels going forward.

The second issue is that the setlist module is currently not being
built which results in "ipset v4.1: Unknown set type" when attempting
to create a set of this type (as documented in the man page).  I'm not
sure if this is intentional (if it is, feel free to ignore that
patch), but in my experience it has worked quite well with the
exception of -T not working as expected (or at all AFAICT).

Another issue, for which I did not include a patch, is how automatic
resizing of hash tables is handled.  If I restore a file (created
outside ipset) which contains somewhere near (but less than) 65000
entries which do not hash to unique values I start getting log
messages like the following:

/usr/src/modules/xtables-addons/ipset/ip_set_nethash.c: nethash_retry: rehashing of set setname triggered: hashsize grows from 44319 to 66478
/usr/src/modules/xtables-addons/ipset/ip_set_nethash.c: nethash_retry: rehashing of set setname triggered: hashsize grows from 66478 to 99717

and ipset -R silently fails to restore the rest of the file (returning
exit code 0).  I realize that there may be some code to deal with this
during save (or when adding entries using -A), but it would be very
helpful if the user could be warned about the failure during -R as
well.  As a side note:  One use case is when building a large set it
is significantly (on the order of 1000 times on my test system) faster
to build the list and use -R than individually with -A).

Thanks again for all of your work,
Kevin

P.S.  Please CC me in replies as I am not subscribed to this list.

Kevin Locke (2):
  Rename skb->iif to skb->skb_iif for after 2.6.32
  Build ip_set_setlist.ko module

 extensions/compat_skbuff.h |    5 ++++-
 extensions/ipset/Kbuild    |    2 +-
 2 files changed, 5 insertions(+), 2 deletions(-)


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

end of thread, other threads:[~2009-12-31 15:18 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-12-19 20:50 [xtables-addons][PATCH 0/2] Misc ipset issues Kevin Locke
2009-12-19 20:50 ` [xtables-addons][PATCH 1/2] Rename skb->iif to skb->skb_iif for after 2.6.32 Kevin Locke
2009-12-19 20:50 ` [xtables-addons][PATCH 2/2] Build ip_set_setlist.ko module Kevin Locke
2009-12-20  9:36 ` [xtables-addons][PATCH 0/2] Misc ipset issues Jozsef Kadlecsik
2009-12-31 15:18 ` Jan Engelhardt

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).