[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <545A3838.3090606@free-electrons.com>
Date: Wed, 05 Nov 2014 11:46:16 -0300
From: Ezequiel Garcia <ezequiel.garcia@...e-electrons.com>
To: Karl Beldan <karl.beldan@...il.com>,
David Miller <davem@...emloft.net>,
Ian Campbell <ijc@...lion.org.uk>
CC: Karl Beldan <karl.beldan@...ierawaves.com>, netdev@...r.kernel.org,
Eric Dumazet <eric.dumazet@...il.com>,
Sebastian Hesselbarth <sebastian.hesselbarth@...il.com>
Subject: Re: [PATCH] net: mv643xx_eth: reclaim TX skbs only when released
by the HW
Hi Karl,
On 11/05/2014 11:32 AM, Karl Beldan wrote:> From: Karl Beldan <karl.beldan@...ierawaves.com>
>
> ATM, txq_reclaim will dequeue and free an skb for each tx desc released
> by the hw that has TX_LAST_DESC set. However, in case of TSO, each
> hw desc embedding the last part of a segment has TX_LAST_DESC set,
> losing the one-to-one 'last skb frag'/'TX_LAST_DESC set' correspondance,
> which causes data corruption.
>
> Fix this by checking TX_ENABLE_INTERRUPT instead of TX_LAST_DESC, and
> warn when trying to dequeue from an empty txq (which can be symptomatic
> of releasing skbs prematurely).
>
> Fixes: 3ae8f4e0b98 ('net: mv643xx_eth: Implement software TSO')
Although your change makes sense, this isn't fixing the issue for me,
neither did the previous one.
Ian: Can you double check that you have corruption *without* the patch,
and that the patch fixes the issue?
--
Ezequiel GarcĂa, Free Electrons
Embedded Linux, Kernel and Android Engineering
http://free-electrons.com
Download attachment "signature.asc" of type "application/pgp-signature" (820 bytes)
Powered by blists - more mailing lists