On Wed, Mar 02, 2016 at 04:29:46PM +0100, Florian Westphal wrote: > Pablo Neira Ayuso <pablo@xxxxxxxxxxxxx> wrote: > > In all this thread you talk all the time on probability semantics, > > however the selector name is 'random'. > > > > Why don't you rename this to 'meta probability' instead? > > > > No changes in the semantics then, just use: > > > > meta probability 0.1 > > > > and when expressing the opposite: > > > > meta probability 0.9 > > I have no preferences one way or another, i'd > be fine with using probability for this. > > In future you might want to allow something like > > nft add rule filter input meta mark set meta random Right. > or > nft add rule filter input queue num meta random Yes, this reminds me we have to fix nft_queue so it also accepts a sreg as input. It's not very flexible and we cannot use maps with it. > Perhaps we should use probability for now and later > alias is to random for these cases? +1 to using meta probability for this. -- 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