summaryrefslogtreecommitdiff
path: root/include/uapi/linux/batman_adv.h
diff options
context:
space:
mode:
authorSven Eckelmann <sven@narfation.org>2018-11-23 15:26:14 +0300
committerSimon Wunderlich <sw@simonwunderlich.de>2019-02-09 16:28:15 +0300
commit6c57cde6800bae2361b8ac14a5924ffc592b3a90 (patch)
tree864e22c497dc98dde690197ecf16ee6f97f55b5f /include/uapi/linux/batman_adv.h
parentf75b56bc91122e2934e2cb458f98727c41d535c7 (diff)
downloadlinux-6c57cde6800bae2361b8ac14a5924ffc592b3a90.tar.xz
batman-adv: Add network_coding mesh genl configuration
The mesh interface can use (in an homogeneous mesh) network coding, a mechanism that aims to increase the overall network throughput by fusing multiple packets in one transmission. The BATADV_CMD_SET_MESH/BATADV_CMD_GET_MESH commands allow to set/get the configuration of this feature using the BATADV_ATTR_NETWORK_CODING_ENABLED attribute. Setting the u8 to zero will disable this feature and setting it to something else is enabling this feature. Signed-off-by: Sven Eckelmann <sven@narfation.org> Signed-off-by: Simon Wunderlich <sw@simonwunderlich.de>
Diffstat (limited to 'include/uapi/linux/batman_adv.h')
-rw-r--r--include/uapi/linux/batman_adv.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/uapi/linux/batman_adv.h b/include/uapi/linux/batman_adv.h
index 38caaaae8a05..a4239c147bde 100644
--- a/include/uapi/linux/batman_adv.h
+++ b/include/uapi/linux/batman_adv.h
@@ -464,6 +464,13 @@ enum batadv_nl_attrs {
*/
BATADV_ATTR_MULTICAST_FORCEFLOOD_ENABLED,
+ /**
+ * @BATADV_ATTR_NETWORK_CODING_ENABLED: whether Network Coding (using
+ * some magic to send fewer wifi packets but still the same content) is
+ * enabled or not.
+ */
+ BATADV_ATTR_NETWORK_CODING_ENABLED,
+
/* add attributes above here, update the policy in netlink.c */
/**