From: Ben Pfaff Date: Mon, 15 Nov 2010 20:48:31 +0000 (-0800) Subject: netdev-vport: Fix poll_add() implementation. X-Git-Tag: v1.1.0~837 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=eb5f3e933b0922d369ad839b2afa1cd7ab764b6e;p=sliver-openvswitch.git netdev-vport: Fix poll_add() implementation. The existing implementation never worked because it used different strings for notifier shash addition and lookup: for adding to the shash, it used the vport name; for lookup, it used ":". This fixes the problem, by using ":" in both cases. --- diff --git a/lib/netdev-vport.c b/lib/netdev-vport.c index 5ea7cbd2d..5ab058635 100644 --- a/lib/netdev-vport.c +++ b/lib/netdev-vport.c @@ -386,8 +386,7 @@ netdev_vport_poll_add(struct netdev *netdev, if (!shash_node) { list = xmalloc(sizeof *list); list_init(list); - shash_node = shash_add(&netdev_vport_notifiers, - netdev_get_name(netdev), list); + shash_node = shash_add(&netdev_vport_notifiers, poll_name, list); } else { list = shash_node->data; }