examples/l3fwd-power: disable Rx interrupt when waking up
authorYong Liu <yong.liu@intel.com>
Thu, 29 Oct 2015 09:18:44 +0000 (17:18 +0800)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Thu, 29 Oct 2015 22:47:37 +0000 (23:47 +0100)
Signed-off-by: Marvin Liu <yong.liu@intel.com>
Acked-by: Cunming Liang <cunming.liang@intel.com>
examples/l3fwd-power/main.c

index 8bb88ce..9175989 100644 (file)
@@ -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",