can: c_can: Store dlc private
authorThomas Gleixner <tglx@linutronix.de>
Tue, 18 Mar 2014 17:19:14 +0000 (17:19 +0000)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Tue, 1 Apr 2014 09:55:01 +0000 (11:55 +0200)
commit902470085406934d3f20c4af02de7d79c01b6b93
treede6f4ce87f4fc9495e4a63924c2d1641228e5117
parentc0a9f4d396c9d3cf34d21e318a422f9461d93042
can: c_can: Store dlc private

We can avoid the HW access in TX cleanup path for retrieving the DLC
of the sent package if we store the DLC in a private array.

Ideally this should be handled in the can_echo_skb functions, but I
leave that exercise to the CAN folks.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
drivers/net/can/c_can/c_can.c
drivers/net/can/c_can/c_can.h