[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <4EB26702.60506@hartkopp.net>
Date: Thu, 03 Nov 2011 11:03:46 +0100
From: Oliver Hartkopp <socketcan@...tkopp.net>
To: Marc Kleine-Budde <mkl@...gutronix.de>
CC: kurt.van.dijck@....be, netdev@...r.kernel.org,
linux-can@...r.kernel.org, Reuben.Dowle@...ico.com
Subject: Re: [PATCH 2/2] flexcan: Fix CAN_RAW_RECV_OWN_MSGS and CAN_RAW_LOOPBACK
On 03.11.2011 10:47, Marc Kleine-Budde wrote:
> @@ -609,9 +605,10 @@ static irqreturn_t flexcan_irq(int irq, void *dev_id)
>
> /* transmission complete interrupt */
> if (reg_iflag1 & (1 << FLEXCAN_TX_BUF_ID)) {
> - /* tx_bytes is incremented in flexcan_start_xmit */
> + stats->tx_bytes += can_get_echo_skb(dev, 0);
> stats->tx_packets++;
> flexcan_write((1 << FLEXCAN_TX_BUF_ID), ®s->iflag1);
> + can_get_echo_skb(dev, 0);
> netif_wake_queue(dev);
> }
What's the reason for the second can_get_echo_skb() here?
IIRC the skb is already netif_rx'ed and consumed by the first attempt.
Regards,
Oliver
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists