eal/linux: forbid enabling zero interrupt vector
authorCunming Liang <cunming.liang@intel.com>
Wed, 4 Nov 2015 08:45:31 +0000 (16:45 +0800)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Wed, 4 Nov 2015 14:27:41 +0000 (15:27 +0100)
commit7eeed914480a4c845d6a621d4ebed4eb0c6751c3
treedb7aae0abdbe33c0da0ee494fe4c0a8cdda8257c
parentfe81efaf1d8f727aa6583b9cf7870f3f8a1b515e
eal/linux: forbid enabling zero interrupt vector

The patch adds condition check to avoid enable nothing.
In disable state, both max_intr and nb_efd are zero.

Signed-off-by: Cunming Liang <cunming.liang@intel.com>
Acked-by: David Marchand <david.marchand@6wind.com>
lib/librte_eal/bsdapp/eal/include/exec-env/rte_interrupts.h
lib/librte_eal/linuxapp/eal/eal_interrupts.c
lib/librte_eal/linuxapp/eal/include/exec-env/rte_interrupts.h