net/szedata2: fix device memory access
Fixes: 8acba705b1
("net/szedata2: localize handling of PCI resources")
Signed-off-by: Matej Vido <vido@cesnet.cz>
Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
This commit is contained in:
parent
b82226bff7
commit
e20bd8a93c
@ -192,7 +192,7 @@ pci_resource_write64(struct rte_mem_resource *rsc, uint32_t offset,
|
||||
}
|
||||
|
||||
#define SZEDATA2_PCI_RESOURCE_PTR(rsc, offset, type) \
|
||||
((type)((uint8_t *)(rsc)->addr) + (offset))
|
||||
((type)(((uint8_t *)(rsc)->addr) + (offset)))
|
||||
|
||||
enum szedata2_link_speed {
|
||||
SZEDATA2_LINK_SPEED_DEFAULT = 0,
|
||||
|
Loading…
Reference in New Issue
Block a user