Re: [PATCH RFC net-next] can: dev: can_skb_get_dll_len(): introduce function to get data length of frame in data link layer

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 12/15/20 2:30 PM, Marc Kleine-Budde wrote:
> For now I've selected the 21 bit CRC, for CAN-FD:
> 
>> #define CANFD_DLL_OVERHEAD_SFF DIV_ROUND_UP(61, 8)
> == 8 bytes
> 
> for CRC17 it would be 5 bits less => 56 bit => 7 bytes
> 
> 
>> #define CANFD_DLL_OVERHEAD_EFF DIV_ROUND_UP(80, 8)
> == 10 bytes
> 
> for CRC17 it would be 5 bits less => 75 bits => 8 bytes
> 
> I think that 1 bit is not worth the trouble.

s/bit/byte/

Marc

-- 
Pengutronix e.K.                 | Marc Kleine-Budde           |
Embedded Linux                   | https://www.pengutronix.de  |
Vertretung West/Dortmund         | Phone: +49-231-2826-924     |
Amtsgericht Hildesheim, HRA 2686 | Fax:   +49-5121-206917-5555 |

Attachment: signature.asc
Description: OpenPGP digital signature


[Index of Archives]     [Automotive Discussions]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]     [CAN Bus]

  Powered by Linux