Staging
v0.5.1
https://github.com/torvalds/linux
Raw File
Tip revision: 815fb87b753055df2d9e50f6cd80eb10235fe3e9 authored by Linus Torvalds on 02 December 2023, 00:01:00 UTC
Merge tag 'pm-6.7-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm
Tip revision: 815fb87
lag.h
/* SPDX-License-Identifier: GPL-2.0 */
#ifndef _LINUX_IF_LAG_H
#define _LINUX_IF_LAG_H

#include <linux/netdevice.h>
#include <linux/if_team.h>
#include <net/bonding.h>

static inline bool net_lag_port_dev_txable(const struct net_device *port_dev)
{
	if (netif_is_team_port(port_dev))
		return team_port_dev_txable(port_dev);
	else
		return bond_is_active_slave_dev(port_dev);
}

#endif /* _LINUX_IF_LAG_H */
back to top