From: Andre Naujoks Date: Fri, 13 Sep 2013 17:37:13 +0000 (+0200) Subject: slcan: rewrite of slc_bump and slc_encaps X-Git-Tag: v3.12-rc4~30^2~57 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=87397fe10db0e7ee85041eee5a40052cab66aaff;p=pandora-kernel.git slcan: rewrite of slc_bump and slc_encaps The old implementation was heavy on str* functions and sprintf calls. This version is more manual, but faster. Profiling just the printing of a 3 char CAN-id resulted in 60 instructions for the manual method and over 2000 for the sprintf method. Bear in mind the profiling was done against libc and not the kernel sprintf. Together with this rewrite an issue with sending and receiving of RTR frames has been fixed by Oliver for the cases that the DLC is not zero. Signed-off-by: Andre Naujoks Tested-by: Oliver Hartkopp Acked-by: Oliver Hartkopp Acked-by: Marc Kleine-Budde Signed-off-by: David S. Miller --- Reading git-diff-tree failed