From eb5f3e933b0922d369ad839b2afa1cd7ab764b6e Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Mon, 15 Nov 2010 12:48:31 -0800 Subject: [PATCH] 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. --- lib/netdev-vport.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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; } -- 2.30.2