]> git.baikalelectronics.ru Git - kernel.git/commit
net: Remove refnr arg when inserting link adjacencies
authorDavid Ahern <dsa@cumulusnetworks.com>
Tue, 18 Oct 2016 02:15:43 +0000 (19:15 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 18 Oct 2016 15:44:58 +0000 (11:44 -0400)
commit1918b1ac4164438f6f36192eac1206dcd821d530
tree96e9d1bae0fb1c72de3c169728c8295fe47d4437
parent78ef04de2b2f2651d7bf69a9eb4273f4de6a4a9a
net: Remove refnr arg when inserting link adjacencies

Commit 7102d59f08e9 ("net: Add netdev all_adj_list refcnt propagation to
fix panic") propagated the refnr to insert and remove functions tracking
the netdev adjacency graph. However, for the insert path the refnr can
only be 1. Accordingly, remove the refnr argument to make that clear.
ie., the refnr arg in 7102d59f08e9 was only needed for the remove path.

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