net: add info struct for LAG changeupper
authorJiri Pirko <jiri@mellanox.com>
Thu, 3 Dec 2015 11:12:12 +0000 (12:12 +0100)
committerDavid S. Miller <davem@davemloft.net>
Thu, 3 Dec 2015 16:49:25 +0000 (11:49 -0500)
This struct will be shared by bonding and team to pass internal
information to notifier listeners.

Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/netdevice.h

index aea556c64f2c568972c7a8627c0b19bd657f02a3..3ab90ea0ed03429adf6aeeedd0e961be8a70b9b8 100644 (file)
@@ -2110,6 +2110,19 @@ struct pcpu_sw_netstats {
 #define netdev_alloc_pcpu_stats(type)                                  \
        __netdev_alloc_pcpu_stats(type, GFP_KERNEL);
 
+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 <linux/notifier.h>
 
 /* netdevice notifier chain. Please remember to update the rtnetlink