[v3,12/26] net/failsafe: use separate Rx and Tx queue limits

Message ID 20240814104933.14062-13-bruce.richardson@intel.com (mailing list archive)
State New
Delegated to: Thomas Monjalon
Headers
Series add meson config options for queues per port |

Checks

Context Check Description
ci/checkpatch success coding style OK

Commit Message

Bruce Richardson Aug. 14, 2024, 10:49 a.m. UTC
Update driver to use the new defines RTE_MAX_ETHPORT_TX_QUEUES and
RTE_MAX_ETHPORT_RX_QUEUES rather than the old define
RTE_MAX_QUEUES_PER_PORT.

Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
Acked-by: Morten Brørup <mb@smartsharesystems.com>
---
 drivers/net/failsafe/failsafe_ops.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
  

Patch

diff --git a/drivers/net/failsafe/failsafe_ops.c b/drivers/net/failsafe/failsafe_ops.c
index 9c013e0419..12a01f5543 100644
--- a/drivers/net/failsafe/failsafe_ops.c
+++ b/drivers/net/failsafe/failsafe_ops.c
@@ -1205,8 +1205,8 @@  fs_dev_infos_get(struct rte_eth_dev *dev,
 	infos->min_mtu = RTE_ETHER_MIN_MTU;
 	infos->max_mtu = UINT16_MAX;
 	infos->max_rx_pktlen = UINT32_MAX;
-	infos->max_rx_queues = RTE_MAX_QUEUES_PER_PORT;
-	infos->max_tx_queues = RTE_MAX_QUEUES_PER_PORT;
+	infos->max_rx_queues = RTE_MAX_ETHPORT_RX_QUEUES;
+	infos->max_tx_queues = RTE_MAX_ETHPORT_TX_QUEUES;
 	infos->max_mac_addrs = FAILSAFE_MAX_ETHADDR;
 	infos->max_hash_mac_addrs = UINT32_MAX;
 	infos->max_vfs = UINT16_MAX;