From: Beilei Xing <beilei.x...@intel.com>

Add dummy Rx/Tx queue setup functions for representor.

Signed-off-by: Jingjing Wu <jingjing...@intel.com>
Signed-off-by: Beilei Xing <beilei.x...@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

Reply via email to