[dpdk-dev,v1,7/7] l3fwd-power: disable interrupt when wake up from sleep

Message ID 1443169692-4709-8-git-send-email-yong.liu@intel.com
State Superseded, archived
Headers show

Commit Message

Liu, Yong Sept. 25, 2015, 8:28 a.m.
From: Marvin Liu <yong.liu@intel.com>

e1000 device interrupt can't be auto-clear. So disble interrupt when
thread wake-up.

Signed-off-by: Marvin Liu <yong.liu@intel.com>

Patch

diff --git a/examples/l3fwd-power/main.c b/examples/l3fwd-power/main.c
index 8bb88ce..9175989 100644
--- a/examples/l3fwd-power/main.c
+++ b/examples/l3fwd-power/main.c
@@ -798,6 +798,7 @@  sleep_until_rx_interrupt(int num)
 		port_id = ((uintptr_t)data) >> CHAR_BIT;
 		queue_id = ((uintptr_t)data) &
 			RTE_LEN2MASK(CHAR_BIT, uint8_t);
+		rte_eth_dev_rx_intr_disable(port_id, queue_id);
 		RTE_LOG(INFO, L3FWD_POWER,
 			"lcore %u is waked up from rx interrupt on"
 			" port %d queue %d\n",