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

Stephen Hemminger stephen at networkplumber.org
Fri Aug 26 02:37:29 CEST 2016


On Wed, 24 Aug 2016 22:25:46 -0400
souvikdey33 <sodey at sonusnet.com> wrote:

> +    #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.


More information about the dev mailing list