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 AAACB460C1; Mon, 20 Jan 2025 10:45:11 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 5343240DDE; Mon, 20 Jan 2025 10:44:18 +0100 (CET) Received: from smtpbgbr1.qq.com (smtpbgbr1.qq.com [54.207.19.206]) by mails.dpdk.org (Postfix) with ESMTP id 42DC240A7F for ; Mon, 20 Jan 2025 10:44:11 +0100 (CET) X-QQ-mid: bizesmtp86t1737366246tykc7wsp X-QQ-Originating-IP: aMz/8TZcZe6yF30I+jM8BAYFWw9ewxJ7SN1nDDNTFkI= Received: from DSK-zaiyuwang.trustnetic.com ( [115.197.136.137]) by bizesmtp.qq.com (ESMTP) with id ; Mon, 20 Jan 2025 17:44:05 +0800 (CST) X-QQ-SSF: 0000000000000000000000000000000 X-QQ-GoodBg: 0 X-BIZMAIL-ID: 16664091426787225890 From: Zaiyu Wang To: dev@dpdk.org Cc: Zaiyu Wang , Jiawen Wu Subject: [PATCH v4 15/15] net/ngbe: add some ops which PF has implemented Date: Mon, 20 Jan 2025 17:42:41 +0800 Message-Id: <20250120094242.1844-16-zaiyuwang@trustnetic.com> X-Mailer: git-send-email 2.21.0.windows.1 In-Reply-To: <20250120094242.1844-1-zaiyuwang@trustnetic.com> References: <20250109040227.1016-1-zaiyuwang@trustnetic.com> <20250120094242.1844-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: Ngk7ShESHkQuxebhBEsiO24T9kipDPPSH/PCL+OUSSHusYrR5DtLUVh0 sj0IvSQvwSaQc8MvZQBk7KMrfGT+H7FJc2mm7ShKFsRtsuTf6h3vE3AvHo8p9l8c7NJotk8 acNOmoQFj3j3nQB5yG9pqajXHYWb8DT9vUu/j1/k+UQp9KbPq4mhAb7PZsQGj+E2T5vHH3c PebfI5a9Ph17G5qoVJNozfTtKaa2X4sMYKiXTQg3cXKOKUK5xV6CzrVl9EC9EOAKt2bVZXW wuRzcB2y9CMbOZHsb5/HuugHumbw0qFX7biXhvs7wOGkYRz7jc9yBMW7zqGRnsKDlWRHGxY o9XBt1WzjOa5uoUo6v99gIluErZ7Xf6a+DV6LIHr3VOQDjOnG8fFQ15KTCLsveHCc2urRNs T1Na1l8FT+rLVpocLlHPkGnS7pox6oTGPjVpivZ0USVuaK/gEdWTSh+PVSo03pThf7XeFCN /RYL+TA0yF4VKHPmEXPvZbhPJolhizFB5uOtYCqy6ci9cgpng0YalxAZnvZni4Qqbh2eLQY h+5tNQc61+bAJua9HsKJQ2kjXzGbbgzsF2wtYn1wypQtr44DSSIo79AAnSv3HmRD6pDpxwn 87wQE+Zr1nMoWOohI4KlKh/9e4wVO6No6tSK83wIfmcxXiU6Do5Hkfu5j061c6cD8czuvAi L/bypiyELwGbKk+orryiwfyus9Adw1WLNYowpbTjEqmpVEo4DDyl6JpgdkstbvF+/ErprYx IBXaNnxmKVRevktOnxPu28ykt52znv3Ho7/Pb7clnKEIzBIkbxhJkUPZGCPNZfFqwSUYxBo bJxx6xfy0+027sKwz0KNDViVRGpneayowwFbtjDPnp36/3PQG1SHsplNhVyVm3xe+Wpn0IK i0mt8Bry+59FDT4g5Q4sL8fYq/v/L59TD0p0NA+fEWxuWI3dEWjOtf+Xpcz4WxP28+zG4Qf aSQ+Bs7u+Qc4vGhGRNXFdG0IEBLcswzJROJs2NDJfw100iQbLP3EFqF5nJAS/2EUFYD/BDO pjkgG3soQ/7EJZU5Ptn6dhavm61ow= X-QQ-XMRINFO: OD9hHCdaPRBwq3WW+NvGbIU= 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 745ef4dc32..5207d56dbf 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