Hi,
currently the mtu size of batman-adv soft-interfaces is limited to ETH_DATA_LEN (1500 bytes) in function batadv_hardif_min_mtu as far as I understand.
A comment in this function states that batman-adv "does not support MTUs bigger than ETH_DATA_LEN". Is there a specific reason for this or would it be possible to increase the MTU size to something like 1518 by simply replacing all limitations to ETH_DATA_LEN with a higher value?
Kind regards, Andreas
.................................................................. PHOENIX CONTACT ELECTRONICS GmbH
Sitz der Gesellschaft / registered office of the company: 31812 Bad Pyrmont USt-Id-Nr.: DE811742156 Amtsgericht Hannover HRB 100528 / district court Hannover HRB 100528 Geschäftsführer / Executive Board: Ulrich Leidecker, Christoph Leifer __________________________________________________________________ Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und vernichten Sie diese Mail. Das unerlaubte Kopieren, jegliche anderweitige Verwendung sowie die unbefugte Weitergabe dieser Mail ist nicht gestattet. ---------------------------------------------------------------------------------------------------- This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure, distribution or other use of the material or parts thereof is strictly forbidden. ___________________________________________________________________
On Dienstag, 20. Juni 2017 07:49:28 CEST Andreas Pape wrote:
Hi,
currently the mtu size of batman-adv soft-interfaces is limited to ETH_DATA_LEN (1500 bytes) in function batadv_hardif_min_mtu as far as I understand.
A comment in this function states that batman-adv "does not support MTUs bigger than ETH_DATA_LEN". Is there a specific reason for this or would it be possible to increase the MTU size to something like 1518 by simply replacing all limitations to ETH_DATA_LEN with a higher value?
There is no protocol specific reason why it is limited to 1500 bytes. But I think there is more needed than just changing all appearances of ETH_DATA_LEN. For example, at the moment we don't use more than 1500 and thus we didn't had to overwrite some of the special netdev variables for the maximum mtu. Maybe someone remebers the patches which wanted to touch this part of batman-adv but which were then dropped because batman-adv was only using an MTU of 1500 or less. Here is the revert of the change which tried that: https:// patchwork.kernel.org/patch/9390379/
There is most likely a lot more which will cause some kind of problem.
Kind regards, Sven
b.a.t.m.a.n@lists.open-mesh.org