]> git.proxmox.com Git - mirror_ubuntu-zesty-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)
commit67b62f98a1de962277b60d77c0c208b76867dbae
treed5f99f69bedcc17d837ceb1a7704d897253ca623
parent0f524a80ff35af8a7664d7661d948107da142e04
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