The TQ (B.A.T.M.A.N. IV) and throughput values (B.A.T.M.A.N. V) are reduced when they are forwarded. One of the reductions is the penalty for traversing an additional hop. This hop_penalty (0-255) defines the percentage of reduction (0-100%). The BATADV_CMD_SET_MESH/BATADV_CMD_GET_MESH commands allow to set/get the configuration of this feature using the u8 BATADV_ATTR_HOP_PENALTY attribute.
Showing the changes to include/uapi/linux (1 of 2 files). Show all
Unified · Split
| @@ -443,6 +443,12 @@ enum batadv_nl_attrs { · 442 unmodified lines | |||
| 443 | */ | 443 | */ |
| 444 | BATADV_ATTR_GW_SEL_CLASS, | 444 | BATADV_ATTR_GW_SEL_CLASS, |
| 445 | 445 | ||
| 446 | /** | ||
| 447 | * @BATADV_ATTR_HOP_PENALTY: defines the penalty which will be applied | ||
| 448 | * to an originator message's tq-field on every hop. | ||
| 449 | */ | ||
| 450 | BATADV_ATTR_HOP_PENALTY, | ||
| 451 | |||
| 446 | /* add attributes above here, update the policy in netlink.c */ | 452 | /* add attributes above here, update the policy in netlink.c */ |
| 447 | 453 | ||
| 448 | /** | 454 | /** |