mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-03 12:35:02 +00:00
Small changes preparing for MFC, need to conditionalize
the buf_ring_free call, and lem is missing the WOL change put into em.
This commit is contained in:
parent
245c81a9ea
commit
46168c5453
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=208103
@ -2948,7 +2948,9 @@ em_allocate_queues(struct adapter *adapter)
|
||||
em_dma_free(adapter, &txr->txdma);
|
||||
free(adapter->rx_rings, M_DEVBUF);
|
||||
rx_fail:
|
||||
#if __FreeBSD_version >= 800000
|
||||
buf_ring_free(txr->br, M_DEVBUF);
|
||||
#endif
|
||||
free(adapter->tx_rings, M_DEVBUF);
|
||||
fail:
|
||||
return (error);
|
||||
|
@ -2969,7 +2969,9 @@ igb_allocate_queues(struct adapter *adapter)
|
||||
igb_dma_free(adapter, &txr->txdma);
|
||||
free(adapter->rx_rings, M_DEVBUF);
|
||||
rx_fail:
|
||||
#if __FreeBSD_version >= 800000
|
||||
buf_ring_free(txr->br, M_DEVBUF);
|
||||
#endif
|
||||
free(adapter->tx_rings, M_DEVBUF);
|
||||
tx_fail:
|
||||
free(adapter->queues, M_DEVBUF);
|
||||
|
@ -2422,10 +2422,10 @@ lem_setup_interface(device_t dev, struct adapter *adapter)
|
||||
ifp->if_capabilities |= IFCAP_POLLING;
|
||||
#endif
|
||||
|
||||
/* Enable All WOL methods by default */
|
||||
/* Enable only WOL MAGIC by default */
|
||||
if (adapter->wol) {
|
||||
ifp->if_capabilities |= IFCAP_WOL;
|
||||
ifp->if_capenable |= IFCAP_WOL;
|
||||
ifp->if_capenable |= IFCAP_WOL_MAGIC;
|
||||
}
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user