neighbour: register rtnl doit handler
authorRoopa Prabhu <roopa@cumulusnetworks.com>
Wed, 19 Dec 2018 20:51:38 +0000 (12:51 -0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 19 Dec 2018 21:37:34 +0000 (13:37 -0800)
commit82cbb5c631a07b3aa6df6eab644d55da9de5a645
treef071d0fa16682ef217525ff8236c3713b884934d
parent4ab0edecaf1d9a4acb5bddc4a869b0f7efda634a
neighbour: register rtnl doit handler

this patch registers neigh doit handler. The doit handler
returns a neigh entry given dst and dev. This is similar
to route and fdb doit (get) handlers. Also moves nda_policy
declaration from rtnetlink.c to neighbour.c

Signed-off-by: Roopa Prabhu <roopa@cumulusnetworks.com>
Reviewed-by: David Ahern <dsa@cumulusnetworks.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/neighbour.h
net/core/neighbour.c
net/core/rtnetlink.c