Re: [dpdk-dev] [PATCH v5 15/20] szedata2: localize handling of pci resources

2016-12-23 Thread Thomas Monjalon
2016-12-23 16:58, Jan Blunck: > #define SZEDATA2_PCI_RESOURCE_PTR(dev, offset, type) \ > - ((type)((uint8_t *) \ > - ((dev)->pci_dev->mem_resource[PCI_RESOURCE_NUMBER].addr) \ > - + (offset))) > + ((type)((uint8_t *)(rsc)->addr) + (offset))) There is this error: use of und

[dpdk-dev] [PATCH v5 15/20] szedata2: localize handling of pci resources

2016-12-23 Thread Jan Blunck
This changes the driver to handle the PCI resource directly instead of repeatedly going through eth_dev. Signed-off-by: Jan Blunck --- drivers/net/szedata2/rte_eth_szedata2.c | 72 - drivers/net/szedata2/rte_eth_szedata2.h | 58 +++--- 2 files