[RFC PATCH 0/4] Add AF_BRIDGE support to neigh cache

roopa at cumulusnetworks.com roopa at cumulusnetworks.com
Mon Nov 5 08:39:35 EST 2012


From: roopa <roopa at cumulusnetworks.com>

This patch series adds AF_BRIDGE RTM_NEWNEIGH
and RTM_DELNEIGH support to existing libnl neigh cache.

Another way to do this would be to keep AF_BRIDGE neigh
objects in a separate cache of its own. We have this
implemented and working too. I will be happy to submit patches
if this would be the preferred way to go.

Signed-off-by: Roopa Prabhu <roopa at cumulusnetworks.com>
Reviewed-by: Nolan Leake <nolan at cumulusnetworks.com>
Reviewed-by: Shrijeet Mukherjee <shm at cumulusnetworks.com>
Reviewed-by: Wilson Kok <wkok at cumulusnetworks.com>

roopa (4):
  Add new object op oo_id_attrs_get
  Add AF_BRIDGE to neigh cache
  Add master ifindex to rtnl_neigh for AF_BRIDGE objects
  Add a new cache fill API that does a kernel get on each supported
    family.

 include/netlink-types.h      |    1 +
 include/netlink/cache.h      |    2 +
 include/netlink/object-api.h |    5 +++
 lib/cache.c                  |   65 +++++++++++++++++++++++++++++++++++------
 lib/object.c                 |   10 ++++++-
 lib/route/neigh.c            |   35 +++++++++++++++++++++-
 6 files changed, 105 insertions(+), 13 deletions(-)

-- 
1.7.2.5




More information about the libnl mailing list