History

batman-adv: Add throughput_override hardif genl configuration

The B.A.T.M.A.N. V implementation tries to estimate the link throughput of an interface to an originator using different automatic methods. It is still possible to overwrite it the link throughput for all reachable originators via this interface. The BATADV_CMD_SET_HARDIF/BATADV_CMD_GET_HARDIF commands allow to set/get the configuration of this feature using the u32 BATADV_ATTR_THROUGHPUT_OVERRIDE attribute. The used unit is in 100 Kbit/s. If the value is set to 0 then batman-adv will try to estimate the throughput by itself.

Sven Eckelmann committed 7 years ago

Commit 9a182241 parent a1080082 files · +20 −0Browse files

Showing the changes to include/uapi/linux (1 of 2 files). Show all

Unified · Split

include/uapi/linux/batman_adv.h+8−0
@@ -483,6 +483,14 @@ enum batadv_nl_attrs { · 482 unmodified lines
483483 */
484484 BATADV_ATTR_ELP_INTERVAL,
485485
486+ /**
487+ * @BATADV_ATTR_THROUGHPUT_OVERRIDE: defines the throughput value to be
488+ * used by B.A.T.M.A.N. V when estimating the link throughput using
489+ * this interface. If the value is set to 0 then batman-adv will try to
490+ * estimate the throughput by itself.
491+ */
492+ BATADV_ATTR_THROUGHPUT_OVERRIDE,
493+
486494 /* add attributes above here, update the policy in netlink.c */
487495
488496 /**