From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754395AbdHYAmr (ORCPT ); Thu, 24 Aug 2017 20:42:47 -0400 Received: from mail-wm0-f51.google.com ([74.125.82.51]:35408 "EHLO mail-wm0-f51.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754372AbdHYAmo (ORCPT ); Thu, 24 Aug 2017 20:42:44 -0400 Subject: Re: [PATCH net-next] tg3: Be drop monitor friendly To: Michael Chan Cc: Netdev , edumazet@gmail.com, David Miller , Siva Reddy Kallam , Prashant Sreedharan , Michael Chan , open list References: <20170824232530.16728-1-f.fainelli@gmail.com> From: Florian Fainelli Message-ID: <88bf2189-a867-897c-d030-7a025d48782f@gmail.com> Date: Thu, 24 Aug 2017 17:42:36 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 08/24/2017 05:04 PM, Michael Chan wrote: > On Thu, Aug 24, 2017 at 4:25 PM, Florian Fainelli > wrote: >> >> tg3_tx() does the normal packet TX completion, >> tigon3_dma_hwbug_workaround() needs to allocate a new SKB that is >> suitable for the DMA hardware bug, and finally tg3_free_rings() is doing >> ring cleanup. Use dev_consume_skb_any() for these 3 locations to be SKB >> drop monitor friendly. >> >> Signed-off-by: Florian Fainelli > > > Florian, the one at the end of tg3_tso_bug() should also be converted to > dev_consume_skb_any(). tg3_tso_bug() is similar to > tigon3_dma_hwbug_workaround(). Thanks. Indeed, thanks, will resubmit. -- Florian