From: Ben Pfaff Date: Mon, 15 Nov 2010 20:48:31 +0000 (-0800) Subject: netdev-vport: Fix poll_add() implementation. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=eb5f3e933b0922d369ad839b2afa1cd7ab764b6e;p=openvswitch 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 5ea7cbd2..5ab05863 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; }