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
vfio: allow DMA map to the default container
[dpdk.git]
/
drivers
/
net
/
sfc
/
sfc_ef10_tx.c
diff --git
a/drivers/net/sfc/sfc_ef10_tx.c
b/drivers/net/sfc/sfc_ef10_tx.c
index
ff6d5b4
..
0711c11
100644
(file)
--- a/
drivers/net/sfc/sfc_ef10_tx.c
+++ b/
drivers/net/sfc/sfc_ef10_tx.c
@@
-782,6
+782,7
@@
sfc_ef10_get_dev_info(struct rte_eth_dev_info *dev_info)
static sfc_dp_tx_qsize_up_rings_t sfc_ef10_tx_qsize_up_rings;
static int
sfc_ef10_tx_qsize_up_rings(uint16_t nb_tx_desc,
static sfc_dp_tx_qsize_up_rings_t sfc_ef10_tx_qsize_up_rings;
static int
sfc_ef10_tx_qsize_up_rings(uint16_t nb_tx_desc,
+ struct sfc_dp_tx_hw_limits *limits,
unsigned int *txq_entries,
unsigned int *evq_entries,
unsigned int *txq_max_fill_level)
unsigned int *txq_entries,
unsigned int *evq_entries,
unsigned int *txq_max_fill_level)
@@
-790,8
+791,8
@@
sfc_ef10_tx_qsize_up_rings(uint16_t nb_tx_desc,
* rte_ethdev API guarantees that the number meets min, max and
* alignment requirements.
*/
* rte_ethdev API guarantees that the number meets min, max and
* alignment requirements.
*/
- if (nb_tx_desc <=
EFX_TXQ_MINNDESCS
)
- *txq_entries =
EFX_TXQ_MINNDESCS
;
+ if (nb_tx_desc <=
limits->txq_min_entries
)
+ *txq_entries =
limits->txq_min_entries
;
else
*txq_entries = rte_align32pow2(nb_tx_desc);
else
*txq_entries = rte_align32pow2(nb_tx_desc);