]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blobdiff - drivers/net/bonding/bonding.h
bonding: replace SLAVE_IS_OK() with bond_slave_can_tx()
[mirror_ubuntu-bionic-kernel.git] / drivers / net / bonding / bonding.h
index 60ffd57cf625a7e29e6430e6a0ab0721f5d9ebbb..44334b3d3b8844a2d71ceac284ff31b4d03a46ef 100644 (file)
 
 #define BOND_DEFAULT_MIIMON    100
 
-/*
- * Checks whether slave is ready for transmit.
- */
-#define SLAVE_IS_OK(slave)                             \
-                   (((slave)->dev->flags & IFF_UP)  && \
-                    netif_running((slave)->dev)     && \
-                    ((slave)->link == BOND_LINK_UP) && \
-                    bond_is_active_slave(slave))
-
 /*
  * Less bad way to call ioctl from within the kernel; this needs to be
  * done some other way to get the call out of interrupt context.