Skip to content

Commit a31ce27

Browse files
author
Unknown
committed
Fix remote compilation.
1 parent 82c073b commit a31ce27

File tree

2 files changed

+21
-22
lines changed

2 files changed

+21
-22
lines changed

ip6/lib/dpdkstack.c

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -635,14 +635,14 @@ int config_dpdk() {
635635
printf("NIC should be ready now...\n");
636636

637637
/* create flow for send packet with */
638-
struct rte_flow_error error;
639-
struct rte_flow *flow = generate_ipv6_flow(portid, rx_lcore_id, packetinfo.iphdr.ip6_dst, &error);
640-
if (!flow) {
641-
printf("Flow can't be created %d message: %s\n",
642-
error.type,
643-
error.message ? error.message : "(no stated reason)");
644-
rte_exit(EXIT_FAILURE, "error in creating flow");
645-
}
638+
// struct rte_flow_error error;
639+
// struct rte_flow *flow = generate_ipv6_flow(portid, rx_lcore_id, packetinfo.iphdr.ip6_dst, &error);
640+
// if (!flow) {
641+
// printf("Flow can't be created %d message: %s\n",
642+
// error.type,
643+
// error.message ? error.message : "(no stated reason)");
644+
// rte_exit(EXIT_FAILURE, "error in creating flow");
645+
// }
646646

647647
return ret;
648648
}

remote_compile.sh

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -3,25 +3,24 @@ set +x
33
USER_R="fruffy"
44
DIR_LOCAL="/home/fruffy/Projects/BlueBridge"
55
DIR_REMOTE="/home/$USER_R/ip6/BlueBridge"
6-
SERVER1="192.168.79.28"
7-
SERVER2="192.168.79.41"
8-
SERVER3="192.168.79.27"
6+
SERVERS=("192.168.79.28" "192.168.79.41" "192.168.79.27")
97

108
IP6TARGET="$DIR_LOCAL/ip6/lib "
11-
IP6TARGET+="$DIR_LOCAL/ip6/applications/ "
129
IP6TARGET+="$DIR_LOCAL/ip6/*.mk "
13-
10+
APPTARGET+="$DIR_LOCAL/ip6/applications/*.c "
1411
BBTARGET="makefile"
1512

16-
scp -r $IP6TARGET $USER_R@$SERVER1:$DIR_REMOTE/ip6/
17-
scp -r $BBTARGET $USER_R@$SERVER1:$DIR_REMOTE/
18-
ssh $USER_R@$SERVER1 make -C $DIR_REMOTE dpdk
13+
for server in "${SERVERS[@]}"
14+
do
15+
scp -r $IP6TARGET $USER_R@$server:$DIR_REMOTE/ip6/
16+
scp -r $APPTARGET $USER_R@$server:$DIR_REMOTE/ip6/applications
17+
scp -r $BBTARGET $USER_R@$server:$DIR_REMOTE/
18+
done
19+
for server in "${SERVERS[@]}"
20+
do
21+
ssh $USER_R@$server make -C $DIR_REMOTE dpdk
22+
done
23+
1924

20-
scp -r $IP6TARGET $USER_R@$SERVER2:$DIR_REMOTE/ip6/
21-
ssh $USER_R@$SERVER2 make -C $DIR_REMOTE dpdk
22-
scp -r $BBTARGET $USER_R@$SERVER2:$DIR_REMOTE/
2325

24-
# scp -r $DIR_LOCAL/ip6/lib $USER@$SERVER3:$DIR_REMOTE/ip6/
25-
# scp -r $DIR_LOCALip6/applications/ $USER@$SERVER3:$DIR_REMOTE/ip6/
26-
# ssh $USER@$SERVER3 make -C $DIR_REMOTE
2726

0 commit comments

Comments
 (0)