]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
net: add info struct for LAG changeupper
authorJiri Pirko <jiri@mellanox.com>
Thu, 3 Dec 2015 11:12:12 +0000 (12:12 +0100)
committerBrian Maly <brian.maly@oracle.com>
Tue, 20 Nov 2018 22:11:37 +0000 (17:11 -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>
(cherry picked from commit 764f5e544118508add420724789f46e04dba91eb)
Orabug: 28122104
Signed-off-by: Vijay Balakrishna <vijay.balakrishna@oracle.com>
Reviewed-by: Si-Wei Liu <si-wei.liu@oracle.com>
Reviewed-by: Shannon Nelson <shannon.nelson@oracle.com>
Signed-off-by: Brian Maly <brian.maly@oracle.com>
Conflicts:
include/linux/netdevice.h
(cherry-pick merge included unrelated lines immediately before
related code)

Signed-off-by: Brian Maly <brian.maly@oracle.com>
include/linux/netdevice.h

index a3f88e8ea0c5aac1c49b12ed2bca74f366420eb5..86642ed14c8417e1829995c95ffe7154d713fdb2 100644 (file)
@@ -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 <linux/notifier.h>
 
 /* netdevice notifier chain. Please remember to update the rtnetlink