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
@ -2948,7 +2948,9 @@ err_tx_desc:
|
||||
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 @@ err_tx_desc:
|
||||
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…
x
Reference in New Issue
Block a user