]> git.baikalelectronics.ru Git - kernel.git/commit
firewire: net: really fix maximum possible MTU
authorStefan Richter <stefanr@s5r6.in-berlin.de>
Sat, 29 Oct 2016 20:16:58 +0000 (22:16 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sun, 30 Oct 2016 03:00:45 +0000 (23:00 -0400)
commit25127ba9df4669520abd475e18584bcba171a273
tree895f146bbc449ebe9de704554565b4875fc1f107
parent6617c6ab150d7b38ea3df70a62d9a21195d5740a
firewire: net: really fix maximum possible MTU

The maximum unicast datagram size /without/ link fragmentation is
4096 - 4 = 4092 (max IEEE 1394 async payload size at >= S800 bus speed,
minus unfragmented encapssulation header).  Max broadcast datagram size
without fragmentation is 8 bytes less than that (due to GASP header).

The maximum datagram size /with/ link fragmentation is 0xfff = 4095
for unicast and broadcast.  This is because the RFC 2734 fragment
encapsulation header field for datagram size is only 12 bits wide.

Fixes: e27fa591332e('firewire: net: fix maximum possible MTU')
Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/firewire/net.c