Skip to content

Commit

Permalink
Fix remote compilation.
Browse files Browse the repository at this point in the history
  • Loading branch information
Unknown committed Feb 12, 2018
1 parent 82c073b commit a31ce27
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 22 deletions.
16 changes: 8 additions & 8 deletions ip6/lib/dpdkstack.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
27 changes: 13 additions & 14 deletions remote_compile.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit a31ce27

Please sign in to comment.