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 8782A460A7; Fri, 17 Jan 2025 11:47:41 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id A50A842E24; Fri, 17 Jan 2025 11:43:55 +0100 (CET) Received: from smtpbgau1.qq.com (smtpbgau1.qq.com [54.206.16.166]) by mails.dpdk.org (Postfix) with ESMTP id B49BB42E1C for ; Fri, 17 Jan 2025 11:43:53 +0100 (CET) X-QQ-mid: bizesmtpsz8t1737110629tp0763i X-QQ-Originating-IP: 2ux54b2OWgfTR+O28BDF76OW7LViZMvc53+6bkKHg4U= Received: from DSK-zaiyuwang.trustnetic.com ( [36.24.187.167]) by bizesmtp.qq.com (ESMTP) with id ; Fri, 17 Jan 2025 18:43:48 +0800 (CST) X-QQ-SSF: 0000000000000000000000000000000 X-QQ-GoodBg: 0 X-BIZMAIL-ID: 15924573061614680146 From: Zaiyu Wang To: dev@dpdk.org Cc: Zaiyu Wang , Jiawen Wu Subject: [PATCH v2 15/15] net/ngbe: add some ops which PF has implemented Date: Fri, 17 Jan 2025 18:41:14 +0800 Message-Id: <20250117104115.16528-16-zaiyuwang@trustnetic.com> X-Mailer: git-send-email 2.21.0.windows.1 In-Reply-To: <20250117104115.16528-1-zaiyuwang@trustnetic.com> References: <20250109040227.1016-1-zaiyuwang@trustnetic.com> <20250117104115.16528-1-zaiyuwang@trustnetic.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-QQ-SENDSIZE: 520 Feedback-ID: bizesmtpsz:trustnetic.com:qybglogicsvrgz:qybglogicsvrgz5a-1 X-QQ-XMAILINFO: MrOP7sbenCqhAK5EZR6zpswkNjqfBOv/ScYUKWKNwccU71ZUX16x2S8b yaoOu/YYa2iD/M/pMVP7qPvo82/rZMstGmGPPJRiqiUpWmebsRfdnDKPpIHcgsG6ekBdVQk voynDbnx2Lu5WzoDQuGxSVNKh2lGaaSjIKjuy4qwxuHIJi8K+4pN8Pz0u38/gvFtYtbsOeb 6gA9671dS7qBsOrDdoN0VLomYXo8/BrBhnSXSjTE9lIHpNk2jBrg6Wcz9V5ZsI2PaBnAJbv M24n1O3OeYh3YHeavfwj/9DfTD214iDuRYuw/I0HdvMKXnpD3WWZVljednUUFEVxAPbzAMx KOo8nm99aCcIfM3+tdegShIROR9cfQOow0Y+lJ2Mgo6xH6jT1mtHvlGLkMRBDgzg9+17bHk uWZIet2KPGqrN9BEtiLGSP0R8R/HV8w7Ufj+NW5sDda7cMYqyEGFygQvY25NlAYWhjl1kwp xmzeK7xw5be1TEtFHkNajZEbalyIc7QvSNgj+Z3R8ppaZIwr9zSHp/Qf0KDoLGLMo6CrcJj D+jeR6edEhyuZ3kX5JbD1IieevJclqcmTlH7S39MWtghcXmb97r6PPtLNi0j/FfIWZvgus1 spJ837paW5fufXExig2wD4pH7HrJm399i20MdIz5h2mTQobCxTEc9nx96LaEaJxWE6seRZi Gz/H7TJslDEwW3bkTJitf5pNvb1K1hZTSyRtZiBYqPRVlE8DM+ryDToLGatcD2zuZM6j+rH ooM5gsYleoZ711a+hNved9S9JWxUzjQjj/5gaIYs5L5Jvm7WZ7KfKa+jx+dlXBDUj+2ViIg HTpr2Pw9UpgRW6WIV7hR2giVEwdZ70qf0U7cqpV4/UaSA4LpwqAw1I0T7uoWgqC/b2GMNVy bmUGMYsGgTeKlvDcEfbDwkZ0gJruwoikbx/Q+xbiMP08Gd/QhPfsl4sl16uBZPd0hoTadLC +wcwLbbfpXxpspNoGsuPxZCnCPThIyHRXJRNz+1ikVwfzWYoXZWfcBwpISALkmuQLatyczP nCGAN8B72zGVqG6nfUMMLJDLuPXyU= X-QQ-XMRINFO: NyFYKkN4Ny6FSmKK/uo/jdU= X-QQ-RECHKSPAM: 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 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 0dfc07a8fd..8c74ef308e 100644 --- a/drivers/net/ngbe/ngbe_ethdev_vf.c +++ b/drivers/net/ngbe/ngbe_ethdev_vf.c @@ -1324,6 +1324,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, @@ -1336,8 +1337,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