]> git.baikalelectronics.ru Git - kernel.git/commit
net: dev: Improve debug statements for adjacency tracking
authorDavid Ahern <dsa@cumulusnetworks.com>
Tue, 18 Oct 2016 02:15:53 +0000 (19:15 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 18 Oct 2016 15:45:00 +0000 (11:45 -0400)
commit61961e79b19eb9a2b8745ee46142b6ad19a85e3b
treed5f99f69bedcc17d837ceb1a7704d897253ca623
parent00d5f85ec51ffafcb172aca7bbb66708aa14da8e
net: dev: Improve debug statements for adjacency tracking

Adjacency code only has debugs for the insert case. Add debugs for
the remove path and make both consistently worded to make it easier
to follow the insert and removal with reference counts.

In addition, change the BUG to a WARN_ON. A missing adjacency at
removal time is not cause for a panic.

Signed-off-by: David Ahern <dsa@cumulusnetworks.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/dev.c