From 00bfc58e6f76f7a67a6b62f297f72792534fef52 Mon Sep 17 00:00:00 2001 From: Yaroslav Brustinov Date: Thu, 13 Oct 2016 06:53:19 +0300 Subject: 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 --- scripts/t-rex-64 | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'scripts/t-rex-64') 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 -- cgit 1.2.3-korg