--- zzzz-none-000/linux-5.15.111/include/net/bonding.h 2023-05-11 14:00:40.000000000 +0000 +++ puma7-atom-6670-761/linux-5.15.111/include/net/bonding.h 2024-02-07 10:23:27.000000000 +0000 @@ -176,6 +176,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; @@ -660,6 +665,13 @@ int bond_update_slave_arr(struct bonding *bond, struct slave *skipslave); void bond_slave_arr_work_rearm(struct bonding *bond, unsigned long delay); void bond_work_init_all(struct bonding *bond); +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);