On Thu, Oct 08, 2020 at 11:56:45AM -0700, Pallavi Kadam wrote: > This patch adds implementations to probe PCI devices bound to netuio > with the help of "netuio" class device changes. > Now Windows will support both "netuio" and "net" device class and > can set kernel driver type based on the device class selection. > > Note: Few definitions and structures have been copied from > netuio_interface.h file from > ("[v5] windows/netuio: add Windows NetUIO kernel driver") series > and this will be fixed once the exact path for netuio source code is known. > > v7 changes: > Removed device property key from pci_netuio.c as Numa detection > is done only in pci.c file > v6 changes: > - Split up the get_netuio_device_info() function into smaller > functions > - Moved get numa node id code to get_device_resource_info() in > order to work on both RTE_PCI_KDRV_NONE and RTE_PCI_KDRV_NIC_UIO > v5 changes: > Changed when netuio driver handle is closed > v4 changes: > Removed 'reserved' member as it is not used > v3 changes: > Removed the casts > v2 changes: > - Moved all netuio specific definitions and functions to > pci_netuio.c and pci_netuio.h files > - Added a single function call to scan all the devices > > Signed-off-by: John Alexander <john.alexan...@datapath.co.uk> > Signed-off-by: Pallavi Kadam <pallavi.ka...@intel.com> > Reviewed-by: Ranjit Menon <ranjit.me...@intel.com> > --- > drivers/bus/pci/meson.build | 3 +- > drivers/bus/pci/windows/pci.c | 73 +++++++---- > drivers/bus/pci/windows/pci_netuio.c | 182 +++++++++++++++++++++++++++ > drivers/bus/pci/windows/pci_netuio.h | 59 +++++++++ > 4 files changed, 289 insertions(+), 28 deletions(-) > create mode 100644 drivers/bus/pci/windows/pci_netuio.c > create mode 100644 drivers/bus/pci/windows/pci_netuio.h >
Reviewed-by: Narcisa Vasile <navas...@linux.microsoft.com> Acked-by: Narcisa Vasile <navas...@linux.microsoft.com>