fm10k: setup Rx interrupt for PF and VF
authorShaopeng He <shaopeng.he@intel.com>
Fri, 5 Feb 2016 04:57:46 +0000 (12:57 +0800)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Wed, 16 Mar 2016 17:51:35 +0000 (18:51 +0100)
commiteb57d9b750125f491db17e38ac5de1b514d6a337
treeccc61977723e33bf647c90f8b12ff23bf8848e24
parent0d71e97fca80b85fda22f3e816cb737dc8d8ae32
fm10k: setup Rx interrupt for PF and VF

In interrupt mode, each rx queue can have one interrupt to notify the
application when packets are available in that queue. Some queues
also can share one interrupt.
Currently, fm10k needs one separate interrupt for mailbox. So, only those
drivers which support multiple interrupt vectors e.g. vfio-pci can work
in fm10k interrupt mode.
This patch uses the RXINT/INT_MAP registers to map interrupt causes
(rx queue and other events) to vectors, and enable these interrupts
through kernel drivers like vfio-pci.

Signed-off-by: Shaopeng He <shaopeng.he@intel.com>
Acked-by: Jing Chen <jing.d.chen@intel.com>
Acked-by: Michael Qiu <michael.qiu@intel.com>
doc/guides/nics/fm10k.rst
doc/guides/rel_notes/release_16_04.rst
drivers/net/fm10k/fm10k.h
drivers/net/fm10k/fm10k_ethdev.c