]> granicus.if.org Git - libnl/commit
route: neigh: use NDA_MASTER for neigh->n_master if available
authorRoopa Prabhu <roopa@cumulusnetworks.com>
Fri, 10 Feb 2017 05:15:26 +0000 (21:15 -0800)
committerThomas Haller <thaller@redhat.com>
Mon, 27 Feb 2017 13:15:15 +0000 (14:15 +0100)
commit9b22e310cec08e8a89f7e05dc7b69fa20085034c
tree48baa38797e252be78a2d6ff13b184c0d873f1ef
parenteabd9f2334aee545fc7656966762d999a727d735
route: neigh: use NDA_MASTER for neigh->n_master if available

fdb cache is per bridge and hence hashed by:
<bridge_ifindex, family, mac>

newer kernels send bridge ifindex in NDA_MASTER.
Use NDA_MASTER for neigh->n_master when available.

Also imports a few more NDA_* attributes from upstream
to keep linux/neighbour.h NDA_* attributes in sync with
upstream.

Signed-off-by: Roopa Prabhu <roopa@cumulusnetworks.com>
include/linux-private/linux/neighbour.h
lib/route/neigh.c