examples/l3fwd-power: fix handling no Rx queue
authorJingjing Wu <jingjing.wu@intel.com>
Fri, 28 Apr 2017 10:47:44 +0000 (18:47 +0800)
committerThomas Monjalon <thomas@monjalon.net>
Mon, 1 May 2017 15:52:49 +0000 (17:52 +0200)
commitddc554ad284eed63d6333c28d06b6b0b8e8e75d3
treec219301a07ee7669d903ced9324b35ee8ce06169
parent935439234bcd3eb98389011ce8e43c3b74dfd9c5
examples/l3fwd-power: fix handling no Rx queue

If the number of rx queues is zero, it is meaningless to enable
rx interrupt. This patch fixes it.

Fixes: aee3bc79cc34 ("examples/l3fwd-power: enable one-shot Rx interrupt and polling switch")
Cc: stable@dpdk.org
Signed-off-by: Jingjing Wu <jingjing.wu@intel.com>
examples/l3fwd-power/main.c