ixgbe: fail if too many queues for interrupt
authorWang Xiao W <xiao.w.wang@intel.com>
Mon, 28 Mar 2016 00:39:56 +0000 (08:39 +0800)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Wed, 30 Mar 2016 18:17:58 +0000 (20:17 +0200)
commit5bcd7b5d2fb0c9043a8567c637ab128de772c9c1
tree2a124f51bb28dbe2d690f4ed75ee124a5e64c863
parent3cf835665a1f0090733bd71d645fe27cff5869b2
ixgbe: fail if too many queues for interrupt

The lower 16 bits of EICR register are used for queue interrupts,
dpdk framework take over the first bit for other interrupts like
LSC, so there're only 15 bits left for queue interrupts mapping.
This patch adds a check for the num of interrupt queues at
dev_start.

Signed-off-by: Wang Xiao W <xiao.w.wang@intel.com>
Acked-by: Wenzhuo Lu <wenzhuo.lu@intel.com>
drivers/net/ixgbe/ixgbe_ethdev.c
drivers/net/ixgbe/ixgbe_ethdev.h