]> git.baikalelectronics.ru Git - kernel.git/commit
SCTP: Use net_ratelimit to suppress error messages print too fast
authorWei Yongjun <yjwei@cn.fujitsu.com>
Mon, 27 Aug 2007 03:19:24 +0000 (11:19 +0800)
committerVlad Yasevich <vladislav.yasevich@hp.com>
Thu, 30 Aug 2007 17:52:56 +0000 (13:52 -0400)
commit8ee8f7000505f270c43f91ee959f29e1ad6127f3
treecfbad786d1115135ce7fc61ffef83018feadaa5b
parent2a43e23665fb00f9d942cc4cda810a79238f793b
SCTP: Use net_ratelimit to suppress error messages print too fast

When multi bundling SHUTDOWN-ACK message is received in ESTAB state,
this will cause "sctp protocol violation state" message print many times.
If SHUTDOWN-ACK is bundled 300 times in one packet, message will be
print 300 times. The same problem also exists when received unexpected
HEARTBEAT-ACK message which is bundled message times.

This patch used net_ratelimit() to suppress error messages print too fast.

Signed-off-by: Wei Yongjun <yjwei@cn.fujitsu.com>
Signed-off-by: Vlad Yasevich <vladislav.yasevich@hp.com>
net/sctp/sm_sideeffect.c
net/sctp/sm_statefuns.c