Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 */
0002 #ifndef _LINUX_IF_LAG_H
0003 #define _LINUX_IF_LAG_H
0004 
0005 #include <linux/netdevice.h>
0006 #include <linux/if_team.h>
0007 #include <net/bonding.h>
0008 
0009 static inline bool net_lag_port_dev_txable(const struct net_device *port_dev)
0010 {
0011     if (netif_is_team_port(port_dev))
0012         return team_port_dev_txable(port_dev);
0013     else
0014         return bond_is_active_slave_dev(port_dev);
0015 }
0016 
0017 #endif /* _LINUX_IF_LAG_H */