hyperv/hn: Nuke unnecessary indirection.

MFC after:	1 week
Sponsored by:	Microsoft
Differential Revision:	https://reviews.freebsd.org/D8355
This commit is contained in:
Sepherosa Ziehau 2016-10-28 07:59:02 +00:00
parent 68468712a7
commit 96a98cbf14
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=308013
4 changed files with 3 additions and 12 deletions

View File

@ -358,6 +358,7 @@ static void hn_chan_detach(struct hn_softc *, struct vmbus_channel *);
static int hn_attach_subchans(struct hn_softc *);
static void hn_detach_allchans(struct hn_softc *);
static void hn_chan_callback(struct vmbus_channel *chan, void *xrxr);
static void hn_chan_rollup(struct hn_rx_ring *, struct hn_tx_ring *);
static void hn_set_ring_inuse(struct hn_softc *, int);
static int hn_synth_attach(struct hn_softc *, int);
static void hn_synth_detach(struct hn_softc *);
@ -1188,7 +1189,7 @@ hn_tx_done(struct hn_nvs_sendctx *sndc, struct hn_softc *sc,
}
}
void
static void
hn_chan_rollup(struct hn_rx_ring *rxr, struct hn_tx_ring *txr)
{
#if defined(INET) || defined(INET6)
@ -4213,7 +4214,7 @@ hn_chan_callback(struct vmbus_channel *chan, void *xrxr)
if (bufferlen > HN_PKTBUF_LEN)
free(buffer, M_DEVBUF);
hv_rf_channel_rollup(rxr, rxr->hn_txr);
hn_chan_rollup(rxr, rxr->hn_txr);
}
static void

View File

@ -1352,10 +1352,3 @@ hn_rndis_detach(struct hn_softc *sc)
/* Halt the RNDIS. */
hn_rndis_halt(sc);
}
void
hv_rf_channel_rollup(struct hn_rx_ring *rxr, struct hn_tx_ring *txr)
{
hn_chan_rollup(rxr, txr);
}

View File

@ -42,7 +42,5 @@ struct hn_rx_ring;
void hv_rf_on_receive(struct hn_softc *sc, struct hn_rx_ring *rxr,
const void *data, int dlen);
void hv_rf_channel_rollup(struct hn_rx_ring *rxr, struct hn_tx_ring *txr);
#endif /* __HV_RNDIS_FILTER_H__ */

View File

@ -258,7 +258,6 @@ int hn_rndis_set_rxfilter(struct hn_softc *sc, uint32_t filter);
int hn_rxpkt(struct hn_rx_ring *rxr, const void *data, int dlen,
const struct hn_recvinfo *info);
void hn_chan_rollup(struct hn_rx_ring *rxr, struct hn_tx_ring *txr);
void hn_link_status_update(struct hn_softc *sc);
void hn_network_change(struct hn_softc *sc);