Use if_flags to check for IFF_POLLING instead of if_ipending.

Submitted by:	jroberson (Jeff Roberson)
Approved by:	re (scottl)
This commit is contained in:
pdeuskar 2003-12-02 22:13:08 +00:00
parent 2b3284fdce
commit 53610e3cd2

View File

@ -712,7 +712,7 @@ em_ioctl(struct ifnet *ifp, u_long command, caddr_t data)
em_initialize_receive_unit(adapter);
}
#ifdef DEVICE_POLLING
if (!(ifp->if_ipending & IFF_POLLING))
if (!(ifp->if_flags & IFF_POLLING))
#endif
em_enable_intr(adapter);
EM_UNLOCK(adapter);
@ -852,7 +852,7 @@ em_init_locked(struct adapter * adapter)
* Only enable interrupts if we are not polling, make sure
* they are off otherwise.
*/
if (ifp->if_ipending & IFF_POLLING)
if (ifp->if_flags & IFF_POLLING)
em_disable_intr(adapter);
else
#endif /* DEVICE_POLLING */
@ -936,7 +936,7 @@ em_intr(void *arg)
ifp = &adapter->interface_data.ac_if;
#ifdef DEVICE_POLLING
if (ifp->if_ipending & IFF_POLLING) {
if (ifp->if_flags & IFF_POLLING) {
EM_UNLOCK(adapter);
return;
}