On Thu, Nov 19, 2020 at 09:49:21AM +0100, Oliver Hartkopp wrote: > Add support for data length code modifications for Classical CAN. > > The netlink configuration interface always allowed to pass any value > that fits into a byte, therefore only the modification process had to be > extended to handle the raw DLC represenation of Classical CAN frames. > > When a DLC value from 0 .. F is provided for Classical CAN frame > modifications the 'len' value is modified as-is with the exception that > potentially existing 9 .. F DLC values in the len8_dlc element are moved > to the 'len' element for the modification operation by mod_retrieve_ccdlc(). > > After the modification the Classical CAN frame DLC information is brought > back into the correct format by mod_store_ccdlc() which is filling 'len' > and 'len8_dlc' accordingly. > > Signed-off-by: Oliver Hartkopp > > --- > v2: remove unnecessary mod_retrieve_ccdlc() for 'set' modification Added to linux-can-next/testing. Thanks, 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 |