[v3,15/15] net/ngbe: add some ops which PF has implemented

Message ID 20250117114455.15864-16-zaiyuwang@trustnetic.com (mailing list archive)
State Changes Requested
Delegated to: Stephen Hemminger
Headers
Series net/ngbe: add VF driver support |

Checks

Context Check Description
ci/checkpatch success coding style OK
ci/loongarch-compilation success Compilation OK
ci/loongarch-unit-testing success Unit Testing PASS
ci/Intel-compilation success Compilation OK
ci/intel-Testing success Testing PASS
ci/intel-Functional success Functional PASS
ci/github-robot: build success github build: passed
ci/iol-broadcom-Performance success Performance Testing PASS
ci/iol-mellanox-Performance success Performance Testing PASS
ci/iol-marvell-Functional success Functional Testing PASS
ci/iol-intel-Performance success Performance Testing PASS
ci/iol-intel-Functional success Functional Testing PASS
ci/iol-abi-testing success Testing PASS
ci/iol-unit-amd64-testing success Testing PASS
ci/iol-unit-arm64-testing success Testing PASS
ci/iol-sample-apps-testing success Testing PASS
ci/iol-compile-arm64-testing success Testing PASS
ci/iol-compile-amd64-testing success Testing PASS

Commit Message

Zaiyu Wang Jan. 17, 2025, 11:44 a.m. UTC
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 <zaiyuwang@trustnetic.com>
---
 doc/guides/nics/features/ngbe_vf.ini | 3 +++
 drivers/net/ngbe/ngbe_ethdev_vf.c    | 5 +++++
 2 files changed, 8 insertions(+)
  

Patch

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);