SVNews r324489

NOTE: This service is experimental and subject to change! Use at your own risk!

2017-10-10 08:32:03 - r324489 by sephe (Sepherosa Ziehau)

Complete list of files affected by revision r324489:

(Note: At the moment, these links point to ViewVC on svn.freebsd.org. They are probably slow. Do not overuse.)

  History   Contents   Diff   MODIFY   /head/sys/dev/hyperv/netvsc/hn_nvs.c  
  History   Contents   Diff   MODIFY   /head/sys/dev/hyperv/netvsc/if_hn.c  
  History   Contents   Diff   MODIFY   /head/sys/dev/hyperv/netvsc/if_hnvar.h  

Commit message:

hyperv/hn: Workaround erroneous hash type observed on WS2016.

Background:
- UDP 4-tuple hash type is unconditionally enabled in Hyper-V on WS2016,
  which is _not_ affected by NDIS_OBJTYPE_RSS_PARAMS.
- Non-fragment UDP/IPv4 datagrams' hash type is delivered to VM as
  TCP_IPV4.

Currently this erroneous behavior only applies to WS2016/Windows10.

Force l3/l4 protocol check, if the RXed packet's hash type is TCP_IPV4,
and the Hyper-V is running on WS2016/Windows10. If the RXed packet is
UDP datagram, adjust mbuf hash type to UDP_IPV4.

MFC after: 3 days
Sponsored by: Microsoft

 


Powered by Python FreeBSD support by secnetix GmbH & Co. KG

Page generated in 8 ms, 3 files printed. Current time is 2017-12-16 15:01:02. All times are in UTC/GMT.