[RFC PATCH 3/4] Add master ifindex to rtnl_neigh for AF_BRIDGE objects

Thomas Graf tgraf at suug.ch
Wed Nov 7 11:29:09 EST 2012


On 11/05/12 at 05:39am, roopa at cumulusnetworks.com wrote:
> From: roopa <roopa at cumulusnetworks.com>
> 
> A bridge fdb/neigh object belongs to a bridge.
> If we assume unique lladdrs accross all bridges in a system,
> bridge fdb objects can be identified using only lladdr
> and family as done in the previous patch in this series.
> 
> This patch adds bridge ifindex to bridge neigh object id
> attributes to identify bridge objects based on lladdr,
> family and bridge ifindex.
> 
> The kernel does not send bridge ifindex in the AF_BRIDGE
> fdb/neigh message. The bridge port ifindex is present in the msg.
> This patch uses the bridge port ifindex to get bridge ifindex from
> the link cache (This part of the code may change depending on
> the bridge link cache implementation in libnl)
> 
> 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>

Acked-by: Thomas Graf <tgraf at suug.ch>



More information about the libnl mailing list