19 Jun, 2019
1 commit
-
Based on 2 normalized pattern(s):
this program is free software you can redistribute it and or modify
it under the terms of the gnu general public license version 2 as
published by the free software foundationthis program is free software you can redistribute it and or modify
it under the terms of the gnu general public license version 2 as
published by the free software foundation #extracted by the scancode license scanner the SPDX license identifier
GPL-2.0-only
has been chosen to replace the boilerplate/reference in 4122 file(s).
Signed-off-by: Thomas Gleixner
Reviewed-by: Enrico Weigelt
Reviewed-by: Kate Stewart
Reviewed-by: Allison Randal
Cc: linux-spdx@vger.kernel.org
Link: https://lkml.kernel.org/r/20190604081206.933168790@linutronix.de
Signed-off-by: Greg Kroah-Hartman
29 Oct, 2018
1 commit
-
Laura found a better way to do this from userspace without requiring
kernel infrastructure, revert this.Fixes: 978d8f9055c3 ("netfilter: nft_numgen: add map lookups for numgen random operations")
Signed-off-by: Laura Garcia Liebana
Signed-off-by: Pablo Neira Ayuso
30 Jul, 2018
1 commit
-
Fix ptr_ret.cocci warnings:
net/netfilter/xt_connlimit.c:96:1-3: WARNING: PTR_ERR_OR_ZERO can be used
net/netfilter/nft_numgen.c:240:1-3: WARNING: PTR_ERR_OR_ZERO can be usedUse PTR_ERR_OR_ZERO rather than if(IS_ERR(...)) + PTR_ERR
Generated by: scripts/coccinelle/api/ptr_ret.cocci
Signed-off-by: YueHaibing
Signed-off-by: Pablo Neira Ayuso
01 Jun, 2018
1 commit
-
net/netfilter/nft_numgen.c:117:1-3: WARNING: PTR_ERR_OR_ZERO can be used
net/netfilter/nft_hash.c:180:1-3: WARNING: PTR_ERR_OR_ZERO can be used
net/netfilter/nft_hash.c:223:1-3: WARNING: PTR_ERR_OR_ZERO can be usedUse PTR_ERR_OR_ZERO rather than if(IS_ERR(...)) + PTR_ERR
Generated by: scripts/coccinelle/api/ptr_ret.cocci
Fixes: b9ccc07e3f31 ("netfilter: nft_hash: add map lookups for hashing operations")
Fixes: d734a2888922 ("netfilter: nft_numgen: add map lookups for numgen statements")
CC: Laura Garcia Liebana
Signed-off-by: kbuild test robot
Acked-by: Laura Garcia Liebana
Signed-off-by: Pablo Neira Ayuso
17 May, 2018
1 commit
-
This patch uses the map lookup already included to be applied
for random number generation.Signed-off-by: Laura Garcia Liebana
Signed-off-by: Pablo Neira Ayuso
07 May, 2018
1 commit
-
This patch includes a new attribute in the numgen structure to allow
the lookup of an element based on the number generator as a key.For this purpose, different ops have been included to extend the
current numgen inc functions.Currently, only supported for numgen incremental operations, but
it will be supported for random in a follow-up patch.Signed-off-by: Laura Garcia Liebana
Signed-off-by: Pablo Neira Ayuso
08 Apr, 2017
1 commit
-
Remove & from function pointers to conform to the style found elsewhere
in the file. Done using the following semantic patch//
@r@
identifier f;
@@f(...) { ... }
@@
identifier r.f;
@@- &f
+ f
//Signed-off-by: Arushi Singhal
Signed-off-by: Pablo Neira Ayuso
26 Oct, 2016
1 commit
-
Currently we start round robin from 1, but it's better to start round
robin from 0. This is to keep consistent with xt_statistic in iptables.Signed-off-by: Liping Zhang
Signed-off-by: Pablo Neira Ayuso
22 Sep, 2016
1 commit
-
Add support of an offset value for incremental counter and random. With
this option the sysadmin is able to start the counter to a certain value
and then apply the generated number.Example:
meta mark set numgen inc mod 2 offset 100
This will generate marks with the serie 100, 101, 100, 101, ...
Suggested-by: Pablo Neira Ayuso
Signed-off-by: Laura Garcia Liebana
Signed-off-by: Pablo Neira Ayuso
13 Sep, 2016
1 commit
-
After we generate a new number, we still use the priv->counter and
store it to the dreg. This is not correct, another cpu may already
change it to a new number. So we must use the generated number, not
the priv->counter itself.Fixes: 91dbc6be0a62 ("netfilter: nf_tables: add number generator expression")
Signed-off-by: Liping Zhang
Signed-off-by: Pablo Neira Ayuso
07 Sep, 2016
1 commit
-
The _until_ attribute is renamed to _modulus_ as the behaviour is similar to
other expresions with number limits (ex. nft_hash).Renaming is possible because there isn't a kernel release yet with these
changes.Signed-off-by: Laura Garcia Liebana
Signed-off-by: Pablo Neira Ayuso
26 Aug, 2016
1 commit
-
nft_dump_register() should only be used with registers, not with
immediates.Fixes: cb1b69b0b15b ("netfilter: nf_tables: add hash expression")
Fixes: 91dbc6be0a62("netfilter: nf_tables: add number generator expression")
Signed-off-by: Pablo Neira Ayuso
22 Aug, 2016
1 commit
-
This patch adds the numgen expression that allows us to generated
incremental and random numbers, this generator is bound to a upper limit
that is specified by userspace.This expression is useful to distribute packets in a round-robin fashion
as well as randomly.Signed-off-by: Laura Garcia Liebana
Signed-off-by: Pablo Neira Ayuso