• T
    l2tp: use standard API for warning log messages · 5ee759cd
    Tom Parkin 提交于
    The l2tp_* log wrappers only emit messages of a given category if the
    tunnel or session structure has the appropriate flag set in its debug
    field.  Flags default to being unset.
    
    For warning messages, this doesn't make a lot of sense since an
    administrator is likely to want to know about datapath warnings without
    needing to tweak the debug flags setting for a given tunnel or session
    instance.
    
    Modify l2tp_warn callsites to use pr_warn_ratelimited instead for
    unconditional output of warning messages.
    Signed-off-by: NTom Parkin <tparkin@katalix.com>
    Signed-off-by: NDavid S. Miller <davem@davemloft.net>
    5ee759cd
l2tp_ppp.c 42.2 KB