Spdk/scripts
Pawel Wodkowski 7fea9d10a5 setup.sh: enhance output from setup, reset and status
Unify output of setup driver binding. Each line will print PCI BDF,
vendor and device id.

  $export PCI_BLACKLIST="0000:00:04.0 0000:00:04.1"
  $./scripts/setup.sh
  0000:0b:00.0 (8086 0953): nvme -> vfio-pci
  0000:00:04.1 (8086 0e20): Skipping un-whitelisted I/OAT device
  ...
  0000:00:04.1 (8086 0e21): Skipping un-whitelisted I/OAT device
  ...

Print log when desired driver is already bound:

  $./scripts/setup.sh
  0000:0b:00.0 (8086 0953): Already using the vfio-pci driver
  ...

'status' command prints vendor and device:

  ./scripts/setup.sh status
  ...
  NVMe devices
  BDF		Vendor	Device	NUMA	Driver		Device name
  0000:0b:00.0	8086	0953	0	vfio-pci		-

  I/OAT DMA
  BDF		Vendor	Device	NUMA	Driver
  0000:00:04.0	8086	0e20	0	ioatdma
  0000:80:04.0	8086	0e20	1	vfio-pci
  0000:00:04.1	8086	0e21	0	ioatdma
  0000:80:04.1	8086	0e21	1	vfio-pci
  0000:00:04.2	8086	0e22	0	vfio-pci
  0000:80:04.2	8086	0e22	1	vfio-pci
  ...

As we are here replace legacy Bash subshell invocation ` ` with $( ) in
some places.

Change-Id: I76b533c7580dadeb3d592c084778b8f9869c6d17
Signed-off-by: Pawel Wodkowski <pawelx.wodkowski@intel.com>
Reviewed-on: https://review.gerrithub.io/c/443218 (master)
Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/448423
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
Tested-by: Darek Stojaczyk <dariusz.stojaczyk@intel.com>
2019-03-21 12:24:27 +00:00
..
ceph test/rbd: add configurable monitoring IP address for ceph 2018-04-17 13:55:44 -04:00
perf scripts/perf: fix nvme perf scripts 2018-10-11 20:46:18 +00:00
rpc scripts/rpc.py: add method "get_nvme_controllers" 2018-10-25 17:26:25 +00:00
spdkcli test/spdkcli: Add load and save config commands. 2018-10-15 17:32:09 +00:00
vagrant autotest: introduce SPDK_RUN_FUNCTIONAL_TEST 2019-03-21 12:24:27 +00:00
check_format.sh scripts/check_format: fix an escaping issue. 2018-10-09 04:45:00 +00:00
common.sh scripts: factor out iter_pci helper functions 2018-01-03 14:09:22 -05:00
config_converter.py scripts: add config converter 2018-09-18 15:24:40 +00:00
detect_cc.sh build: use conditional CC/CXX assignment for generated mk/cc.mk 2018-02-12 12:10:49 -05:00
eofnl scripts/check_format: check trailing whitespace 2017-10-24 17:35:23 -04:00
fio.py scripts: use python3 in all scripts 2018-09-14 22:24:30 +00:00
gen_crypto.sh test/bdev: change crypto device conf based on environment 2018-10-24 23:29:28 +00:00
gen_nvme.sh test/vhost: load json configuration to vhost in spdk_vhost_run. 2018-05-30 00:53:12 +00:00
gen_rbd.sh test/bdev: add Ceph RBD bdev to bdev tests 2018-02-26 11:12:35 -05:00
genconfig.py configure: remove CONFIG.local symlink 2018-10-19 14:26:14 +00:00
pkgdep.sh pkgdep: Prefer make -C to cd 2018-10-17 15:16:15 +00:00
posix.txt build: Automatically detect use of POSIX includes 2017-05-08 13:20:37 -07:00
prep_benchmarks.sh scripts: Add reset option to prep_benchmarks.sh 2018-01-09 13:40:59 -05:00
qat_setup.sh scripts: add a qat card setup script 2018-10-22 22:33:13 +00:00
rpc_http_proxy.py scripts: Remote RPC access with authentication 2018-10-31 16:49:17 +00:00
rpc.py scripts/rpc.py: add method "get_nvme_controllers" 2018-10-25 17:26:25 +00:00
setup.sh setup.sh: enhance output from setup, reset and status 2019-03-21 12:24:27 +00:00
spdkcli.py scripts/spdkcli: override configshell init 2018-10-01 15:04:05 +00:00