diff options
author | Yaroslav Brustinov <ybrustin@cisco.com> | 2016-10-13 06:53:19 +0300 |
---|---|---|
committer | Yaroslav Brustinov <ybrustin@cisco.com> | 2016-10-28 14:38:32 +0200 |
commit | 00bfc58e6f76f7a67a6b62f297f72792534fef52 (patch) | |
tree | 60624bd2f75ed2ae4de1c962ef195b173ae628a8 /scripts/t-rex-64 | |
parent | 653629bee578b4888bd0c144386c03a4b0d08eef (diff) |
new port attr commands: flow control, link status, led status
add user friendly description to ports
add xstats
enable start with link down at stateless. in CPP status will update itself upon link up, in Python need to restart client at this phase.
Signed-off-by: Yaroslav Brustinov <ybrustin@cisco.com>
Diffstat (limited to 'scripts/t-rex-64')
-rwxr-xr-x | scripts/t-rex-64 | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/scripts/t-rex-64 b/scripts/t-rex-64 index 4e5c0fae..4d0d7813 100755 --- a/scripts/t-rex-64 +++ b/scripts/t-rex-64 @@ -12,6 +12,15 @@ if [ $RESULT -ne 0 ]; then exit $RESULT fi +pci_desc_re='^(\S+) - (.+)$' +source find_python.sh +while read line +do + if [[ "$line" =~ $pci_desc_re ]]; then + pci_name="pci$(echo ${BASH_REMATCH[1]} | tr ':' '_' | tr '.' '_')" # make alphanumeric name + export $pci_name="${BASH_REMATCH[2]}" + fi +done <<< "$($PYTHON dpdk_setup_ports.py --dump-pci-description)" cd $(dirname $0) export LD_LIBRARY_PATH=$PWD |