11 #include <linux/kernel.h>
12 #include <linux/types.h>
13 #include <linux/module.h>
15 #include <linux/errno.h>
16 #include <linux/netdevice.h>
17 #include <linux/if_team.h>
33 if (team_port_txable(port))
37 if (team_port_txable(port))
42 if (team_port_txable(port))
48 static bool rr_transmit(
struct team *team,
struct sk_buff *
skb)
54 port = team_get_port_by_index_rcu(team, port_index);
55 port = __get_first_port_up(team, port);
58 if (team_dev_queue_xmit(team, port, skb))
67 static int rr_port_enter(
struct team *team,
struct team_port *port)
72 static void rr_port_change_dev_addr(
struct team *team,
struct team_port *port)
78 .transmit = rr_transmit,
79 .port_enter = rr_port_enter,
80 .port_change_dev_addr = rr_port_change_dev_addr,
86 .priv_size =
sizeof(
struct rr_priv),
90 static int __init rr_init_module(
void)
95 static void __exit rr_cleanup_module(
void)