OSDN Git Service

net: add a route cache full diagnostic message
authorPeter Oskolkov <posk@google.com>
Wed, 16 Jan 2019 16:50:28 +0000 (08:50 -0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 17 Jan 2019 23:37:25 +0000 (15:37 -0800)
commit22c2ad616b74f3de2256b242572ab449d031d941
tree2f524ff4a9b64a392a83a13014ea0143351b3478
parent68d7431553a0cd05bce98d1c1d3fc56b3a1807c0
net: add a route cache full diagnostic message

In some testing scenarios, dst/route cache can fill up so quickly
that even an explicit GC call occasionally fails to clean it up. This leads
to sporadically failing calls to dst_alloc and "network unreachable" errors
to the user, which is confusing.

This patch adds a diagnostic message to make the cause of the failure
easier to determine.

Signed-off-by: Peter Oskolkov <posk@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/dst.c