diff options
author | Pravin B Shelar <pshelar@nicira.com> | 2014-11-26 11:27:05 -0800 |
---|---|---|
committer | Pravin B Shelar <pshelar@nicira.com> | 2014-12-01 14:43:32 -0800 |
commit | b772066ffd066d59d9ebce092f6665150723d2ad (patch) | |
tree | 61f3f8be3aece40c287e396c71483442b19c2c43 /lib/route-table-bsd.c | |
parent | 36fd4f214f9ba74aaf0e5fb3e4ba271b946a1550 (diff) | |
download | openvswitch-b772066ffd066d59d9ebce092f6665150723d2ad.tar.gz |
route-table: Remove Unregister.
Since dpif registering for routing table at initialization
there is no need to unregister it. Following patch removes
support for turning routing table notifications on and off.
Due to this change OVS always listens for these
notifications.
Reported-by: YAMAMOTO Takashi <yamamoto@valinux.co.jp>
Signed-off-by: Pravin B Shelar <pshelar@nicira.com>
Acked-by: YAMAMOTO Takashi <yamamoto@valinux.co.jp>
Diffstat (limited to 'lib/route-table-bsd.c')
-rw-r--r-- | lib/route-table-bsd.c | 16 |
1 files changed, 2 insertions, 14 deletions
diff --git a/lib/route-table-bsd.c b/lib/route-table-bsd.c index 979393168..b28ab33b8 100644 --- a/lib/route-table-bsd.c +++ b/lib/route-table-bsd.c @@ -33,7 +33,6 @@ #include "util.h" static int pid; -static unsigned int register_count = 0; bool ovs_router_lookup(ovs_be32 ip, char name[], ovs_be32 *gw) @@ -116,20 +115,9 @@ route_table_get_change_seq(void) } void -route_table_register(void) +route_table_init(void) { - if (!register_count) - { - pid = getpid(); - } - - register_count++; -} - -void -route_table_unregister(void) -{ - register_count--; + pid = getpid(); } void |