hn_nvs.c (324466) | hn_nvs.c (324574) |
---|---|
1/*- 2 * Copyright (c) 2009-2012,2016-2017 Microsoft Corp. 3 * Copyright (c) 2010-2012 Citrix Inc. 4 * Copyright (c) 2012 NetApp Inc. 5 * All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions --- 17 unchanged lines hidden (view full) --- 26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 */ 28 29/* 30 * Network Virtualization Service. 31 */ 32 33#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 2009-2012,2016-2017 Microsoft Corp. 3 * Copyright (c) 2010-2012 Citrix Inc. 4 * Copyright (c) 2012 NetApp Inc. 5 * All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions --- 17 unchanged lines hidden (view full) --- 26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 */ 28 29/* 30 * Network Virtualization Service. 31 */ 32 33#include <sys/cdefs.h> |
34__FBSDID("$FreeBSD: stable/10/sys/dev/hyperv/netvsc/hn_nvs.c 324466 2017-10-10 03:29:36Z sephe $"); | 34__FBSDID("$FreeBSD: stable/10/sys/dev/hyperv/netvsc/hn_nvs.c 324574 2017-10-13 02:26:39Z sephe $"); |
35 36#include "opt_inet6.h" 37#include "opt_inet.h" 38 39#include <sys/param.h> 40#include <sys/kernel.h> 41#include <sys/limits.h> 42#include <sys/socket.h> --- 553 unchanged lines hidden (view full) --- 596 return (0); 597} 598 599int 600hn_nvs_attach(struct hn_softc *sc, int mtu) 601{ 602 int error; 603 | 35 36#include "opt_inet6.h" 37#include "opt_inet.h" 38 39#include <sys/param.h> 40#include <sys/kernel.h> 41#include <sys/limits.h> 42#include <sys/socket.h> --- 553 unchanged lines hidden (view full) --- 596 return (0); 597} 598 599int 600hn_nvs_attach(struct hn_softc *sc, int mtu) 601{ 602 int error; 603 |
604 if (hyperv_ver_major >= 10) { 605 /* UDP 4-tuple hash is enforced. */ 606 sc->hn_caps |= HN_CAP_UDPHASH; 607 } 608 |
|
604 /* 605 * Initialize NVS. 606 */ 607 error = hn_nvs_init(sc); 608 if (error) 609 return (error); 610 611 if (sc->hn_nvs_ver >= HN_NVS_VERSION_2) { --- 130 unchanged lines hidden --- | 609 /* 610 * Initialize NVS. 611 */ 612 error = hn_nvs_init(sc); 613 if (error) 614 return (error); 615 616 if (sc->hn_nvs_ver >= HN_NVS_VERSION_2) { --- 130 unchanged lines hidden --- |