On Saturday, January 16, 2016 16:40:16 Marek Lindner wrote: > From: Antonio Quartulli <[email protected]> > > In case of wireless interface retrieve the throughput by > querying cfg80211. To perform this call a separate work > must be scheduled because the function may sleep and this > is not allowed within an RCU protected context (RCU in this > case is used to iterate over all the neighbours). > > Use ethtool to retrieve information about an Ethernet link > like HALF/FULL_DUPLEX and advertised bandwidth (e.g. > 100/10Mbps). > > The metric is updated each time a new ELP packet is sent, > this way it is possible to timely react to a metric > variation which can imply (for example) a neighbour > disconnection. > > Signed-off-by: Antonio Quartulli <[email protected]> > --- > compat.h | 21 +++++ > net/batman-adv/bat_v.c | 3 + > net/batman-adv/bat_v_elp.c | 207 > +++++++++++++++++++++++++++++++++++++++++++++ net/batman-adv/bat_v_elp.h > | 2 + > net/batman-adv/bat_v_ogm.c | 2 +- > net/batman-adv/main.h | 4 + > net/batman-adv/types.h | 16 ++++ > 7 files changed, 254 insertions(+), 1 deletion(-)
Applied in revision 5c32451. Thanks, Marek
signature.asc
Description: This is a digitally signed message part.
