[PATCH v2 12/12] net/cpfl: support Rx/Tx queue setup for representor
beilei.xing at intel.com
beilei.xing at intel.com
Wed Aug 16 17:05:41 CEST 2023
From: Beilei Xing <beilei.xing at intel.com>
Add dummy Rx/Tx queue setup functions for representor.
Signed-off-by: Jingjing Wu <jingjing.wu at intel.com>
Signed-off-by: Beilei Xing <beilei.xing at intel.com>
---
drivers/net/cpfl/cpfl_representor.c | 26 ++++++++++++++++++++++++++
1 file changed, 26 insertions(+)
diff --git a/drivers/net/cpfl/cpfl_representor.c b/drivers/net/cpfl/cpfl_representor.c
index 5b5c959727..58e0d91d97 100644
--- a/drivers/net/cpfl/cpfl_representor.c
+++ b/drivers/net/cpfl/cpfl_representor.c
@@ -285,6 +285,29 @@ cpfl_repr_dev_stop(struct rte_eth_dev *dev)
return 0;
}
+static int
+idpf_repr_rx_queue_setup(__rte_unused struct rte_eth_dev *dev,
+ __rte_unused uint16_t queue_id,
+ __rte_unused uint16_t nb_desc,
+ __rte_unused unsigned int socket_id,
+ __rte_unused const struct rte_eth_rxconf *conf,
+ __rte_unused struct rte_mempool *pool)
+{
+ /* Dummy */
+ return 0;
+}
+
+static int
+idpf_repr_tx_queue_setup(__rte_unused struct rte_eth_dev *dev,
+ __rte_unused uint16_t queue_id,
+ __rte_unused uint16_t nb_desc,
+ __rte_unused unsigned int socket_id,
+ __rte_unused const struct rte_eth_txconf *conf)
+{
+ /* Dummy */
+ return 0;
+}
+
static int
cpfl_repr_link_update(struct rte_eth_dev *ethdev,
__rte_unused int wait_to_complete)
@@ -309,6 +332,9 @@ static const struct eth_dev_ops cpfl_repr_dev_ops = {
.dev_close = cpfl_repr_dev_close,
.dev_infos_get = cpfl_repr_dev_info_get,
+ .rx_queue_setup = idpf_repr_rx_queue_setup,
+ .tx_queue_setup = idpf_repr_tx_queue_setup,
+
.link_update = cpfl_repr_link_update,
};
--
2.34.1
More information about the dev
mailing list