svn commit: r314083 - stable/11/sys/dev/hyperv/netvsc
Dexuan Cui
dexuan at FreeBSD.org
Wed Feb 22 06:06:59 UTC 2017
Author: dexuan
Date: Wed Feb 22 06:06:58 2017
New Revision: 314083
URL: https://svnweb.freebsd.org/changeset/base/314083
Log:
MFC: 312685
Approved by: sephe(mentor)
r312685
hyperv/hn: remember the channel pointer in struct hn_rx_ring
This will be used by the coming NIC SR-IOV patch.
Reviewed by: sephe
Approved by: sephe (mentor)
Sponsored by: Microsoft
Differential Revision: https://reviews.freebsd.org/D8909
Modified:
stable/11/sys/dev/hyperv/netvsc/if_hn.c
stable/11/sys/dev/hyperv/netvsc/if_hnvar.h
Directory Properties:
stable/11/ (props changed)
Modified: stable/11/sys/dev/hyperv/netvsc/if_hn.c
==============================================================================
--- stable/11/sys/dev/hyperv/netvsc/if_hn.c Wed Feb 22 05:11:24 2017 (r314082)
+++ stable/11/sys/dev/hyperv/netvsc/if_hn.c Wed Feb 22 06:06:58 2017 (r314083)
@@ -4323,6 +4323,7 @@ hn_chan_attach(struct hn_softc *sc, stru
KASSERT((rxr->hn_rx_flags & HN_RX_FLAG_ATTACHED) == 0,
("RX ring %d already attached", idx));
rxr->hn_rx_flags |= HN_RX_FLAG_ATTACHED;
+ rxr->hn_chan = chan;
if (bootverbose) {
if_printf(sc->hn_ifp, "link RX ring %d to chan%u\n",
Modified: stable/11/sys/dev/hyperv/netvsc/if_hnvar.h
==============================================================================
--- stable/11/sys/dev/hyperv/netvsc/if_hnvar.h Wed Feb 22 05:11:24 2017 (r314082)
+++ stable/11/sys/dev/hyperv/netvsc/if_hnvar.h Wed Feb 22 06:06:58 2017 (r314083)
@@ -85,6 +85,8 @@ struct hn_rx_ring {
void *hn_br; /* TX/RX bufring */
struct hyperv_dma hn_br_dma;
+
+ struct vmbus_channel *hn_chan;
} __aligned(CACHE_LINE_SIZE);
#define HN_TRUST_HCSUM_IP 0x0001
More information about the svn-src-all
mailing list