Fixed build with DEVICE_POLLING.
This commit is contained in:
parent
6c79f78813
commit
59578ee028
@ -4796,7 +4796,7 @@ bge_tick(void *xsc)
|
||||
*/
|
||||
#ifdef DEVICE_POLLING
|
||||
/* In polling mode we poll link state in bge_poll(). */
|
||||
if (!(sc->bge_if_getcapenable(ifp) & IFCAP_POLLING))
|
||||
if (!(if_getcapenable(sc->bge_ifp) & IFCAP_POLLING))
|
||||
#endif
|
||||
{
|
||||
sc->bge_link_evt++;
|
||||
@ -5830,7 +5830,7 @@ bge_ioctl(if_t ifp, u_long command, caddr_t data)
|
||||
#ifdef DEVICE_POLLING
|
||||
if (mask & IFCAP_POLLING) {
|
||||
if (ifr->ifr_reqcap & IFCAP_POLLING) {
|
||||
error = ether_poll_register(bge_poll, ifp);
|
||||
error = ether_poll_register_drv(bge_poll, ifp);
|
||||
if (error)
|
||||
return (error);
|
||||
BGE_LOCK(sc);
|
||||
|
@ -1630,7 +1630,7 @@ nfe_free_tx_ring(struct nfe_softc *sc, struct nfe_tx_ring *ring)
|
||||
}
|
||||
|
||||
#ifdef DEVICE_POLLING
|
||||
static poll_handler_t nfe_poll;
|
||||
static poll_handler_drv_t nfe_poll;
|
||||
|
||||
|
||||
static int
|
||||
@ -1782,7 +1782,7 @@ nfe_ioctl(if_t ifp, u_long cmd, caddr_t data)
|
||||
#ifdef DEVICE_POLLING
|
||||
if ((mask & IFCAP_POLLING) != 0) {
|
||||
if ((ifr->ifr_reqcap & IFCAP_POLLING) != 0) {
|
||||
error = ether_poll_register(nfe_poll, ifp);
|
||||
error = ether_poll_register_drv(nfe_poll, ifp);
|
||||
if (error)
|
||||
break;
|
||||
NFE_LOCK(sc);
|
||||
|
Loading…
Reference in New Issue
Block a user