From 653a04d7cb4f02af7d3abfe74084e7c3a7b51aeb Mon Sep 17 00:00:00 2001 From: Jiri Pirko Date: Thu, 3 Dec 2015 12:12:12 +0100 Subject: [PATCH] net: add info struct for LAG changeupper This struct will be shared by bonding and team to pass internal information to notifier listeners. Signed-off-by: Jiri Pirko Signed-off-by: David S. Miller (cherry picked from commit 764f5e544118508add420724789f46e04dba91eb) Orabug: 28122104 Signed-off-by: Vijay Balakrishna Reviewed-by: Si-Wei Liu Reviewed-by: Shannon Nelson Signed-off-by: Brian Maly Conflicts: include/linux/netdevice.h (cherry-pick merge included unrelated lines immediately before related code) Signed-off-by: Brian Maly --- include/linux/netdevice.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h index a3f88e8ea0c5..86642ed14c84 100644 --- a/include/linux/netdevice.h +++ b/include/linux/netdevice.h @@ -2065,6 +2065,19 @@ struct pcpu_sw_netstats { pcpu_stats; \ }) +enum netdev_lag_tx_type { + NETDEV_LAG_TX_TYPE_UNKNOWN, + NETDEV_LAG_TX_TYPE_RANDOM, + NETDEV_LAG_TX_TYPE_BROADCAST, + NETDEV_LAG_TX_TYPE_ROUNDROBIN, + NETDEV_LAG_TX_TYPE_ACTIVEBACKUP, + NETDEV_LAG_TX_TYPE_HASH, +}; + +struct netdev_lag_upper_info { + enum netdev_lag_tx_type tx_type; +}; + #include /* netdevice notifier chain. Please remember to update the rtnetlink -- 2.50.1