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 foundation

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

    Thomas Gleixner
     

29 Oct, 2018

1 commit


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 used

    Use 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

    YueHaibing
     

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 used

    Use 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

    kbuild test robot
     

17 May, 2018

1 commit


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

    Laura Garcia Liebana
     

08 Apr, 2017

1 commit


26 Oct, 2016

1 commit


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

    Laura Garcia Liebana
     

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

    Liping Zhang
     

07 Sep, 2016

1 commit


26 Aug, 2016

1 commit


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

    Laura Garcia Liebana