MCPcopy Create free account
hub / github.com/F-Stack/f-stack / show_status

Function show_status

dpdk/usertools/dpdk-devbind.py:593–626  ·  view source on GitHub ↗

Function called when the script is passed the "--status" option. Displays to the user what devices are bound to the igb_uio driver, the kernel driver or to no driver

()

Source from the content-addressed store, hash-verified

591
592
593def show_status():
594 '''Function called when the script is passed the "--status" option.
595 Displays to the user what devices are bound to the igb_uio driver, the
596 kernel driver or to no driver'''
597
598 if status_dev in ["net", "all"]:
599 show_device_status(network_devices, "Network", if_field=True)
600
601 if status_dev in ["baseband", "all"]:
602 show_device_status(baseband_devices, "Baseband")
603
604 if status_dev in ["crypto", "all"]:
605 show_device_status(crypto_devices, "Crypto")
606
607 if status_dev in ["dma", "all"]:
608 show_device_status(dma_devices, "DMA")
609
610 if status_dev in ["event", "all"]:
611 show_device_status(eventdev_devices, "Eventdev")
612
613 if status_dev in ["mempool", "all"]:
614 show_device_status(mempool_devices, "Mempool")
615
616 if status_dev in ["compress", "all"]:
617 show_device_status(compress_devices, "Compress")
618
619 if status_dev in ["misc", "all"]:
620 show_device_status(misc_devices, "Misc (rawdev)")
621
622 if status_dev in ["regex", "all"]:
623 show_device_status(regex_devices, "Regex")
624
625 if status_dev in ["ml", "all"]:
626 show_device_status(ml_devices, "ML")
627
628
629def pci_glob(arg):

Callers 1

do_arg_actionsFunction · 0.85

Calls 1

show_device_statusFunction · 0.85

Tested by

no test coverage detected