git.droids-corp.org
/
dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
net/sfc: support regioned NIC DMA memory mapping type
[dpdk.git]
/
drivers
/
net
/
sfc
/
sfc_ef10_rx.c
diff --git
a/drivers/net/sfc/sfc_ef10_rx.c
b/drivers/net/sfc/sfc_ef10_rx.c
index
8503c3c
..
7be224c
100644
(file)
--- a/
drivers/net/sfc/sfc_ef10_rx.c
+++ b/
drivers/net/sfc/sfc_ef10_rx.c
@@
-651,6
+651,10
@@
sfc_ef10_rx_qcreate(uint16_t port_id, uint16_t queue_id,
if (info->rxq_entries != info->evq_entries)
goto fail_rxq_args;
if (info->rxq_entries != info->evq_entries)
goto fail_rxq_args;
+ rc = ENOTSUP;
+ if (info->nic_dma_info->nb_regions > 0)
+ goto fail_nic_dma;
+
rc = ENOMEM;
rxq = rte_zmalloc_socket("sfc-ef10-rxq", sizeof(*rxq),
RTE_CACHE_LINE_SIZE, socket_id);
rc = ENOMEM;
rxq = rte_zmalloc_socket("sfc-ef10-rxq", sizeof(*rxq),
RTE_CACHE_LINE_SIZE, socket_id);
@@
-696,6
+700,7
@@
fail_desc_alloc:
rte_free(rxq);
fail_rxq_alloc:
rte_free(rxq);
fail_rxq_alloc:
+fail_nic_dma:
fail_rxq_args:
return rc;
}
fail_rxq_args:
return rc;
}