[Bug 203630] [Hyper-V] [nat] [tcp] 10.2 NAT bug in TCP stack or hyperv netsvc driver

2015-10-16 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=203630

--- Comment #9 from Wei Hu  ---
(In reply to Eddy from comment #8)

> This is what I did:
>
> - Create a clean new VM with FreeBSD 10.2 on the Hyper-V server.
> - Activated IP forwarding: sysctl net.inet.ip.forarding=1
> - On another computer (same LAN, running Windows 10): set the default gateway 
> to the new FreeBSD test VM. Ping/tracert to the internet work. TCP doesn't 
> work.

In above setting, how can pinging from Windows 10 machine to internet work? The
machine in the internet doesn't have routing knowledge to send the packet back
to Windows 10 client which is inside LAN. 

Are you using NAT on the FreeBSD 10.2 server? When I enabled the NAT,
everything seems working in on 10.2 as a gateway. 

So overall, I think the r285236 is the cause of the problem. However, since I
still cannot reproduce and r285236 is a big change, I cannot narrow down to
smaller part for sure. 

We come up with a suspecting code path. Attached is another patch which you can
test for us. Please apply this directly on clean 10.2 code (not on the patch I
attached earlier.) This new patch just disabled the checksum offloading. See if
this one can help solve the issue you are seeing.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
___
freebsd-emulation@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-emulation
To unsubscribe, send any mail to "freebsd-emulation-unsubscr...@freebsd.org"


[Bug 203630] [Hyper-V] [nat] [tcp] 10.2 NAT bug in TCP stack or hyperv netsvc driver

2015-10-16 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=203630

--- Comment #10 from Wei Hu  ---
Created attachment 162111
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=162111&action=edit
Only disable checksum offloading on 10.2

-- 
You are receiving this mail because:
You are on the CC list for the bug.
___
freebsd-emulation@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-emulation
To unsubscribe, send any mail to "freebsd-emulation-unsubscr...@freebsd.org"


[Bug 203630] [Hyper-V] [nat] [tcp] 10.2 NAT bug in TCP stack or hyperv netsvc driver

2015-10-16 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=203630

--- Comment #11 from Eddy  ---
I have a separate NAT router between the VM and the Internet, but not on the
FreeBSD 10.2 server:

PC-LAN-WIN10 <--> FREEBSD 10.2 VM  <--> NAT_ROUTER  <--> INTERNET

I added the NAT router as a default route on the FreeBSD test VM before doing
the tests:

# route add default 192.168.1.254

I just tried to build a new kernel with the last "disable_csum_20151016.patch"
you provided but I am stuck with an error:

/usr/src/sys/dev/hyperv/netvsc/hv_rndis_filter.c:828:11 error: unused variable
`dev` [-Werror,-Wunused-variable]
device_t dev = device->device;
 ^

-- 
You are receiving this mail because:
You are on the CC list for the bug.
___
freebsd-emulation@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-emulation
To unsubscribe, send any mail to "freebsd-emulation-unsubscr...@freebsd.org"