* [dpdk-users] Using devbind.py for automated testing @ 2020-01-29 10:55 Waqqas Jabbar 2020-01-30 23:13 ` David Christensen 0 siblings, 1 reply; 3+ messages in thread From: Waqqas Jabbar @ 2020-01-29 10:55 UTC (permalink / raw) To: users Hi I am new here, so please bear with me. I am trying to automate the process of bind/unbinding NICs between kernel and DPDK for automated testing. The devbind.py script is not very friendly to script. I have to run the status command, parse the output (using regex) and then run the script with the correct parameters to bind/unbind and parse output again to verify the results. My idea is to run the devbind.py as a REST API server and expose the devices and operations through JSON input and output. I can get the list of devices, using the GET request and bind/unbind it using the PUT request on a device. The output would a JSON object with an updated result. Automating it would be easy, leading to a more robust solution. My questions are: - Has anyone developed similar functionality? if yes, please share its details. - Any better way to achieve the same functionality? Thanks in advance Waqqas ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [dpdk-users] Using devbind.py for automated testing 2020-01-29 10:55 [dpdk-users] Using devbind.py for automated testing Waqqas Jabbar @ 2020-01-30 23:13 ` David Christensen 2020-01-31 5:02 ` Waqqas Jabbar 0 siblings, 1 reply; 3+ messages in thread From: David Christensen @ 2020-01-30 23:13 UTC (permalink / raw) To: users > My questions are: > - Has anyone developed similar functionality? if yes, please share its details. > - Any better way to achieve the same functionality? Have you seen the driverctl application? https://gitlab.com/driverctl/driverctl I've found it useful for scripting with Ansible. # driverctl list-devices # driverctl list-overrides # driverctl -v set-override 0000:00:01.0 vfio # driverctl -v unset-override 0000:00:01.0 Dave ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [dpdk-users] Using devbind.py for automated testing 2020-01-30 23:13 ` David Christensen @ 2020-01-31 5:02 ` Waqqas Jabbar 0 siblings, 0 replies; 3+ messages in thread From: Waqqas Jabbar @ 2020-01-31 5:02 UTC (permalink / raw) To: David Christensen; +Cc: users Thanks David. I will check it out On Fri, Jan 31, 2020 at 4:13 AM David Christensen <drc@linux.vnet.ibm.com> wrote: > > > My questions are: > > - Has anyone developed similar functionality? if yes, please share its details. > > - Any better way to achieve the same functionality? > > Have you seen the driverctl application? > https://gitlab.com/driverctl/driverctl > > I've found it useful for scripting with Ansible. > > # driverctl list-devices > # driverctl list-overrides > # driverctl -v set-override 0000:00:01.0 vfio > # driverctl -v unset-override 0000:00:01.0 > > Dave ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2020-01-31 5:03 UTC | newest] Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2020-01-29 10:55 [dpdk-users] Using devbind.py for automated testing Waqqas Jabbar 2020-01-30 23:13 ` David Christensen 2020-01-31 5:02 ` Waqqas Jabbar
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).