From patchwork Wed Aug 16 15:05:41 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Xing, Beilei" X-Patchwork-Id: 130401 X-Patchwork-Delegate: qi.z.zhang@intel.com Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id D8F7A4307C; Wed, 16 Aug 2023 08:47:47 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 8912143293; Wed, 16 Aug 2023 08:46:59 +0200 (CEST) Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.31]) by mails.dpdk.org (Postfix) with ESMTP id D358943292 for ; Wed, 16 Aug 2023 08:46:56 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1692168417; x=1723704417; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=oFL6MxCws9T8ztZGtwcoVpX3uABzLqrPC7XsSSslJMc=; b=Er3dCOoileDOrIjamPzFKWOYY1a4upnUAll7Ap00OWYLlCziYtXFu6lS KB84oCEXO/8qBLVh5fsizpmI1DwAeubPa6ITavkAOCxgDwegmcxasJzxu j210YF+65QVQcpMdQyXmyj5ITiU99lHR/K54lTgJ86a+tlZH6VAF6RYj/ EYoB9dZYfwOjj/n8XLWWB1LFM+I7yNsIaMtLiIxSeN/+dPiDfMYZVS5sO KJnsOANBRQM32BQNnv37YZ2UVjD6z89eyK5PI+DeuMXirDpWUkkXJ+iLq 9+QtUQP/AUu4+cXR/DumW1IxBLCeNBRyLVla6N4klsi39eA/DhLgUGaL7 A==; X-IronPort-AV: E=McAfee;i="6600,9927,10803"; a="436357257" X-IronPort-AV: E=Sophos;i="6.01,176,1684825200"; d="scan'208";a="436357257" Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Aug 2023 23:46:48 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10803"; a="1064714966" X-IronPort-AV: E=Sophos;i="6.01,176,1684825200"; d="scan'208";a="1064714966" Received: from dpdk-beileix-icelake.sh.intel.com ([10.67.116.248]) by fmsmga005.fm.intel.com with ESMTP; 15 Aug 2023 23:46:47 -0700 From: beilei.xing@intel.com To: jingjing.wu@intel.com Cc: dev@dpdk.org, mingxia.liu@intel.com, Beilei Xing Subject: [PATCH v2 12/12] net/cpfl: support Rx/Tx queue setup for representor Date: Wed, 16 Aug 2023 15:05:41 +0000 Message-Id: <20230816150541.144532-13-beilei.xing@intel.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230816150541.144532-1-beilei.xing@intel.com> References: <20230809155134.539287-1-beilei.xing@intel.com> <20230816150541.144532-1-beilei.xing@intel.com> MIME-Version: 1.0 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org From: Beilei Xing Add dummy Rx/Tx queue setup functions for representor. Signed-off-by: Jingjing Wu Signed-off-by: Beilei Xing --- 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, };