if_getcapenable
if (ifp && if_getcapenable(ifp) & IFCAP_POLLING)
if (if_getcapenable(ifp) & IFCAP_POLLING) {
if (if_getcapenable(ifp) & IFCAP_RXCSUM) {
if (if_getcapenable(ifp) & IFCAP_POLLING) {
if (if_getcapenable(ifp) & IFCAP_POLLING)
mask = ifr->ifr_reqcap ^ if_getcapenable(ifp);
if ((if_getcapenable(ifp) & IFCAP_POLLING) != 0) {
if ((if_getcapenable(ifp) & IFCAP_TXCSUM) != 0)
if ((if_getcapenable(ifp) & IFCAP_WOL_MAGIC) != 0)
if ((if_getcapenable(ifp) & IFCAP_WOL_MAGIC) != 0)
if ((if_getcapenable(ifp) & IFCAP_WOL_MAGIC) != 0)
if ((if_getcapenable(ifp) & IFCAP_TXCSUM) != 0)
if ((if_getcapenable(ifp) & IFCAP_RXCSUM) != 0)
(if_getcapenable(ifp) & IFCAP_RXCSUM) != 0) {
if ((if_getcapenable(ifp) & IFCAP_RXCSUM) != 0)
mask = ifr->ifr_reqcap ^ if_getcapenable(ifp);
if ((if_getcapenable(ifp) & IFCAP_TXCSUM) != 0)
if ((if_getcapenable(ifp) & IFCAP_RXCSUM) != 0) {
if ((if_getcapenable(ifp) & IFCAP_TXCSUM) != 0)
if ((if_getcapenable(ifp) & IFCAP_RXCSUM) != 0)
if ((if_getcapenable(ifp) & IFCAP_TXCSUM) != 0 &&
mask = ifr->ifr_reqcap ^ if_getcapenable(ifp);
if ((if_getcapenable(ifp) & IFCAP_TXCSUM) != 0)
if ((if_getcapenable(ifp) & IFCAP_WOL) != 0) {
if ((if_getcapenable(ifp) & IFCAP_WOL_MAGIC) != 0)
if ((if_getcapenable(ifp) & IFCAP_WOL_MCAST) != 0)
if ((if_getcapenable(ifp) & IFCAP_WOL) != 0)
if ((if_getcapenable(ifp) & IFCAP_WOL) == 0) {
if ((if_getcapenable(ifp) & IFCAP_WOL) != 0)
if ((if_getcapenable(ifp) & IFCAP_WOL) != 0) {
if ((if_getcapenable(ifp) & IFCAP_WOL_MAGIC) != 0)
if ((if_getcapenable(ifp) & IFCAP_WOL_MCAST) != 0)
if ((if_getcapenable(ifp) & IFCAP_WOL) != 0)
if ((if_getcapenable(ifp) & IFCAP_WOL) != 0)
(if_getcapenable(ifp) & IFCAP_TSO4) != 0) {
mask = ifr->ifr_reqcap ^ if_getcapenable(ifp);
if ((if_getcapenable(ifp) & IFCAP_TXCSUM) != 0)
if ((if_getcapenable(ifp) & IFCAP_TSO4) != 0) {
if ((if_getcapenable(ifp) & IFCAP_VLAN_HWTAGGING) == 0)
if ((if_getcapenable(ifp) & IFCAP_VLAN_HWTAGGING) != 0 &&
if ((if_getcapenable(ifp) & IFCAP_VLAN_HWTAGGING) != 0)
if ((if_getcapenable(ifp) & IFCAP_WOL) != 0) {
if ((if_getcapenable(ifp) & IFCAP_WOL_MAGIC) != 0)
if ((if_getcapenable(ifp) & IFCAP_WOL_MCAST) != 0)
if ((if_getcapenable(ifp) & IFCAP_WOL) != 0)
if ((if_getcapenable(ifp) & IFCAP_WOL) == 0) {
if ((if_getcapenable(ifp) & IFCAP_WOL) != 0)
mask = ifr->ifr_reqcap ^ if_getcapenable(ifp);
if ((if_getcapenable(ifp) & IFCAP_TXCSUM) != 0)
if ((if_getcapenable(ifp) & IFCAP_TSO4) != 0)
if ((if_getcapenable(ifp) & IFCAP_VLAN_HWTAGGING) == 0)
if ((if_getcapenable(ifp) & IFCAP_VLAN_HWTAGGING) == 0 &&
if ((if_getcapenable(ifp) & IFCAP_RXCSUM) != 0 &&
if ((if_getcapenable(ifp) & IFCAP_VLAN_HWTAGGING) != 0 &&
if ((if_getcapenable(ifp) & IFCAP_VLAN_HWTAGGING) != 0)
if ((if_getcapenable(ifp) & IFCAP_WOL) != 0) {
if ((if_getcapenable(ifp) & IFCAP_WOL_MAGIC) != 0)
if ((if_getcapenable(ifp) & IFCAP_WOL_MCAST) != 0)
if ((if_getcapenable(ifp) & IFCAP_WOL) != 0) {
if ((if_getcapenable(ifp) & IFCAP_WOL) != 0)
if ((if_getcapenable(ifp) & IFCAP_WOL) == 0) {
mask = ifr->ifr_reqcap ^ if_getcapenable(ifp);
if ((if_getcapenable(ifp) & IFCAP_TXCSUM) != 0)
if ((if_getcapenable(ifp) & IFCAP_RXCSUM) != 0)
if ((if_getcapenable(ifp) & IFCAP_TSO4) != 0)
if ((if_getcapenable(ifp) & IFCAP_VLAN_HWTAGGING) == 0)
if ((if_getcapenable(ifp) & IFCAP_RXCSUM) != 0 &&
if ((if_getcapenable(ifp) & IFCAP_VLAN_HWTAGGING) != 0 &&
if ((if_getcapenable(ifp) & IFCAP_RXCSUM) != 0)
if ((if_getcapenable(ifp) & IFCAP_VLAN_HWTAGGING) != 0)
if ((if_getcapenable(ifp) & IFCAP_WOL) != 0) {
if ((if_getcapenable(ifp) & IFCAP_WOL) != 0)
if ((if_getcapenable(ifp) & IFCAP_VLAN_HWTAGGING) != 0 &&
if ((if_getcapenable(ifp) & IFCAP_VLAN_HWTAGGING) != 0)
mask = ifr->ifr_reqcap ^ if_getcapenable(ifp);
if (if_getcapenable(ifp) & IFCAP_VLAN_HWTAGGING)
if (if_getcapenable(ifp) & IFCAP_POLLING)
if (if_getcapenable(ifp) & IFCAP_POLLING) {
if (if_getcapenable(ifp) & IFCAP_VLAN_HWTAGGING &&
if (if_getcapenable(ifp) & IFCAP_RXCSUM)
if (if_getcapenable(ifp) & IFCAP_POLLING) {
if (!(if_getcapenable(sc->bge_ifp) & IFCAP_POLLING))
(if_getcapenable(ifp) & IFCAP_VLAN_MTU ? ETHER_VLAN_ENCAP_LEN : 0));
if_getcapenable(ifp) & IFCAP_TXCSUM) {
if (if_getcapenable(ifp) & IFCAP_POLLING) {
mask = ifr->ifr_reqcap ^ if_getcapenable(ifp);
if ((if_getcapenable(ifp) & IFCAP_TXCSUM) != 0)
if ((if_getcapenable(ifp) & IFCAP_TSO4) != 0)
if ((if_getcapenable(ifp) & IFCAP_VLAN_HWTAGGING) == 0)
if (ifp != NULL && if_getcapenable(ifp) & IFCAP_POLLING)
if (if_getcapenable(ifp) & IFCAP_POLLING) {
if (if_getcapenable(ifp) & IFCAP_POLLING) {
if (if_getcapenable(ifp) & IFCAP_POLLING)
!(if_getcapenable(ifp) & IFCAP_POLLING)) {
if_getcapenable(ifp) & IFCAP_POLLING) {
if (if_getcapenable(ifp) & IFCAP_RXCSUM) {
if (if_getcapenable(ifp) & IFCAP_VLAN_HWTAGGING &&
if ((if_getcapenable(ifp) & IFCAP_WOL_MAGIC) == 0)
if ((if_getcapenable(ifp) & IFCAP_WOL_UCAST) == 0)
if ((if_getcapenable(ifp) & IFCAP_WOL_MCAST) == 0)
if (!error && (if_getcapenable(ifp) & IFCAP_WOL))
if (if_getcapenable(sc->ifp) & IFCAP_POLLING)
if ((if_getcapenable(ifp) & IFCAP_WOL_MAGIC) != 0) {
if (if_getcapenable(ifp) & IFCAP_POLLING) {
(if_getcapenable(ifp) & IFCAP_RXCSUM) != 0) {
if ((if_getcapenable(ifp) & IFCAP_RXCSUM) != 0)
if ((if_getcapenable(ifp) & IFCAP_VLAN_HWTAGGING) != 0 &&
(if_getcapenable(ifp) & IFCAP_RXCSUM) != 0) ? 1 : 0;
(if_getcapenable(ifp) & IFCAP_VLAN_HWTAGGING) != 0) ? 1 : 0;
if (if_getcapenable(ifp) & IFCAP_POLLING )
mask = if_getcapenable(ifp) ^ ifr->ifr_reqcap;
if ((if_getcapenable(ifp) & IFCAP_TXCSUM) != 0)
if ((if_getcapenable(ifp) & IFCAP_TSO4) != 0)
if ((if_getcapenable(ifp) & IFCAP_VLAN_HWTAGGING) == 0)
if (if_getcapenable(ifp) & IFCAP_RXCSUM) {
if_getcapenable(ifp) & IFCAP_HWCSUM_IPV6)
if ((if_getcapenable(ifp) & IFCAP_VLAN_HWFILTER) &&
if (if_getcapenable(ifp) & IFCAP_VLAN_HWTAGGING &&
if ((if_getcapenable(ifp) & IFCAP_WOL_MAGIC) == 0)
if ((if_getcapenable(ifp) & IFCAP_WOL_UCAST) == 0)
if ((if_getcapenable(ifp) & IFCAP_WOL_MCAST) == 0)
if (!error && (if_getcapenable(ifp) & IFCAP_WOL))
if ((if_getcapenable(ifp) & IFCAP_WOL_MAGIC) != 0) {
if ((if_getcapenable(ifp) & IFCAP_WOL) != 0)
if ((if_getcapenable(ifp) & IFCAP_WOL) == 0) {
mask = ifr->ifr_reqcap ^ if_getcapenable(ifp);
if ((IFCAP_TXCSUM & if_getcapenable(ifp)) != 0)
if ((if_getcapenable(ifp) & IFCAP_RXCSUM) != 0)
if ((IFCAP_TSO4 & if_getcapenable(ifp)) != 0)
if ((if_getcapenable(ifp) & IFCAP_RXCSUM) != 0 &&
if ((if_getcapenable(ifp) & IFCAP_VLAN_HWTAGGING) != 0 &&
if ((if_getcapenable(ifp) & IFCAP_RXCSUM) != 0)
if ((if_getcapenable(ifp) & IFCAP_VLAN_HWTAGGING) != 0)
mask = ifr->ifr_reqcap ^ if_getcapenable(ifp);
if ((IFCAP_TXCSUM & if_getcapenable(ifp)) != 0)
if ((IFCAP_TSO4 & if_getcapenable(ifp)) != 0)
if ((IFCAP_VLAN_HWTAGGING & if_getcapenable(ifp)) == 0)
(if_getcapenable(ifp) & IFCAP_VLAN_HWTAGGING) != 0)
if ((if_getcapenable(ifp) & IFCAP_RXCSUM) != 0)
(if_getcapenable(ifp) & IFCAP_VLAN_HWTAGGING) != 0) {
(if_getcapenable(ifp) & IFCAP_VLAN_HWTAGGING) != 0)
if ((if_getcapenable(ifp) & IFCAP_RXCSUM) != 0)
(if_getcapenable(ifp) & IFCAP_VLAN_HWTAGGING) != 0) {
(if_getcapenable(ifp) & IFCAP_RXCSUM) != 0)
if ((if_getcapenable(ifp) & IFCAP_VLAN_HWTAGGING) != 0) {
(if_getcapenable(sc_if->msk_ifp) & IFCAP_RXCSUM) != 0) {
(if_getcapenable(sc_if->msk_ifp) & IFCAP_RXCSUM) != 0) {
(if_getcapenable(sc_if->msk_ifp) & IFCAP_RXCSUM) != 0) {
mask = ifr->ifr_reqcap ^ if_getcapenable(ifp);
if ((if_getcapenable(ifp) & IFCAP_TXCSUM) != 0)
if ((IFCAP_TSO4 & if_getcapenable(ifp)) != 0)
if ((if_getcapenable(ifp) & IFCAP_VLAN_HWTAGGING) == 0)
if ((if_getcapenable(ifp) & IFCAP_RXCSUM) == 0) {
if ((if_getcapenable(ifp) & IFCAP_VLAN_HWTAGGING) != 0)
if (if_getcapenable(ifp) & IFCAP_POLLING) {
(if_getcapenable(ifp) & IFCAP_VLAN_HWTAGGING) != 0) {
if ((if_getcapenable(ifp) & IFCAP_RXCSUM) != 0) {
(if_getcapenable(ifp) & IFCAP_VLAN_HWTAGGING) != 0) {
if ((if_getcapenable(ifp) & IFCAP_RXCSUM) != 0) {
if ((if_getcapenable(ifp) & IFCAP_RXCSUM) != 0)
if ((if_getcapenable(ifp) & IFCAP_VLAN_HWTAGGING) != 0)
if ((if_getcapenable(ifp) & IFCAP_VLAN_HWTAGGING) != 0)
if (if_getcapenable(ifp) & IFCAP_POLLING)
if ((if_getcapenable(ifp) & IFCAP_WOL_MAGIC) != 0)
if ((if_getcapenable(ifp) & IFCAP_WOL_MAGIC) != 0) {
if ((if_getcapenable(ifp) & IFCAP_WOL) != 0)
if (ifp != NULL && if_getcapenable(ifp) & IFCAP_POLLING)
if (if_getcapenable(ifp) & IFCAP_POLLING) {
if (if_getcapenable(ifp) & IFCAP_POLLING)
if (if_getcapenable(ifp) & IFCAP_POLLING)
mask = ifr->ifr_reqcap ^ if_getcapenable(ifp);
!(if_getcapenable(ifp) & IFCAP_POLLING)) {
if_getcapenable(ifp) & IFCAP_POLLING) {
if ((if_getcapenable(ifp) & IFCAP_WOL) != 0)
if ((if_getcapenable(ifp) & IFCAP_WOL_MAGIC) != 0)
if ((if_getcapenable(ifp) & IFCAP_WOL_UCAST) != 0)
if ((if_getcapenable(ifp) & IFCAP_WOL_MCAST) != 0)
if ((if_getcapenable(ifp) & IFCAP_WOL) != 0)
if ((if_getcapenable(ifp) & IFCAP_WOL) != 0)
if (if_getcapenable(ifp) & IFCAP_POLLING)
if (if_getcapenable(ifp) & IFCAP_POLLING)
if (if_getcapenable(ifp) & IFCAP_RXCSUM) {
if (if_getcapenable(ifp) & IFCAP_POLLING) {
if (if_getcapenable(ifp) & IFCAP_POLLING) {
if (if_getcapenable(ifp) & IFCAP_NETMAP) {
if ((if_getcapenable(ifp) & IFCAP_RXCSUM) != 0)
if ((if_getcapenable(ifp) & IFCAP_VLAN_HWTAGGING) != 0)
if (if_getmtu(ifp) > RL_TSO_MTU && (if_getcapenable(ifp) & IFCAP_TSO4) != 0) {
if (if_getcapenable(ifp) & IFCAP_POLLING)
(if_getcapenable(ifp) & IFCAP_TSO4) != 0) {
mask = ifr->ifr_reqcap ^ if_getcapenable(ifp);
if ((if_getcapenable(ifp) & IFCAP_TXCSUM) != 0)
if ((IFCAP_TSO4 & if_getcapenable(ifp)) != 0)
(if_getcapenable(ifp) & IFCAP_TSO4) != 0) {
if ((if_getcapenable(ifp) & IFCAP_VLAN_HWTAGGING) == 0)
if ((if_getcapenable(ifp) & IFCAP_WOL) != 0) {
if ((if_getcapenable(ifp) & IFCAP_WOL) != 0)
if ((if_getcapenable(ifp) & IFCAP_WOL_MAGIC) != 0)
if ((if_getcapenable(ifp) & IFCAP_WOL_UCAST) != 0)
if ((if_getcapenable(ifp) & IFCAP_WOL_MCAST) != 0)
if ((if_getcapenable(ifp) & IFCAP_WOL) != 0)
if ((if_getcapenable(ifp) & IFCAP_WOL) == 0 &&
if ((if_getcapenable(ifp) & IFCAP_WOL) != 0)
if ((if_getcapenable(ifp) & IFCAP_RXCSUM) != 0) {
if ((if_getcapenable(ifp) & IFCAP_VLAN_HWTAGGING) != 0 &&
mask = ifr->ifr_reqcap ^ if_getcapenable(ifp);
if ((if_getcapenable(ifp) & IFCAP_TXCSUM) != 0)
if ((if_getcapenable(ifp) & IFCAP_TSO4) != 0)
if ((if_getcapenable(ifp) & IFCAP_VLAN_HWTAGGING) == 0)
if ((if_getcapenable(ifp) & IFCAP_VLAN_HWTAGGING) != 0)
mask = ifr->ifr_reqcap ^ if_getcapenable(ifp);
if ((if_getcapenable(ifp) & IFCAP_TXCSUM) != 0)
if ((if_getcapenable(ifp) & IFCAP_RXCSUM) != 0)
if ((if_getcapenable(ifp) & IFCAP_RXCSUM) != 0)
if (if_getcapenable(ifp) & IFCAP_POLLING) {
if ((if_getcapenable(ifp) & IFCAP_RXCSUM) != 0 &&
if ((if_getcapenable(ifp) & IFCAP_POLLING) != 0)
if (if_getcapenable(ifp) & IFCAP_POLLING)
mask = ifr->ifr_reqcap ^ if_getcapenable(ifp);
if ((IFCAP_TXCSUM & if_getcapenable(ifp)) != 0)
if ((if_getcapenable(ifp) & IFCAP_WOL_UCAST) != 0)
if ((if_getcapenable(ifp) & IFCAP_WOL_MAGIC) != 0)
if ((if_getcapenable(ifp) & IFCAP_WOL) != 0) {
if ((if_getcapenable(ifp) & IFCAP_WOL) != 0)
if (ifp != NULL && if_getcapenable(ifp) & IFCAP_POLLING)
if (if_getcapenable(ifp) & (IFCAP_RXCSUM | IFCAP_RXCSUM_IPV6))
if (if_getcapenable(ifp) & IFCAP_VLAN_HWTAGGING)
if (if_getcapenable(ifp) & IFCAP_LRO)
if (if_getcapenable(ifp) & IFCAP_VLAN_HWFILTER)
if (if_getcapenable(ifp) & IFCAP_POLLING)
if ((if_getcapenable(ifp) & IFCAP_RXCSUM) != 0 &&
if (if_getcapenable(ifp) & IFCAP_POLLING) {
if (if_getcapenable(ifp) & IFCAP_POLLING) {
mask = ifr->ifr_reqcap ^ if_getcapenable(ifp);
if ((if_getcapenable(ifp) & IFCAP_TXCSUM) != 0)
if ((if_getcapenable(ifp) & IFCAP_WOL) != 0) {
if ((if_getcapenable(ifp) & IFCAP_WOL_UCAST) != 0)
if ((if_getcapenable(ifp) & IFCAP_WOL_MAGIC) != 0)
if ((if_getcapenable(ifp) & IFCAP_WOL_MCAST) != 0)
if ((if_getcapenable(ifp) & IFCAP_WOL) != 0)
if ((if_getcapenable(ifp) & IFCAP_VLAN_HWTAGGING) != 0)
if (if_getcapenable(ifp) & IFCAP_TXCSUM)
if (if_getcapenable(ifp) & IFCAP_TXCSUM_IPV6)
if (if_getcapenable(ifp) & IFCAP_TSO4)
if (if_getcapenable(ifp) & IFCAP_TSO6)
lro_enabled = (if_getcapenable(ifp) & IFCAP_LRO);
if ((if_getcapenable(ifp) & IFCAP_NETMAP) &&
oldmask = if_getcapenable(ifp);
int if_getcapenable(const if_t ifp);