net/failsafe: register as Rx interrupt mode
authorMoti Haimovsky <motih@mellanox.com>
Thu, 25 Jan 2018 16:19:30 +0000 (18:19 +0200)
committerFerruh Yigit <ferruh.yigit@intel.com>
Mon, 29 Jan 2018 09:04:28 +0000 (10:04 +0100)
commit9e0360aebf236d3ab586f4e0f0fea95641a7cac8
tree21ab857e1d4980801e59ab2509508471062c314c
parent532af7700b921bcd5f51b80e663b9a2ee6206bcb
net/failsafe: register as Rx interrupt mode

This patch adds registering the Rx queues of the failsafe PMD with EAL
Rx interrupts subsystem.
Each failsafe RX queue is assigned with a unique eventfd and an enable
interrupts flag.
The PMD creates an interrupt vector containing the above eventfds and
Registers it with  EAL. The PMD also implements the Rx interrupts enable
and disable interface routines.
This patch does not implement the generation of Rx interrupts, so an
application can now wait for failsafe Rx interrupts but it will not
receive one.

Signed-off-by: Moti Haimovsky <motih@mellanox.com>
Acked-by: Gaetan Rivet <gaetan.rivet@6wind.com>
drivers/net/failsafe/Makefile
drivers/net/failsafe/failsafe.c
drivers/net/failsafe/failsafe_intr.c [new file with mode: 0644]
drivers/net/failsafe/failsafe_ops.c
drivers/net/failsafe/failsafe_private.h