From: Oliver Hartkopp Date: Fri, 7 Mar 2014 08:23:41 +0000 (+0100) Subject: can: Unify MTU settings for CAN interfaces X-Git-Tag: v3.15-rc1~113^2~128^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c971fa2ae42e73e9ccc2f5e93f268c8742da4c5d;p=pandora-kernel.git can: Unify MTU settings for CAN interfaces CAN interfaces only support MTU values of 16 (CAN 2.0) and 72 (CAN FD). Setting the MTU to other values is pointless but it does not really hurt. With the introduction of the CAN FD support in drivers/net/can a new function to switch the MTU for CAN FD has been introduced. This patch makes use of this can_change_mtu() function to check for correct MTU settings also in legacy CAN (2.0) devices. Signed-off-by: Oliver Hartkopp Signed-off-by: Marc Kleine-Budde --- Reading git-diff-tree failed