]> 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)
commit9ce76dc341bf92f56c28963456999f09b2292b3a
tree96e9d1bae0fb1c72de3c169728c8295fe47d4437
parent562f0c3d13d23a8fe62fc72d34f7fad6b3319f3e
net: Remove refnr arg when inserting link adjacencies

Commit 7f4030f02e29 ("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 7f4030f02e29 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