freebsd-dev/sys/dev/hyperv
Sepherosa Ziehau a97fff1913 hyperv/hn: Fix/enhance receiving path when VF is activated.
- Update hn(4)'s stats properly for non-transparent mode VF.
- Allow BPF tapping to hn(4) for non-transparent mode VF.
- Don't setup mbuf hash, if 'options RSS' is set.
  In Azure, when VF is activated, TCP SYN and SYN|ACK go through hn(4)
  while the rest of segments and ACKs belonging to the same TCP 4-tuple
  go through the VF.  So don't setup mbuf hash, if a VF is activated
  and 'options RSS' is not enabled.  hn(4) and the VF may use neither
  the same RSS hash key nor the same RSS hash function, so the hash
  value for packets belonging to the same flow could be different!
- Disable LRO.
  hn(4) will only receive broadcast packets, multicast packets, TCP
  SYN and SYN|ACK (in Azure), LRO is useless for these packet types.
  For non-transparent, we definitely _cannot_ enable LRO at all, since
  the LRO flush will use hn(4) as the receiving interface; i.e.
  hn_ifp->if_input(hn_ifp, m).

While I'm here, remove unapplied comment and minor style change.

MFC after:	3 days
Sponsored by:	Microsoft
Differential Revision:	https://reviews.freebsd.org/D11978
2017-08-14 05:40:52 +00:00
..
include hyperv: Add method to read 64bit Hyper-V specific time value. 2017-01-09 03:38:41 +00:00
input hyperv/input: Remove unnecessary inclusion. 2017-06-30 03:01:22 +00:00
netvsc hyperv/hn: Fix/enhance receiving path when VF is activated. 2017-08-14 05:40:52 +00:00
pcib hyperv/pcib: use the device serial number as PCI domain 2017-06-08 12:11:30 +00:00
storvsc hyperv/storvsc: Force SPC3 for CDROM attached. 2017-07-20 07:13:26 +00:00
utilities hyperv/kvp: Use proper size macro for adapter id. 2017-08-03 01:44:40 +00:00
vmbus hyperv/vmbus: Reorganize vmbus device tree 2017-05-10 05:28:14 +00:00