--- zzzz-none-000/linux-4.9.279/include/net/bonding.h 2021-08-08 06:38:54.000000000 +0000 +++ puma7-arm-6591-750/linux-4.9.279/include/net/bonding.h 2023-02-08 10:58:16.000000000 +0000 @@ -12,6 +12,11 @@ * */ +/* + * Includes Intel Corporation's changes/modifications dated: 2017. + * Changed/modified portions - Copyright (c) 2017, Intel Corporation. + */ + #ifndef _NET_BONDING_H #define _NET_BONDING_H @@ -165,6 +170,13 @@ #ifdef CONFIG_NET_POLL_CONTROLLER struct netpoll *np; #endif + + struct device_attribute man_linkprop; + + int man_speed; + int man_duplex; + int man_link; + struct delayed_work notify_work; struct kobject kobj; struct rtnl_link_stats64 slave_stats; @@ -587,6 +599,14 @@ void bond_debug_unregister(struct bonding *bond); void bond_debug_reregister(struct bonding *bond); const char *bond_mode_name(int mode); + +ssize_t bonding_store_man_linkprop(struct device *dev, struct device_attribute *attr, + const char *buf, size_t count); +ssize_t bonding_show_man_linkprop(struct device *dev, struct device_attribute *attr, + char *buf); + +int bond_slave_netdev_event(unsigned long event, + struct net_device *slave_dev); void bond_setup(struct net_device *bond_dev); unsigned int bond_get_num_tx_queues(void); int bond_netlink_init(void);