diff --git a/ip6/lib/dpdkstack.c b/ip6/lib/dpdkstack.c index 7928a9a..d40c0c3 100644 --- a/ip6/lib/dpdkstack.c +++ b/ip6/lib/dpdkstack.c @@ -635,14 +635,14 @@ int config_dpdk() { printf("NIC should be ready now...\n"); /* create flow for send packet with */ - struct rte_flow_error error; - struct rte_flow *flow = generate_ipv6_flow(portid, rx_lcore_id, packetinfo.iphdr.ip6_dst, &error); - if (!flow) { - printf("Flow can't be created %d message: %s\n", - error.type, - error.message ? error.message : "(no stated reason)"); - rte_exit(EXIT_FAILURE, "error in creating flow"); - } + // struct rte_flow_error error; + // struct rte_flow *flow = generate_ipv6_flow(portid, rx_lcore_id, packetinfo.iphdr.ip6_dst, &error); + // if (!flow) { + // printf("Flow can't be created %d message: %s\n", + // error.type, + // error.message ? error.message : "(no stated reason)"); + // rte_exit(EXIT_FAILURE, "error in creating flow"); + // } return ret; } diff --git a/remote_compile.sh b/remote_compile.sh index d5c19d5..1014d2a 100755 --- a/remote_compile.sh +++ b/remote_compile.sh @@ -3,25 +3,24 @@ set +x USER_R="fruffy" DIR_LOCAL="/home/fruffy/Projects/BlueBridge" DIR_REMOTE="/home/$USER_R/ip6/BlueBridge" -SERVER1="192.168.79.28" -SERVER2="192.168.79.41" -SERVER3="192.168.79.27" +SERVERS=("192.168.79.28" "192.168.79.41" "192.168.79.27") IP6TARGET="$DIR_LOCAL/ip6/lib " -IP6TARGET+="$DIR_LOCAL/ip6/applications/ " IP6TARGET+="$DIR_LOCAL/ip6/*.mk " - +APPTARGET+="$DIR_LOCAL/ip6/applications/*.c " BBTARGET="makefile" -scp -r $IP6TARGET $USER_R@$SERVER1:$DIR_REMOTE/ip6/ -scp -r $BBTARGET $USER_R@$SERVER1:$DIR_REMOTE/ -ssh $USER_R@$SERVER1 make -C $DIR_REMOTE dpdk +for server in "${SERVERS[@]}" +do + scp -r $IP6TARGET $USER_R@$server:$DIR_REMOTE/ip6/ + scp -r $APPTARGET $USER_R@$server:$DIR_REMOTE/ip6/applications + scp -r $BBTARGET $USER_R@$server:$DIR_REMOTE/ +done +for server in "${SERVERS[@]}" +do + ssh $USER_R@$server make -C $DIR_REMOTE dpdk +done + -scp -r $IP6TARGET $USER_R@$SERVER2:$DIR_REMOTE/ip6/ -ssh $USER_R@$SERVER2 make -C $DIR_REMOTE dpdk -scp -r $BBTARGET $USER_R@$SERVER2:$DIR_REMOTE/ -# scp -r $DIR_LOCAL/ip6/lib $USER@$SERVER3:$DIR_REMOTE/ip6/ -# scp -r $DIR_LOCALip6/applications/ $USER@$SERVER3:$DIR_REMOTE/ip6/ -# ssh $USER@$SERVER3 make -C $DIR_REMOTE