summaryrefslogtreecommitdiff
path: root/tools/dpdk-setup.sh
diff options
context:
space:
mode:
authorEoin Breen <eoin.breen@intel.com>2016-09-20 01:05:01 +0100
committerPablo de Lara <pablo.de.lara.guarch@intel.com>2016-10-04 20:41:09 +0200
commitcb4a1d14bf3e0f1191b79c684c42a749fb0f8039 (patch)
treea85a819fca35751b71d5e00ca3892a870cdfddbd /tools/dpdk-setup.sh
parentaf9f6afb1452d207cf5695615442ee21836b6570 (diff)
downloaddpdk-cb4a1d14bf3e0f1191b79c684c42a749fb0f8039.zip
dpdk-cb4a1d14bf3e0f1191b79c684c42a749fb0f8039.tar.gz
dpdk-cb4a1d14bf3e0f1191b79c684c42a749fb0f8039.tar.xz
tools: bind crypto devices
Adding the support to bind/unbind crypto devices with dpdk-devbind.py script, as now it is not restricted to network devices anymore. Signed-off-by: Eoin Breen <eoin.breen@intel.com> Signed-off-by: Pablo de Lara <pablo.de.lara.guarch@intel.com> Acked-by: Deepak Kumar Jain <deepak.k.jain@intel.com>
Diffstat (limited to 'tools/dpdk-setup.sh')
-rwxr-xr-xtools/dpdk-setup.sh32
1 files changed, 16 insertions, 16 deletions
diff --git a/tools/dpdk-setup.sh b/tools/dpdk-setup.sh
index ac81b2e..14ed590 100755
--- a/tools/dpdk-setup.sh
+++ b/tools/dpdk-setup.sh
@@ -422,23 +422,23 @@ grep_meminfo()
}
#
-# Calls dpdk-devbind.py --status to show the NIC and what they
+# Calls dpdk-devbind.py --status to show the devices and what they
# are all bound to, in terms of drivers.
#
-show_nics()
+show_devices()
{
if [ -d /sys/module/vfio_pci -o -d /sys/module/igb_uio ]; then
${RTE_SDK}/tools/dpdk-devbind.py --status
else
echo "# Please load the 'igb_uio' or 'vfio-pci' kernel module before "
- echo "# querying or adjusting NIC device bindings"
+ echo "# querying or adjusting device bindings"
fi
}
#
# Uses dpdk-devbind.py to move devices to work with vfio-pci
#
-bind_nics_to_vfio()
+bind_devices_to_vfio()
{
if [ -d /sys/module/vfio_pci ]; then
${RTE_SDK}/tools/dpdk-devbind.py --status
@@ -449,14 +449,14 @@ bind_nics_to_vfio()
echo "OK"
else
echo "# Please load the 'vfio-pci' kernel module before querying or "
- echo "# adjusting NIC device bindings"
+ echo "# adjusting device bindings"
fi
}
#
# Uses dpdk-devbind.py to move devices to work with igb_uio
#
-bind_nics_to_igb_uio()
+bind_devices_to_igb_uio()
{
if [ -d /sys/module/igb_uio ]; then
${RTE_SDK}/tools/dpdk-devbind.py --status
@@ -466,14 +466,14 @@ bind_nics_to_igb_uio()
sudo ${RTE_SDK}/tools/dpdk-devbind.py -b igb_uio $PCI_PATH && echo "OK"
else
echo "# Please load the 'igb_uio' kernel module before querying or "
- echo "# adjusting NIC device bindings"
+ echo "# adjusting device bindings"
fi
}
#
# Uses dpdk-devbind.py to move devices to work with kernel drivers again
#
-unbind_nics()
+unbind_devices()
{
${RTE_SDK}/tools/dpdk-devbind.py --status
echo ""
@@ -525,14 +525,14 @@ step2_func()
TEXT[5]="Setup hugepage mappings for NUMA systems"
FUNC[5]="set_numa_pages"
- TEXT[6]="Display current Ethernet device settings"
- FUNC[6]="show_nics"
+ TEXT[6]="Display current Ethernet/Crypto device settings"
+ FUNC[6]="show_devices"
- TEXT[7]="Bind Ethernet device to IGB UIO module"
- FUNC[7]="bind_nics_to_igb_uio"
+ TEXT[7]="Bind Ethernet/Crypto device to IGB UIO module"
+ FUNC[7]="bind_devices_to_igb_uio"
- TEXT[8]="Bind Ethernet device to VFIO module"
- FUNC[8]="bind_nics_to_vfio"
+ TEXT[8]="Bind Ethernet/Crypto device to VFIO module"
+ FUNC[8]="bind_devices_to_vfio"
TEXT[9]="Setup VFIO permissions"
FUNC[9]="set_vfio_permissions"
@@ -571,8 +571,8 @@ step5_func()
{
TITLE="Uninstall and system cleanup"
- TEXT[1]="Unbind NICs from IGB UIO or VFIO driver"
- FUNC[1]="unbind_nics"
+ TEXT[1]="Unbind devices from IGB UIO or VFIO driver"
+ FUNC[1]="unbind_devices"
TEXT[2]="Remove IGB UIO module"
FUNC[2]="remove_igb_uio_module"