--- zzzz-none-000/linux-4.9.279/include/net/bonding.h 2021-08-08 06:38:54.000000000 +0000 +++ puma7-atom-6591-750/linux-4.9.279/include/net/bonding.h 2023-02-08 11:43:43.000000000 +0000 @@ -165,6 +165,11 @@ #ifdef CONFIG_NET_POLL_CONTROLLER struct netpoll *np; #endif + struct device_attribute man_linkprop; /* For manual link status override */ + int man_speed; + int man_duplex; + int man_link; + struct delayed_work notify_work; struct kobject kobj; struct rtnl_link_stats64 slave_stats; @@ -598,6 +603,13 @@ int level); int bond_update_slave_arr(struct bonding *bond, struct slave *skipslave); void bond_slave_arr_work_rearm(struct bonding *bond, unsigned long delay); +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); #ifdef CONFIG_PROC_FS void bond_create_proc_entry(struct bonding *bond);