From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id E3BCD46027; Thu, 9 Jan 2025 05:05:01 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 0979340ED2; Thu, 9 Jan 2025 05:04:06 +0100 (CET) Received: from smtpbgeu2.qq.com (smtpbgeu2.qq.com [18.194.254.142]) by mails.dpdk.org (Postfix) with ESMTP id 6165440EAB for ; Thu, 9 Jan 2025 05:04:03 +0100 (CET) X-QQ-mid: bizesmtp84t1736395439teksvlwk X-QQ-Originating-IP: Rby/Hib8KORPFLJCDOF23PiIm16lkbFUGxmFdLfSUWI= Received: from DSK-zaiyuwang.trustnetic.com ( [218.72.126.41]) by bizesmtp.qq.com (ESMTP) with id ; Thu, 09 Jan 2025 12:03:58 +0800 (CST) X-QQ-SSF: 0000000000000000000000000000000 X-QQ-GoodBg: 0 X-BIZMAIL-ID: 2337112492394917879 From: Zaiyu Wang To: dev@dpdk.org Cc: Zaiyu Wang , Jiawen Wu Subject: [PATCH 15/15] net/ngbe: add some ops which PF has implemented Date: Thu, 9 Jan 2025 12:02:25 +0800 Message-Id: <20250109040227.1016-16-zaiyuwang@trustnetic.com> X-Mailer: git-send-email 2.21.0.windows.1 In-Reply-To: <20250109040227.1016-1-zaiyuwang@trustnetic.com> References: <20250109040227.1016-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: MC+kTSDGUQEXHjC2c988KoAAtY1lv2q5G0GKZKPwDjaiaBTIDWAmz4nZ 5r4L9dLdPnd4er16KYG5uznnDo0LS9gJFH225CzaB+MhByRd7gsN3px2HyfCT2PbJriayzB JAlaIhFl5m0ZabXsru2vXOd4LMEtqZXELOdaICErFgEChhETJguSjq/o7O3Ij8Dkbbox+hy UM5EIFBwgx/YrsMK7VHSYVA3DqS6g9V6aJRfjBDvEvDtreU+RioSAT0P0C8bJvgd36bAF7n +LnhhsXUGfMtGNJVxKEQdUxEPVm8ZxMQrsVggR5njmKr0Py9kP2yJtrTE4R01hSN1hoA4/s MEO4gLWaoZXF2yCViWMqsLahOgaw3If89R0+2fNhclSD/MdcnxMVnKs92gdtegLNLbdcq+u sHeoL9jFpHJlwipdUxsRTkHinD9i8FUZ+3X7wBftMVHRhzt3Qxn0LcXFj2cii8/a7xvObQ3 /SH9khEhD8/7LF834lYDoaGciTLHbmvaAq/XCFRDWJXDuYMru1AT+ej9t+/9IEurJPmI6D0 n1s9yXHvAyZCLARlGQgyYvPE3pycbgpc+paFlam6dLZ7CkIKXjDND4DINvTZG0mduYptIiw HsQwFJapX9SC4Ku6pPeRzFVg3KymzeSD1rsqoni/sUl52/pMdsJmycAa9rS9gZ/6D3RXr7m Jo7boL0dsbhjgo0darNRPknqIO54sbHZmKokQco8oJ4QYhBaK7m+s8O/xvAXlzEW4JIevSI Vapl2iTgmoiYoeGsHgNVNN9eMj9zsmYY8FIBKLZ7sVw1D5s1Fy6hCoMayCj7aDaaYo+PVZg rniEiivLUeby72QjgMCg7Q4BErvqkfvgX1EKUgKc8I92zgbiZY7KQsoPEliKdrI1zCzQ8Yj 3Ku147vF5SZhSjR4m5YPTjgDd38FKm3lckw7ZSGwIogp0jQPzbw4NVhikxlXdC2vY+Lfahr sEtiQHha3H/7R2C0kvIj8U3H0bSVul8iuAAjmH1DoKNgtapjY3PIiHCEjFAXW+taPAAQfo0 1MOKMAJA== X-QQ-XMRINFO: NS+P29fieYNw95Bth2bWPxk= 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 497b1031b3..b340e75a49 100644 --- a/doc/guides/nics/features/ngbe_vf.ini +++ b/doc/guides/nics/features/ngbe_vf.ini @@ -16,15 +16,18 @@ Scattered Rx = Y LRO = Y TSO = Y VLAN filter = Y +Inline crypto = Y CRC offload = P VLAN offload = P QinQ offload = P L3 checksum offload = P L4 checksum offload = P +Packet type parsing = Y Rx descriptor status = Y Tx descriptor status = Y Inner L3 checksum = P Inner L4 checksum = P +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 9b2c899c74..19bcd1ac8b 100644 --- a/drivers/net/ngbe/ngbe_ethdev_vf.c +++ b/drivers/net/ngbe/ngbe_ethdev_vf.c @@ -1325,6 +1325,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, @@ -1337,8 +1338,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