summaryrefslogtreecommitdiffstats
path: root/sys/dev/em
diff options
context:
space:
mode:
authorpdeuskar <pdeuskar@FreeBSD.org>2003-12-02 22:13:08 +0000
committerpdeuskar <pdeuskar@FreeBSD.org>2003-12-02 22:13:08 +0000
commit53610e3cd2be6e7615ccc52ddb9f997276a0b1da (patch)
treefa77ee36fbc75768600fe61e6cf52e674b69481d /sys/dev/em
parent2b3284fdceb7532917cd125b8eeba48fc75c116d (diff)
downloadFreeBSD-src-53610e3cd2be6e7615ccc52ddb9f997276a0b1da.zip
FreeBSD-src-53610e3cd2be6e7615ccc52ddb9f997276a0b1da.tar.gz
Use if_flags to check for IFF_POLLING instead of if_ipending.
Submitted by: jroberson (Jeff Roberson) Approved by: re (scottl)
Diffstat (limited to 'sys/dev/em')
-rw-r--r--sys/dev/em/if_em.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/em/if_em.c b/sys/dev/em/if_em.c
index 4572e33..ecb1529 100644
--- a/sys/dev/em/if_em.c
+++ b/sys/dev/em/if_em.c
@@ -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;
}
OpenPOWER on IntegriCloud