/kernel/linux/linux-5.10/net/batman-adv/ |
H A D | bat_v_elp.c | 52 msecs = atomic_read(&hard_iface->bat_v.elp_interval) - BATADV_JITTER; in batadv_v_elp_start_timer() 55 queue_delayed_work(batadv_event_workqueue, &hard_iface->bat_v.elp_wq, in batadv_v_elp_start_timer() 78 throughput = atomic_read(&hard_iface->bat_v.throughput_override); in batadv_v_elp_get_throughput() 134 hard_iface->bat_v.flags |= BATADV_FULL_DUPLEX; in batadv_v_elp_get_throughput() 136 hard_iface->bat_v.flags &= ~BATADV_FULL_DUPLEX; in batadv_v_elp_get_throughput() 144 if (!(hard_iface->bat_v.flags & BATADV_WARNING_DEFAULT)) { in batadv_v_elp_get_throughput() 150 hard_iface->bat_v.flags |= BATADV_WARNING_DEFAULT; in batadv_v_elp_get_throughput() 170 bat_v); in batadv_v_elp_throughput_metric_update() 172 ewma_throughput_add(&neigh->bat_v.throughput, in batadv_v_elp_throughput_metric_update() 213 last_tx_diff = jiffies_to_msecs(jiffies - neigh->bat_v in batadv_v_elp_wifi_neigh_probe() 254 struct batadv_hard_iface_bat_v *bat_v; batadv_v_elp_periodic_work() local [all...] |
H A D | bat_v_ogm.c | 93 queue_delayed_work(batadv_event_workqueue, &hard_iface->bat_v.aggr_wq, in batadv_v_ogm_start_queue_timer() 107 if (delayed_work_pending(&bat_priv->bat_v.ogm_wq)) in batadv_v_ogm_start_timer() 112 queue_delayed_work(batadv_event_workqueue, &bat_priv->bat_v.ogm_wq, in batadv_v_ogm_start_timer() 158 * Caller needs to hold the hard_iface->bat_v.aggr_list.lock. 169 lockdep_assert_held(&hard_iface->bat_v.aggr_list.lock); in batadv_v_ogm_queue_left() 171 return hard_iface->bat_v.aggr_len + ogm_len <= max; in batadv_v_ogm_queue_left() 180 * Caller needs to hold the hard_iface->bat_v.aggr_list.lock. 184 lockdep_assert_held(&hard_iface->bat_v.aggr_list.lock); in batadv_v_ogm_aggr_list_free() 186 __skb_queue_purge(&hard_iface->bat_v.aggr_list); in batadv_v_ogm_aggr_list_free() 187 hard_iface->bat_v in batadv_v_ogm_aggr_list_free() 369 struct batadv_priv_bat_v *bat_v; batadv_v_ogm_send() local [all...] |
H A D | bat_v.c | 7 #include "bat_v.h" 117 ewma_throughput_init(&hardif_neigh->bat_v.throughput); in batadv_v_hardif_neigh_init() 118 INIT_WORK(&hardif_neigh->bat_v.metric_work, in batadv_v_hardif_neigh_init() 146 n_ifinfo->bat_v.throughput / 10, in batadv_v_orig_print_neigh() 147 n_ifinfo->bat_v.throughput % 10); in batadv_v_orig_print_neigh() 167 throughput = ewma_throughput_read(&hardif_neigh->bat_v.throughput); in batadv_v_hardif_neigh_print() 226 throughput = ewma_throughput_read(&hardif_neigh->bat_v.throughput); in batadv_v_neigh_dump_neigh() 387 n_ifinfo->bat_v.throughput / 10, in batadv_v_orig_print() 388 n_ifinfo->bat_v.throughput % 10, in batadv_v_orig_print() 439 throughput = n_ifinfo->bat_v in batadv_v_orig_dump_subentry() [all...] |
H A D | types.h | 221 /** @bat_v: per hard-interface B.A.T.M.A.N. V data */ 222 struct batadv_hard_iface_bat_v bat_v; member 636 /** @bat_v: B.A.T.M.A.N. V private data */ 637 struct batadv_hardif_neigh_node_bat_v bat_v; member 737 /** @bat_v: B.A.T.M.A.N. V private data */ 738 struct batadv_neigh_ifinfo_bat_v bat_v; member 1772 /** @bat_v: B.A.T.M.A.N. V per soft-interface private data */ 1773 struct batadv_priv_bat_v bat_v; member
|
H A D | Makefile | 9 batman-adv-$(CONFIG_BATMAN_ADV_BATMAN_V) += bat_v.o
|
H A D | sysfs.c | 1155 old_tp_override = atomic_read(&hard_iface->bat_v.throughput_override); in batadv_store_throughput_override() 1165 atomic_set(&hard_iface->bat_v.throughput_override, tp_override); in batadv_store_throughput_override() 1191 tp_override = atomic_read(&hard_iface->bat_v.throughput_override); in batadv_show_throughput_override() 1204 BATADV_ATTR_HIF_UINT(elp_interval, bat_v.elp_interval, 0644,
|
H A D | netlink.c | 838 atomic_read(&hard_iface->bat_v.elp_interval))) in batadv_netlink_hardif_fill() 842 atomic_read(&hard_iface->bat_v.throughput_override))) in batadv_netlink_hardif_fill() 943 atomic_set(&hard_iface->bat_v.elp_interval, nla_get_u32(attr)); in batadv_netlink_set_hardif() 949 atomic_set(&hard_iface->bat_v.throughput_override, in batadv_netlink_set_hardif()
|
H A D | send.c | 153 hardif_neigh->bat_v.last_unicast_tx = jiffies; in batadv_send_unicast_skb()
|
/kernel/linux/linux-6.6/net/batman-adv/ |
H A D | bat_v_elp.c | 52 msecs = atomic_read(&hard_iface->bat_v.elp_interval) - BATADV_JITTER; in batadv_v_elp_start_timer() 55 queue_delayed_work(batadv_event_workqueue, &hard_iface->bat_v.elp_wq, in batadv_v_elp_start_timer() 78 throughput = atomic_read(&hard_iface->bat_v.throughput_override); in batadv_v_elp_get_throughput() 133 hard_iface->bat_v.flags |= BATADV_FULL_DUPLEX; in batadv_v_elp_get_throughput() 135 hard_iface->bat_v.flags &= ~BATADV_FULL_DUPLEX; in batadv_v_elp_get_throughput() 143 if (!(hard_iface->bat_v.flags & BATADV_WARNING_DEFAULT)) { in batadv_v_elp_get_throughput() 149 hard_iface->bat_v.flags |= BATADV_WARNING_DEFAULT; in batadv_v_elp_get_throughput() 169 bat_v); in batadv_v_elp_throughput_metric_update() 171 ewma_throughput_add(&neigh->bat_v.throughput, in batadv_v_elp_throughput_metric_update() 212 last_tx_diff = jiffies_to_msecs(jiffies - neigh->bat_v in batadv_v_elp_wifi_neigh_probe() 253 struct batadv_hard_iface_bat_v *bat_v; batadv_v_elp_periodic_work() local [all...] |
H A D | bat_v_ogm.c | 93 queue_delayed_work(batadv_event_workqueue, &hard_iface->bat_v.aggr_wq, in batadv_v_ogm_start_queue_timer() 107 if (delayed_work_pending(&bat_priv->bat_v.ogm_wq)) in batadv_v_ogm_start_timer() 112 queue_delayed_work(batadv_event_workqueue, &bat_priv->bat_v.ogm_wq, in batadv_v_ogm_start_timer() 158 * Caller needs to hold the hard_iface->bat_v.aggr_list.lock. 169 lockdep_assert_held(&hard_iface->bat_v.aggr_list.lock); in batadv_v_ogm_queue_left() 171 return hard_iface->bat_v.aggr_len + ogm_len <= max; in batadv_v_ogm_queue_left() 180 * Caller needs to hold the hard_iface->bat_v.aggr_list.lock. 184 lockdep_assert_held(&hard_iface->bat_v.aggr_list.lock); in batadv_v_ogm_aggr_list_free() 186 __skb_queue_purge(&hard_iface->bat_v.aggr_list); in batadv_v_ogm_aggr_list_free() 187 hard_iface->bat_v in batadv_v_ogm_aggr_list_free() 369 struct batadv_priv_bat_v *bat_v; batadv_v_ogm_send() local [all...] |
H A D | bat_v.c | 7 #include "bat_v.h" 115 ewma_throughput_init(&hardif_neigh->bat_v.throughput); in batadv_v_hardif_neigh_init() 116 INIT_WORK(&hardif_neigh->bat_v.metric_work, in batadv_v_hardif_neigh_init() 138 throughput = ewma_throughput_read(&hardif_neigh->bat_v.throughput); in batadv_v_neigh_dump_neigh() 284 throughput = n_ifinfo->bat_v.throughput * 100; in batadv_v_orig_dump_subentry() 467 ret = ifinfo1->bat_v.throughput - ifinfo2->bat_v.throughput; in batadv_v_neigh_cmp() 493 threshold = ifinfo1->bat_v.throughput / 4; in batadv_v_neigh_is_sob() 494 threshold = ifinfo1->bat_v.throughput - threshold; in batadv_v_neigh_is_sob() 496 ret = ifinfo2->bat_v in batadv_v_neigh_is_sob() [all...] |
H A D | types.h | 217 /** @bat_v: per hard-interface B.A.T.M.A.N. V data */ 218 struct batadv_hard_iface_bat_v bat_v; member 626 /** @bat_v: B.A.T.M.A.N. V private data */ 627 struct batadv_hardif_neigh_node_bat_v bat_v; member 727 /** @bat_v: B.A.T.M.A.N. V private data */ 728 struct batadv_neigh_ifinfo_bat_v bat_v; member 1744 /** @bat_v: B.A.T.M.A.N. V per soft-interface private data */ 1745 struct batadv_priv_bat_v bat_v; member
|
H A D | Makefile | 9 batman-adv-$(CONFIG_BATMAN_ADV_BATMAN_V) += bat_v.o
|
H A D | netlink.c | 838 atomic_read(&hard_iface->bat_v.elp_interval))) in batadv_netlink_hardif_fill() 842 atomic_read(&hard_iface->bat_v.throughput_override))) in batadv_netlink_hardif_fill() 943 atomic_set(&hard_iface->bat_v.elp_interval, nla_get_u32(attr)); in batadv_netlink_set_hardif() 949 atomic_set(&hard_iface->bat_v.throughput_override, in batadv_netlink_set_hardif()
|
H A D | send.c | 153 hardif_neigh->bat_v.last_unicast_tx = jiffies; in batadv_send_unicast_skb()
|