igb_uio: issue FLR during open and release of device file
authorShijith Thotton <shijith.thotton@caviumnetworks.com>
Fri, 7 Jul 2017 11:13:51 +0000 (16:43 +0530)
committerThomas Monjalon <thomas@monjalon.net>
Thu, 20 Jul 2017 22:30:29 +0000 (01:30 +0300)
commitb58eedfc7dd57eef6d12e2c654a52c834f36084a
treeb136d375b1b8b7e5ae01933d33ce3792730776d9
parenta00cbb4586bdff936c81a9179a93b869c52e9b0c
igb_uio: issue FLR during open and release of device file

Set UIO info device file operations open and release. Call pci reset
function inside open and release to clear device state at start and end.
Copied this behaviour from vfio_pci kernel module code. With this patch,
it is not mandatory to issue FLR by PMD's during init and close.

Bus master enable and disable are added in open and release respectively
to take care of device DMA.

Signed-off-by: Shijith Thotton <shijith.thotton@caviumnetworks.com>
Reviewed-by: Jianfeng Tan <jianfeng.tan@intel.com>
Acked-by: Ferruh Yigit <ferruh.yigit@intel.com>
Acked-by: Gregory Etelson <gregory@weka.io>
lib/librte_eal/linuxapp/igb_uio/igb_uio.c