--- tcp.c | 4 ++++ test/lib/setup | 4 +++- test/migrate/rampstream_in | 7 ++++--- 3 files changed, 11 insertions(+), 4 deletions(-) diff --git a/tcp.c b/tcp.c index 9717c355..e70e8410 100644 --- a/tcp.c +++ b/tcp.c @@ -3237,6 +3237,8 @@ int tcp_flow_migrate_source_ext(int fd, int fidx, t->sndq, t->notsent, t->rcvq); debug(" window: snd_wl1 %u snd_wnd %u max %u rcv_wnd %u rcv_wup %u", t->snd_wl1, t->snd_wnd, t->max_window, t->rcv_wnd, t->rcv_wup); + debug(" SO_PEEK_OFF %s offset=%"PRIu32, + peek_offset_cap ? "enabled" : "disabled", peek_offset); /* Endianness fix-ups */ t->seq_snd = htonl(t->seq_snd); @@ -3444,6 +3446,8 @@ int tcp_flow_migrate_target_ext(struct ctx *c, union flow *flow, int fd) t.sndq, t.notsent, t.rcvq); debug(" window: snd_wl1 %u snd_wnd %u max %u rcv_wnd %u rcv_wup %u", t.snd_wl1, t.snd_wnd, t.max_window, t.rcv_wnd, t.rcv_wup); + debug(" SO_PEEK_OFF %s offset=%"PRIu32, + peek_offset_cap ? "enabled" : "disabled", peek_offset); if (t.sndq > TCP_MIGRATE_SND_QUEUE_MAX || t.notsent > t.sndq || t.rcvq > TCP_MIGRATE_RCV_QUEUE_MAX) { diff --git a/test/lib/setup b/test/lib/setup index 575bc215..8b9927bf 100755 --- a/test/lib/setup +++ b/test/lib/setup @@ -350,6 +350,8 @@ setup_migrate() { sleep 1 + [ ${PCAP} -eq 1 ] && context_run_bg mon dumpcap -w ${LOGDIR}/fabric.pcap -i lo + __opts="--vhost-user" [ ${PCAP} -eq 1 ] && __opts="${__opts} -p ${LOGDIR}/passt_1.pcap" [ ${DEBUG} -eq 1 ] && __opts="${__opts} -d" @@ -365,7 +367,7 @@ setup_migrate() { [ ${DEBUG} -eq 1 ] && __opts="${__opts} -d" [ ${TRACE} -eq 1 ] && __opts="${__opts} --trace" - context_run_bg passt_2 "./passt -s ${STATESETUP}/passt_2.socket -P ${STATESETUP}/passt_2.pid -f ${__opts} -t 10004 -u 10004" + context_run_bg passt_2 "strace -o ${LOGDIR}/passt_2.strace ./passt -s ${STATESETUP}/passt_2.socket -P ${STATESETUP}/passt_2.pid -f ${__opts} -t 10004 -u 10004" wait_for [ -f "${STATESETUP}/passt_2.pid" ] context_run_bg passt_repair_2 "./passt-repair ${STATESETUP}/passt_2.socket.repair" diff --git a/test/migrate/rampstream_in b/test/migrate/rampstream_in index a37606f0..7c8892af 100644 --- a/test/migrate/rampstream_in +++ b/test/migrate/rampstream_in @@ -29,9 +29,10 @@ check [ -n "__IFNAME1__" ] test DHCP: address guest1 ip link set dev __IFNAME1__ up guest1 /sbin/dhclient -4 __IFNAME1__ -g1out ADDR1 ip -j -4 addr show|jq -rM '.[] | select(.ifname == "__IFNAME1__").addr_info[0].local' -hout HOST_ADDR ip -j -4 addr show|jq -rM '.[] | select(.ifname == "__HOST_IFNAME__").addr_info[0].local' -check [ "__ADDR1__" = "__HOST_ADDR__" ] +#g1out ADDR1 ip -j -4 addr show|jq -rM '.[] | select(.ifname == "__IFNAME1__").addr_info[0].local' +#hout HOST_ADDR ip -j -4 addr show|jq -rM '.[] | select(.ifname == "__HOST_IFNAME__").addr_info[0].local' +#check [ "__ADDR1__" = "__HOST_ADDR__" ] +set ADDR1 127.0.0.1 test DHCPv6: address # Link is up now, wait for DAD to complete -- 2.48.1