From e6832ed088eac06fee6316dd2ecb8003aa635f17 Mon Sep 17 00:00:00 2001 From: Pablo Neira Ayuso Date: Wed, 26 Nov 2008 00:30:27 +0100 Subject: ftfw: remove useless ftfw_run invocation in the alive alarm handler This patch removes a forced run of the transmission queue. This is not required since we currently have an event descriptor that indicates when to give a queue run to push pending messages. Signed-off-by: Pablo Neira Ayuso --- src/sync-ftfw.c | 6 ------ 1 file changed, 6 deletions(-) (limited to 'src/sync-ftfw.c') diff --git a/src/sync-ftfw.c b/src/sync-ftfw.c index 598945f..abba1fe 100644 --- a/src/sync-ftfw.c +++ b/src/sync-ftfw.c @@ -120,8 +120,6 @@ static void tx_queue_add_ctlmsg(uint32_t flags, uint32_t from, uint32_t to) write_evfd(STATE_SYNC(evfd)); } -static void ftfw_run(void); - /* this function is called from the alarm framework */ static void do_alive_alarm(struct alarm_block *a, void *data) { @@ -133,10 +131,6 @@ static void do_alive_alarm(struct alarm_block *a, void *data) ack_from_set = 0; } else tx_queue_add_ctlmsg(NET_F_ALIVE, 0, 0); - - /* TODO: no need for buffered send, extracted from run_sync() */ - ftfw_run(); - mcast_buffered_pending_netmsg(STATE_SYNC(mcast_client)); } static int ftfw_init(void) -- cgit v1.2.3