Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
can: isotp: set max PDU size to 64 kByte
stable inclusion from stable-vundefined commit 93b1e3f3a263e9986e8f46d23f1a932d4e34adf4 category: bugfix bugzilla: https://gitee.com/openeuler/kernel/issues/I9CSYQ Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=93b1e3f3a263e9986e8f46d23f1a932d4e34adf4 -------------------------------- commit 9c0c191 upstream The reason to extend the max PDU size from 4095 Byte (12 bit length value) to a 32 bit value (up to 4 GByte) was to be able to flash 64 kByte bootloaders with a single ISO-TP PDU. The max PDU size in the Linux kernel implementation was set to 8200 Bytes to be able to test the length information escape sequence. It turns out that the demand for 64 kByte PDUs is real so the value for MAX_MSG_LENGTH is set to 66000 to be able to potentially add some checksums to the 65.536 Byte block. Link: linux-can/can-utils#347 (comment) Link: https://lore.kernel.org/all/20220309120416.83514-3-socketcan@hartkopp.net Signed-off-by: Oliver Hartkopp <socketcan@hartkopp.net> Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by: sanglipeng <sanglipeng1@jd.com>
- Loading branch information