Ashish,

 

See this link which includes use of dpdk-unbind to restore a device:

 

https://doc.dpdk.org/guides/linux_gsg/linux_drivers.html

 

Search for “restor” on the page.

 

Hemant

 

From: [email protected] <[email protected]> On Behalf Of 
[email protected]
Sent: Thursday, March 18, 2021 8:43 AM
To: [email protected]
Subject: Re: [vpp-dev] virtual interfaces (virtio device) not accesible in the 
VPP 21.01 release running on VM

 

Hi Hemant,

Thanks a lot for the reply.

Inserting vfio-pci driver worked for us and the virtio devices are accessible 
to vpp.
But incase we want to remove the virtual nic device from vpp , and trying to 
unbind the device , we are getting the following error: 

$ sudo dpdk-devbind -u vfio-pci 0000:00:04.0

Traceback (most recent call last):

  File "/sbin/dpdk-devbind", line 744, in <module>

    main()

  File "/sbin/dpdk-devbind", line 741, in main

    do_arg_actions()

  File "/sbin/dpdk-devbind", line 706, in do_arg_actions

    unbind_all(args, force_flag)

  File "/sbin/dpdk-devbind", line 504, in unbind_all

    for d in dev_list:

  File "/sbin/dpdk-devbind", line 352, in dev_id_from_dev_name

    "Please specify device in \"bus:slot.func\" format" % dev_name)

ValueError: Unknown device: vfio-pci. Please specify device in "bus:slot.func" 
format 

We have stopped VPP before trying to unbind our device.

What can we do to avoid this error ?

Thanks and Regards,
Ashish 

Attachment: smime.p7s
Description: S/MIME cryptographic signature

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#18967): https://lists.fd.io/g/vpp-dev/message/18967
Mute This Topic: https://lists.fd.io/mt/81404293/21656
Group Owner: [email protected]
Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to