summaryrefslogtreecommitdiffstats
path: root/sys/dev/hyperv/netvsc/hv_rndis_filter.c
diff options
context:
space:
mode:
authorsephe <sephe@FreeBSD.org>2016-10-17 09:31:49 +0000
committersephe <sephe@FreeBSD.org>2016-10-17 09:31:49 +0000
commit13092529164faa766825adfeaf306a922535dd21 (patch)
tree24332bee854bbf06a7258817ac40b947bab076bf /sys/dev/hyperv/netvsc/hv_rndis_filter.c
parent34045fe13ec84892dd8ab16b0963b87a5a0248c2 (diff)
downloadFreeBSD-src-13092529164faa766825adfeaf306a922535dd21.zip
FreeBSD-src-13092529164faa766825adfeaf306a922535dd21.tar.gz
MFC 305925,305926,305960
305925 hyperv/hn: Don't mess up RSS key and indirect table after attachment. Sponsored by: Microsoft Differential Revision: https://reviews.freebsd.org/D7889 305926 hyperv/hn: Add sysctls to dynamic adjust RSS key and indirect table Sponsored by: Microsoft Differential Revision: https://reviews.freebsd.org/D7890 305960 hyperv/hn: Apply RSS indirect table fixup before configure RNDIS RSS. Sponsored by: Microsoft Differential Revision: https://reviews.freebsd.org/D7916
Diffstat (limited to 'sys/dev/hyperv/netvsc/hv_rndis_filter.c')
-rw-r--r--sys/dev/hyperv/netvsc/hv_rndis_filter.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/hyperv/netvsc/hv_rndis_filter.c b/sys/dev/hyperv/netvsc/hv_rndis_filter.c
index ff7a84c..72ab5ad 100644
--- a/sys/dev/hyperv/netvsc/hv_rndis_filter.c
+++ b/sys/dev/hyperv/netvsc/hv_rndis_filter.c
@@ -837,7 +837,7 @@ hn_rndis_conf_offload(struct hn_softc *sc)
}
int
-hn_rndis_conf_rss(struct hn_softc *sc)
+hn_rndis_conf_rss(struct hn_softc *sc, uint16_t flags)
{
struct ndis_rssprm_toeplitz *rss = &sc->hn_rss;
struct ndis_rss_params *prm = &rss->rss_params;
@@ -858,6 +858,7 @@ hn_rndis_conf_rss(struct hn_softc *sc)
prm->ndis_hdr.ndis_type = NDIS_OBJTYPE_RSS_PARAMS;
prm->ndis_hdr.ndis_rev = NDIS_RSS_PARAMS_REV_2;
prm->ndis_hdr.ndis_size = sizeof(*rss);
+ prm->ndis_flags = flags;
prm->ndis_hash = NDIS_HASH_FUNCTION_TOEPLITZ |
NDIS_HASH_IPV4 | NDIS_HASH_TCP_IPV4 |
NDIS_HASH_IPV6 | NDIS_HASH_TCP_IPV6;
OpenPOWER on IntegriCloud