]> git.baikalelectronics.ru Git - kernel.git/commit
dccp: Convert DCCP_WARN to net_warn_ratelimited
authorJoe Perches <joe@perches.com>
Thu, 6 Nov 2014 20:53:41 +0000 (12:53 -0800)
committerDavid S. Miller <davem@davemloft.net>
Sun, 9 Nov 2014 02:22:54 +0000 (21:22 -0500)
commit6f96f63f3f4400bbf1c14f5712b66f6f3cdbff86
tree4ffbee34cbdf1988cfcf72cd48cbb147d23a48be
parent6ebfdad0f7496e632cdaeb6309386c9ad6de46ca
dccp: Convert DCCP_WARN to net_warn_ratelimited

Remove the dependency on the "warning" sysctl (net_msg_warn)
which is only used by the LIMIT_NETDEBUG macro.

Convert the LIMIT_NETDEBUG use in DCCP_WARN to the more
common net_warn_ratelimited mechanism.

This still ratelimits based on the net_ratelimit()
function, but removes the check for the sysctl.

Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/dccp/dccp.h