• Neil Horman's avatar
    SCTP: Reduce log spamming for sctp setsockopt · 94f65193
    Neil Horman authored
    During a recent discussion regarding some sctp socket options, it was noted that
    we have several points at which we issue log warnings that can be flooded at an
    unbounded rate by any user.  Fix this by converting all the pr_warns in the
    sctp_setsockopt path to be pr_warn_ratelimited.
    
    Note there are several debug level messages as well.  I'm leaving those alone,
    as, if you turn on pr_debug, you likely want lots of verbosity.
    Signed-off-by: default avatarNeil Horman <nhorman@tuxdriver.com>
    CC: Vlad Yasevich <vyasevich@gmail.com>
    CC: David Miller <davem@davemloft.net>
    CC: netdev@vger.kernel.org
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    94f65193
socket.c 200 KB