lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20080721001119.GA6515@gondor.apana.org.au>
Date:	Mon, 21 Jul 2008 08:11:20 +0800
From:	Herbert Xu <herbert@...dor.apana.org.au>
To:	jamal <hadi@...erus.ca>
Cc:	kaber@...sh.net, davem@...emloft.net, netdev@...r.kernel.org,
	johannes@...solutions.net, linux-wireless@...r.kernel.org
Subject: Re: [PATCH 20/31]: pkt_sched: Perform bulk of qdisc destruction in	RCU.

On Sun, Jul 20, 2008 at 11:35:19AM -0400, jamal wrote:
>
> All actions (on a per-type hash table basis) have an index.
> You create filter rule X and specify action nat.
> You may specify the index of the action when you create the filter X. 
> If you then create another filter rule Y, also using the same action
> index, then that nat action is shared between rule X and rule Y[1].

This is exactly what I want to get rid of because otherwise even
if no index was specified we'll still do a hash insertion which
simply falls apart with a small hash table.  Using a large hash
table on the other is bad for people who only have a few rules.

> [1]This is useful for tow reasons:
> a) memory saving purposes: If you dont care that much about performance
> or on a uniprocessor machine, one action would just be sufficient for
> many rules.
> b) accounting purposes; as you know qdiscs/filters/actions are
> per-device. Over the years, a need has arosen from some users to have a
> "per system" accounting (refer to the IMQ/IFB approach). Eg, if i wanted
> the policer action to account for ingress eth0 and egress eth1 for a
> user, i couldnt do it without some acrobatics.

We could do a dynamic table but so far I'm not convinced that
it's worth anybody's effort to implement :)

Cheers,
-- 
Visit Openswan at http://www.openswan.org/
Email: Herbert Xu ~{PmV>HI~} <herbert@...dor.apana.org.au>
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 netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ