Merge tag 'for-linus-20190706' of git://git.kernel.dk/linux-block
[linux/fpc-iii.git] / include / net / lag.h
blob95b880e6fdde32c146263b845fae9d71bfd5e8fc
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef _LINUX_IF_LAG_H
3 #define _LINUX_IF_LAG_H
5 #include <linux/netdevice.h>
6 #include <linux/if_team.h>
7 #include <net/bonding.h>
9 static inline bool net_lag_port_dev_txable(const struct net_device *port_dev)
11 if (netif_is_team_port(port_dev))
12 return team_port_dev_txable(port_dev);
13 else
14 return bond_is_active_slave_dev(port_dev);
17 #endif /* _LINUX_IF_LAG_H */