[ovs-dev] rtnetlink_notifier_register() function

Ben Pfaff blp at nicira.com
Mon Nov 28 17:15:08 UTC 2011


On Mon, Nov 28, 2011 at 04:19:07PM +0100, Gaetano Catalli wrote:
> the following is a snippet of code taken from the
> netdev_linux_create_system() function in lib/netdev-linux.c. It wants
> to attach a callback to interfaces status change events. The notifier
> is unique for all devices so it is created when the first port is
> attached to the switch and deleted when the last port is removed(in
> netdev_linux_destroy()). I can't understand why this code is present
> only in netdev_linux_create_system(), while it is missing in
> netdev_linux_tap_create(). Does anybody have an explanation for that?

It does look like we should include that as common code between the
two functions.



More information about the dev mailing list