Thread (19 messages) 19 messages, 6 authors, 2016-10-04

Re: [PATCH v1] dpdk-devbind.py: Virtio interface issue.

flat view

From: Stephen Hemminger <stephen@networkplumber.org>
Date: 2016-08-26 00:37:17

On Wed, 24 Aug 2016 22:25:46 -0400
souvikdey33 [off-list ref] wrote:
quoted hunk ↗ jump to hunk
+    #The path for virtio devices are different. Get the correct path.
+	virtio = "/sys/bus/pci/devices/%s/" % dev_id
+    cmd = " ls %s | grep 'virt' " %virtio
+    virtio = commands.getoutput(cmd)
I am not a python export but in general it is better to use native language
facilities likes os.listdir() rather than using shell pipes.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help