]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/blame - include/net/lag.h
Merge tag 'gfs2-for-5.11' of git://git.kernel.org/pub/scm/linux/kernel/git/gfs2/linux...
[mirror_ubuntu-jammy-kernel.git] / include / net / lag.h
CommitLineData
eeed992b
PM
1/* SPDX-License-Identifier: GPL-2.0 */
2#ifndef _LINUX_IF_LAG_H
3#define _LINUX_IF_LAG_H
4
5#include <linux/netdevice.h>
6#include <linux/if_team.h>
7#include <net/bonding.h>
8
9static inline bool net_lag_port_dev_txable(const struct net_device *port_dev)
10{
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);
15}
16
17#endif /* _LINUX_IF_LAG_H */