# @name Ethernet Modular Test
# @desc Test setting CPSW descriptors with uboot and test functionality with ping/iperf
# @requires net

ETH_S_FUNC_MODULAR_CPSW_DESCRIPTORS_4096_PING source 'common.sh'; iface=`get_eth_iface_name.sh` || die "error getting eth interface name"; descs=`ethtool -g ${iface} | grep 2048`; echo descs: $descs;if [ -z "$descs" ]; then die "cpsw descriptors were not set to the correct values!"; fi; host=`get_eth_gateway.sh "-i ${iface}"`|| die "error getting eth gateway address"; do_cmd "ping ${host} -c 3"
ETH_S_PERF_MODULAR_CPSW_DESCRIPTORS_4096_IPERF_UDP_500M_1500B source 'common.sh'; iface=`get_eth_iface_name.sh` || die "error getting eth interface name";  descs=`ethtool -g ${iface} | grep 2048`; echo descs: $descs;if [ -z "$descs" ]; then die "cpsw descriptors were not set to the correct values!"; fi; run_iperf.sh -w 128k -l 1500 -f M -u -t 60 -b 500M
