On Sat, Mar 21, 2015 at 03:38:09PM +0000, Patrick McHardy wrote: > nftables sets will be converted to use so called setextensions, moving > the key to a non-fixed position. To hash it, the obj_hashfn must be used, > however it so far doesn't receive the length parameter. > > Pass the key length to obj_hashfn() and convert existing users. > > Signed-off-by: Patrick McHardy <kaber@xxxxxxxxx> I presume you've got the offset embedded inside the object. Can you show us what your actual code looks like? I'm wondering if you could instead provide rhashtable with a fixed offset key with the object offset embedded in the key that then lets you go back up to figure out the object? Cheers, -- Email: Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx> Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt -- To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html