From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (unknown [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 49A98460AB; Fri, 17 Jan 2025 12:49:24 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 5D5C442E6A; Fri, 17 Jan 2025 12:45:49 +0100 (CET) Received: from smtpbgjp3.qq.com (smtpbgjp3.qq.com [54.92.39.34]) by mails.dpdk.org (Postfix) with ESMTP id BB4E342E63 for ; Fri, 17 Jan 2025 12:45:44 +0100 (CET) X-QQ-mid: bizesmtp85t1737114340t2p9smun X-QQ-Originating-IP: eAXeK9HhU5KQjxeP9V5THEKVgQ2FPAxyhgFmRT3rWik= Received: from DSK-zaiyuwang.trustnetic.com ( [36.24.187.167]) by bizesmtp.qq.com (ESMTP) with id ; Fri, 17 Jan 2025 19:45:38 +0800 (CST) X-QQ-SSF: 0000000000000000000000000000000 X-QQ-GoodBg: 0 X-BIZMAIL-ID: 18272197193787907554 From: Zaiyu Wang To: dev@dpdk.org Cc: Zaiyu Wang , Jiawen Wu Subject: [PATCH v3 15/15] net/ngbe: add some ops which PF has implemented Date: Fri, 17 Jan 2025 19:44:53 +0800 Message-Id: <20250117114455.15864-16-zaiyuwang@trustnetic.com> X-Mailer: git-send-email 2.21.0.windows.1 In-Reply-To: <20250117114455.15864-1-zaiyuwang@trustnetic.com> References: <20250109040227.1016-1-zaiyuwang@trustnetic.com> <20250117114455.15864-1-zaiyuwang@trustnetic.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-QQ-SENDSIZE: 520 Feedback-ID: bizesmtp:trustnetic.com:qybglogicsvrgz:qybglogicsvrgz5a-1 X-QQ-XMAILINFO: MsFdwj3NHrWlKcQr257BpJ84kWUyUzQBONc9HBtzN/UASWSg3qdMARl9 jS3FTNqD31tkqEGUrGqWfLwvAb+w6QttZhhPpNwexUp07zfIMZUaTICi5t4xD/ZioblLCGi Rc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pdk.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 Some RXTX operations like queue setup and release, packet type get, and Tx done cleanup have been supported on PF device. There are ops functions directly added. Signed-off-by: Zaiyu Wang --- doc/guides/nics/features/ngbe_vf.ini | 3 +++ drivers/net/ngbe/ngbe_ethdev_vf.c | 5 +++++ 2 files changed, 8 insertions(+) diff --git a/doc/guides/nics/features/ngbe_vf.ini b/doc/guides/nics/features/ngbe_vf.ini index 909f1e00f8..3f56e0aa26 100644 --- a/doc/guides/nics/features/ngbe_vf.ini +++ b/doc/guides/nics/features/ngbe_vf.ini @@ -15,6 +15,7 @@ TSO = Y Promiscuous mode = Y Allmulticast mode = Y VLAN filter = Y +Inline crypto = Y CRC offload = P VLAN offload = P QinQ offload = P @@ -22,8 +23,10 @@ L3 checksum offload = P L4 checksum offload = P Inner L3 checksum = P Inner L4 checksum = P +Packet type parsing = Y Rx descriptor status = Y Tx descriptor status = Y +Free Tx mbuf on demand = Y Basic stats = Y Extended stats = Y Registers dump = Y diff --git a/drivers/net/ngbe/ngbe_ethdev_vf.c b/drivers/net/ngbe/ngbe_ethdev_vf.c index bbd9fea328..5d68f1602d 100644 --- a/drivers/net/ngbe/ngbe_ethdev_vf.c +++ b/drivers/net/ngbe/ngbe_ethdev_vf.c @@ -1327,6 +1327,7 @@ static const struct eth_dev_ops ngbevf_eth_dev_ops = { .allmulticast_enable = ngbevf_dev_allmulticast_enable, .allmulticast_disable = ngbevf_dev_allmulticast_disable, .dev_infos_get = ngbevf_dev_info_get, + .dev_supported_ptypes_get = ngbe_dev_supported_ptypes_get, .mtu_set = ngbevf_dev_set_mtu, .vlan_filter_set = ngbevf_vlan_filter_set, .vlan_strip_queue_set = ngbevf_vlan_strip_queue_set, @@ -1339,8 +1340,12 @@ static const struct eth_dev_ops ngbevf_eth_dev_ops = { .rx_queue_intr_disable = ngbevf_dev_rx_queue_intr_disable, .mac_addr_add = ngbevf_add_mac_addr, .mac_addr_remove = ngbevf_remove_mac_addr, + .set_mc_addr_list = ngbe_dev_set_mc_addr_list, + .rxq_info_get = ngbe_rxq_info_get, + .txq_info_get = ngbe_txq_info_get, .mac_addr_set = ngbevf_set_default_mac_addr, .get_reg = ngbevf_get_regs, + .tx_done_cleanup = ngbe_dev_tx_done_cleanup, }; RTE_PMD_REGISTER_PCI(net_ngbe_vf, rte_ngbevf_pmd); -- 2.21.0.windows.1