path: root/tools
AgeCommit message (Collapse)Author
2015-08-03tools: fix comment in bind scriptStephen Hemminger
The function documentation was obviously copied and not updated. Signed-off-by: Stephen Hemminger <> Acked-by: Bruce Richardson <>
2015-03-23tools: fix vfio supportAndre Richter
This patch fixes several minor issues in - show_nics() would not display the current Ethernet settings if the user only loads the vfio-pci module, b/c it only checks for presence of igb_uio. Fix this by adding a check for vfio-pci. - unbind_nics(): Fix option naming and string inside function. - Exchange a forgotten "igb_uio" with "vfio-pci" in a comment. Signed-off-by: Andre Richter <>
2015-03-17tools: remove absolute path of chmod for vfio setupAndre Richter uses /usr/bin/chmod, but depending on distribution, it is not always there. For example, Ubuntu has /bin/chmod. Fix this by removing the absolute path, like it is done e.g. with grep. Signed-off-by: Andre Richter <>
2015-03-05tools: fix binding to unsupported driverOuyang Changchun
The dpdk_nic_bind script will not allow ports to be bound or unbound if none of the kernel modules supported by DPDK is loaded. This patch relaxes this restriction by checking if a DPDK module is actually requested. The example below illustrates this problem: In virtio test, on the guest 1. Bind virtio port to igb_uio driver; 2. Remove igb_uio module; 3. Bind virtio port to virtio-pci driver, it fails and reports: "Error - no supported modules are loaded" The script should check the to-be-bound driver flag, if it is dpdk driver(igb_uio, vfio etc), and the corresponding module is not loaded, then exit, otherwise, just report a warning, and continue to bind the non-dpdk driver(like virtio-pci) to dev. Signed-off-by: Changchun Ouyang <> Tested-by: Qian Xu <> Acked-by: Michael Qiu <>
2015-02-20tools: enable binding device to uio_pci_genericDanny Zhou
Add uio_pci_generic to the list of supported kernel drivers. Signed-off-by: Danny Zhou <> Tested-by: Qun Wan <> Signed-off-by: Bruce Richardson <> Acked-by: Declan Doherty <>
2014-10-10tools: fix setup script for Fedora 21Daniel Mrzyglod
script was expecting /lib/modules/$(uname -r)/kernel/drivers/uio/uio.ko but in fedora 21 there are Compressed kernel modules - xz (LZMA) Signed-off-by: Daniel Mrzyglod <> Acked-by: Neil Horman <>
2014-06-27tools: allow nic status query without igb_uioBruce richardson
Allow the nic bind/unbind script to print out its status messages even if the igb_uio driver is not loaded. For binding and unbinding NICs, the behaviour is the same, and the igb_uio driver still needs to be loaded. Signed-off-by: Bruce richardson <> Acked-by: Thomas Monjalon <>
2014-06-27tools: unbind ports that were erroneously boundAnatoly Burakov
When binding devices to a generic driver (i.e. one that doesn't have a PCI ID table, some devices that are not bound to any other driver could be bound even if no one has asked them to. hence, we check the list of drivers again, and see if some of the previously-unbound devices were erroneously bound. if such devices are found, they are unbound back. Signed-off-by: Anatoly Burakov <> Acked-by: Thomas Monjalon <>
2014-06-19tools: fix alignment of cpu layout outputShannon Zhao
Bug: when "core id" is greater than 9, the output doesn't align. Socket 0 Socket 1 --------- --------- Core 9 [4, 16] [10, 22] Core 10 [5, 17] [11, 23] Solution: adjust output format to align based on the maximum length of the "core id" and "processor" Socket 0 Socket 1 -------- -------- Core 9 [4, 16] [10, 22] Core 10 [5, 17] [11, 23] Signed-off-by: Shannon Zhao <> Acked-by: Pablo de Lara <>
2014-06-16tools: add vfio support to setup scriptAnatoly Burakov
Support for loading/unloading VFIO drivers, binding/unbinding devices to/from VFIO, also setting up correct userspace permissions. Signed-off-by: Anatoly Burakov <> Tested-by: HuilongX Xu <> Tested-by: Waterman Cao <> Acked-by: Thomas Monjalon <>
2014-06-16tools: support vfio in dpdk_nic_bindAnatoly Burakov
Signed-off-by: Anatoly Burakov <> Tested-by: HuilongX Xu <> Tested-by: Waterman Cao <> Acked-by: Thomas Monjalon <>
2014-06-16tools: rename igb_uio_bind to dpdk_nic_bindAnatoly Burakov
Renaming the igb_uio_bind script to dpdk_nic_bind to have a generic name before supporting two drivers. Signed-off-by: Anatoly Burakov <> Acked-by: Thomas Monjalon <>
2014-06-16igb_uio: remove PCI id tableAnatoly Burakov
Removing PCI ID list to make igb_uio more similar to a generic driver like vfio-pci or pci_uio_generic. This is done to make it easier for the binding script to support multiple drivers. Note that since igb_uio no longer has a PCI ID list, it can now be bound to any device, not just those explicitly supported by DPDK. In other words, it now behaves similar to PCI stub, VFIO and other generic PCI drivers. Therefore to bind a new device to igb_uio, the user will now have to first write its PCI ID to "new_id" file inside the igb_uio driver directory, and only then write the PCI ID to "bind". This is reflected in changes to PCI binding script as well. There's a weird behaviour of sysfs when a new device ID is added to new_id. Subsequent writing to "bind" will result in IOError on closing the file. This error is harmless but it triggers the exception anyway, so in order to work around that, we check if the device was actually bound to the driver before raising an error. Signed-off-by: Anatoly Burakov <> Tested-by: HuilongX Xu <> Tested-by: Waterman Cao <> Acked-by: Thomas Monjalon <>
2014-06-11remove trailing whitespacesBruce Richardson
This commit removes trailing whitespace from lines in files. Almost all files are affected, as the BSD license copyright header had trailing whitespace on 4 lines in it [hence the number of files reporting 8 lines changed in the diffstat]. Signed-off-by: Bruce Richardson <> Acked-by: Neil Horman <> [Thomas: remove spaces before tabs in libs] [Thomas: remove more trailing spaces in non-C files] Signed-off-by: Thomas Monjalon <>
2014-03-20tools: rename pci_unbind scriptThomas Monjalon
In order to make this tool available among other system commands, the name must be more specific. Signed-off-by: Thomas Monjalon <> Acked-by: Chris Wright <>
2014-02-25update Intel copyright years to 2014Bruce Richardson
Signed-off-by: Bruce Richardson <>
2013-10-09doc: whitespace changes in licensesIntel
Signed-off-by: Intel
2013-09-17pci: don't unbind resources on exitIntel
unbind operations must be done before starting eal application Signed-off-by: Intel
2013-07-25update copyright date to 2013Intel
Signed-off-by: Intel
2013-07-25pci: make it possible to keep devices bound to uioIntel
Binding code has been refactored as well. Signed-off-by: Intel
2013-07-25eal: rework cpu information discoveryIntel
Signed-off-by: Intel
2013-07-25kni: initial importIntel
Signed-off-by: Intel
2013-07-05remove version in all filesIntel
Signed-off-by: Intel
2013-03-11first public releasev1.2.3r0Intel
version 1.2.3 Signed-off-by: Intel