diff options
author | Ciprian Barbu <ciprian.barbu@linaro.org> | 2015-05-18 19:19:09 +0100 |
---|---|---|
committer | Zoltan Kiss <zoltan.kiss@linaro.org> | 2015-05-18 19:19:09 +0100 |
commit | 5a0f1ce68e6b49e05c4a377e2f1ed8a10cb0ed64 (patch) | |
tree | b462e9327e3f4bf7f5485361c9419039af1c7f55 /platform | |
parent | adf7480a0cd9c63aff5a3c0e656fe8390575aec0 (diff) |
dpdk: README: rework section on binding to DPDK
Signed-off-by: Ciprian Barbu <ciprian.barbu@linaro.org>
Signed-off-by: Zoltan Kiss <zoltan.kiss@linaro.org>
Diffstat (limited to 'platform')
-rw-r--r-- | platform/linux-dpdk/README | 26 |
1 files changed, 17 insertions, 9 deletions
diff --git a/platform/linux-dpdk/README b/platform/linux-dpdk/README index 62d219c15..5654de47b 100644 --- a/platform/linux-dpdk/README +++ b/platform/linux-dpdk/README @@ -111,12 +111,6 @@ Bind NIC's to DPDK: ------------------ The DPDK code contains a tool used to bind drivers to the network cards. - sudo rmmod ixgbe - sudo modprobe ixgbe - -If the SFP's used are non-intel, then: - sudo modprobe ixgbe allow_unsupported_sfp=1 - cd <dpdk-dir> ./tools/dpdk_nic_bind.py --status @@ -139,10 +133,24 @@ Other network devices <none> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -Now you should look for pci id listed and give it in the following command -in place of 05:00.X +Bind using interface name: +------------------------- +The easiest way is to let the tool automatically switch the regular drivers. For +that the interface must not be active i.e. no IP addresses assigned: + ifconfig eth0 0 + ifconfig eth1 0 + sudo ./tools/dpdk_nic_bind --bind=igb_uio eth0 + sudo ./tools/dpdk_nic_bind --bind=igb_uio eth1 + + +Bind using PCI ids: +------------------ +Another way is to remove the regular drivers and use PCI ids: + sudo rmmod ixgbe + +If the SFP's used are non-intel, then + sudo modprobe ixgbe allow_unsupported_sfp=1 -To give the interfaces to DPDK, use following command sudo ./tools/igb_uio_bind.py --bind=igb_uio 05:00.0 sudo ./tools/igb_uio_bind.py --bind=igb_uio 05:00.1 |