On DPDK 16.11 dpdk_nic_bind.py is renamed to dpdk-devbind.py, so we are getting "file not found" both on packaging and scripts, fixed that. Also fixed inconsistent packaging. Since Seastar copied dpdk_nic_bind.py to its scripts/ directory, there're two different versions of the script, .rpm/.deb packaging different one: dist/redhat: seastar/dpdk/tools/dpdk_nic_bind.py dist/ubuntu: seastar/scripts/dpdk_nic_bind.py That's won't work because we sharing setup scripts between two distributions, so I changed dist/ubuntu package to use DPDK one. Signed-off-by: Takuya ASADA <syuu@scylladb.com> Message-Id: <1484191955-28006-1-git-send-email-syuu@scylladb.com>
11 lines
274 B
Bash
Executable File
11 lines
274 B
Bash
Executable File
#!/bin/bash -e
|
|
|
|
. /usr/lib/scylla/scylla_lib.sh
|
|
|
|
if [ "$NETWORK_MODE" = "virtio" ]; then
|
|
ip tuntap del mode tap dev $TAP
|
|
elif [ "$NETWORK_MODE" = "dpdk" ]; then
|
|
/usr/lib/scylla/dpdk-devbind.py -u $ETHPCIID
|
|
/usr/lib/scylla/dpdk-devbind.py -b $ETHDRV $ETHPCIID
|
|
fi
|