summaryrefslogtreecommitdiffstats
path: root/scripts/dpdk_setup_ports.py
AgeCommit message (Collapse)AuthorFilesLines
2017-01-04Create config script: fix verify custom MAC in interactive modeYaroslav Brustinov1-2/+4
Change-Id: I503cea766e840682c1698cc2201bc24ef1c287d6 Signed-off-by: Yaroslav Brustinov <ybrustin@cisco.com>
2017-01-02add warning about lack of read permissions for user "nobody" to run scapy ↵Yaroslav Brustinov1-1/+3
server. add flag to disable scapy server run. Change-Id: I65ccfb24ed4a5461fe2a13d8be0f07fad8a50bae Signed-off-by: Yaroslav Brustinov <ybrustin@cisco.com>
2017-01-02Creating config script: by default dump config to screen, note on -o flag to ↵Yaroslav Brustinov1-7/+7
save to file. Change-Id: I899943d0005d91f27dafd0395c5cdb5da964df11 Signed-off-by: Yaroslav Brustinov <ybrustin@cisco.com>
2017-01-01minorYaroslav Brustinov1-2/+2
Change-Id: Ibf02ca9bb5e2f2a6e6c0a498dc8ce889069acb56 Signed-off-by: Yaroslav Brustinov <ybrustin@cisco.com>
2017-01-01Max number of ports: 16Yaroslav Brustinov1-9/+9
Change-Id: I93e2efe542578b0745d2f40adb2bcf35ffdff31b Signed-off-by: Yaroslav Brustinov <ybrustin@cisco.com>
2016-12-22Fix IP based creation of config in case of interactive tooYaroslav Brustinov1-2/+2
Change-Id: I870cc2a3f982dc57b437abf3c8a14ce65264f165 Signed-off-by: Yaroslav Brustinov <ybrustin@cisco.com>
2016-12-22Config creation script (IP based): wrong IP in case of 10+ interfacesYaroslav Brustinov1-2/+2
Change-Id: I71e861b9dcbc838d6344fa051cebacaa16e1fc54 Signed-off-by: Yaroslav Brustinov <ybrustin@cisco.com>
2016-12-21Add affinity for scapy_daemon_server to master thread from config fileYaroslav Brustinov1-1/+5
Change-Id: I83d3138b713f3448bbc649e6d7a5fabe3860285c Signed-off-by: Yaroslav Brustinov <ybrustin@cisco.com>
2016-12-20Fix the way root user is being determined in Python; Running ↵Yaroslav Brustinov1-2/+1
scapy_daemon_server and stl_rpc_proxy now should work without tty; Change-Id: Id70be83956a9b8279197c68dd58b674e972fc1a9 Signed-off-by: Yaroslav Brustinov <ybrustin@cisco.com>
2016-12-20scapy launcherYaroslav Brustinov1-15/+21
Change-Id: Iafe0365e82c5386e87dbf7abd0f0982c3ff95d80 Signed-off-by: Yaroslav Brustinov <ybrustin@cisco.com>
2016-12-20Check OS version for Mellanox NICs; More detailed args error prints; 40G and ↵Yaroslav Brustinov1-6/+20
Mellanox driver classes inherit from Base, not 10G. Change-Id: I55f7833078ca9d7bfcda211ad165a656ce5014c5 Signed-off-by: Yaroslav Brustinov <ybrustin@cisco.com>
2016-12-11Cantos MTU is printed in a different wayHanoh Haim1-1/+5
Signed-off-by: Hanoh Haim <hhaim@cisco.com>
2016-12-11more flexiable OFED version checkHanoh Haim1-2/+6
Signed-off-by: Hanoh Haim <hhaim@cisco.com>
2016-11-16change order of cores in produced config fileYaroslav Brustinov1-36/+61
fix bug of writing reduced number of cores in VM try using "main" thread for rx Signed-off-by: Yaroslav Brustinov <ybrustin@cisco.com>
2016-11-15backup old trex-07 setup configHanoh Haim1-0/+27
Signed-off-by: Hanoh Haim <hhaim@cisco.com>
2016-11-14filter mlx5 attach driverHanoh Haim1-1/+1
Signed-off-by: Hanoh Haim <hhaim@cisco.com>
2016-11-14check OFED version and tune mlx5 device for performanceHanoh Haim1-0/+72
Signed-off-by: Hanoh Haim <hhaim@cisco.com>
2016-11-13dpdk_set_up minor fixHanoh Haim1-3/+4
Signed-off-by: Hanoh Haim <hhaim@cisco.com>
2016-11-11WIP mlx5 don't check for conflict process - can't be done in case of mlxHanoh Haim1-9/+11
Signed-off-by: Hanoh Haim <hhaim@cisco.com>
2016-11-11mlx5 support build WIPHanoh Haim1-7/+40
Signed-off-by: Hanoh Haim <hhaim@cisco.com>
2016-11-03dpdk_setup_ports.py: config creation - don't run TRex if IP config is wantedYaroslav Brustinov1-27/+30
Signed-off-by: Yaroslav Brustinov <ybrustin@cisco.com>
2016-11-02dpdk_setup_ports.py config creation:Yaroslav Brustinov1-24/+32
1) MACs as string instead of array. 2) add --force-macs flag to use MACs and not IPs Signed-off-by: Yaroslav Brustinov <ybrustin@cisco.com>
2016-11-02dpdk_setup_ports: do not check if TRex is already running when called --helpYaroslav Brustinov1-1/+4
Signed-off-by: Yaroslav Brustinov <ybrustin@cisco.com>
2016-10-28dpdk_setup_ports.py: fix add of help in case of "t-rex-64 --help"Yaroslav Brustinov1-9/+14
dpdk_setup_ports.py: fix warning of TRex is already running if different NICs are being used singleton_daemon.py: fix error socket in use immediately after check if in use trex-console: fix crash in case of "tui --help" trex-console: try-catch commands instead of crashing add async notification on port status/atttibutes change add port xstats support add description of interfaces main_dpdk.cpp: fix --client_cfg not working with Python API Signed-off-by: Yaroslav Brustinov <ybrustin@cisco.com>
2016-10-28new port attr commands: flow control, link status, led statusYaroslav Brustinov1-0/+6
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>
2016-10-20fix dpdk_setup_ports.py for Python3Yaroslav Brustinov1-1/+1
Signed-off-by: Yaroslav Brustinov <ybrustin@cisco.com>
2016-10-20Small fix to dpdk_setup_ports.pyIdo Barnea1-1/+1
Signed-off-by: Ido Barnea <ibarnea@cisco.com>
2016-10-20Added support for ip based config generation to dpdk_setup_ports.pyIdo Barnea1-45/+143
Signed-off-by: Ido Barnea <ibarnea@cisco.com>
2016-10-18Help message fixes + removing unused command line optionsIdo Barnea1-1/+1
Signed-off-by: Ido Barnea <ibarnea@cisco.com>
2016-09-27/etc/trex_cfg.yaml allow MAC as string "12:34:56:78:9a:bc" etc.Yaroslav Brustinov1-1/+3
dpdk_setup_ports: fix create config in case of VM & passthrough
2016-09-21fixes to dpdk startup scriptsYaroslav Brustinov1-2/+2
2016-09-13dpdk Python scripts small fixesYaroslav Brustinov1-1/+1
ensure log dir exists for trex daemon regression: add trex24 setup Sphinx docs remove "capture" tag for compatibility with 1.2 version
2016-08-24better logger for master_daemonYaroslav Brustinov1-4/+8
verify root priveleges in dpdk_* scripts call to functions of show status instead of calling process
2016-08-23fixes to create config script: in case of error input, ask again.Yaroslav Brustinov1-41/+74
2016-08-22interactive creation of config, finish returning DPDK interfaces to Linux ↵Yaroslav Brustinov1-65/+171
command.
2016-08-21Check if interfaces are in use at binding/unbinding/starting TRex.Yaroslav Brustinov1-11/+42
2016-08-19dpdk_setup_ports: better error if no MAC determinedYaroslav Brustinov1-4/+4
2016-08-19add --ignore-numa argument to config creationYaroslav Brustinov1-40/+45
2016-08-18revert mmain_dpdk.h commited by mistake codeYaroslav Brustinov1-11/+30
add create config functional test change order of cores in config file
2016-08-18TRex argument --dump-interfaces <list of PCI> (by default will take ↵Yaroslav Brustinov1-39/+311
interfaces from /etc/trex_cfg.yaml if exists, if does not exists, will show all DPDK interfaces) get interface speed from DPDK instead of using constants per driver add script to generate config file /etc/trex_cfg.yaml: sudo ./dpdk_setup_ports.py -c <list of PCI> show table of interfaces in sudo ./dpdk_setup_ports.py -t
2016-08-01Python3 support for Stateful daemonYaroslav Brustinov1-14/+16
Python 3.5 support in ZMQ Verify ZMQ health in Stateful daemon Add get_trex_config() command to Stateful daemon Strip debug info on Python ZMQ .so files
2016-03-13TRex will ask before bind/unbind interfaces with active (established) tcp ↵Yaroslav Brustinov1-1/+1
connections
2016-02-28merge max_port=12 supportHanoh Haim1-6/+9
2016-02-28m_max_ports->12, base on RaminNietzsche fix. set defult DPDK error to 4Hanoh Haim1-4/+6
2016-02-28fix for up to 12 ports, fix error in case port_limit higher than number of ↵Yaroslav Brustinov1-10/+13
interfaces
2015-06-24first versionHanoh Haim1-0/+232