The VF PMD can not get a valid 'cpp' data filed in the 'struct
nfp_net_hw', the value of which will be NULL always. This cause any
logic which use of 'cpp' will make the app crash.

Fix this by delete the support of getting firmware version of VF.

Fixes: 128c8ad951bf ("net/nfp: support getting firmware version")
Cc: [email protected]

Signed-off-by: Chaoyong He <[email protected]>
Reviewed-by: Long Wu <[email protected]>
Reviewed-by: Niklas Söderlund <[email protected]>
Reviewed-by: Peng Zhang <[email protected]>
---
 drivers/net/nfp/nfp_ethdev_vf.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/drivers/net/nfp/nfp_ethdev_vf.c b/drivers/net/nfp/nfp_ethdev_vf.c
index f971bb8903..9020cd399b 100644
--- a/drivers/net/nfp/nfp_ethdev_vf.c
+++ b/drivers/net/nfp/nfp_ethdev_vf.c
@@ -241,7 +241,6 @@ static const struct eth_dev_ops nfp_netvf_eth_dev_ops = {
        .tx_queue_release       = nfp_net_tx_queue_release,
        .rx_queue_intr_enable   = nfp_rx_queue_intr_enable,
        .rx_queue_intr_disable  = nfp_rx_queue_intr_disable,
-       .fw_version_get         = nfp_net_firmware_version_get,
 };
 
 static inline void
-- 
2.39.1

Reply via email to