From mboxrd@z Thu Jan 1 00:00:00 1970 From: Benjamin Herrenschmidt Subject: Re: [PATCH] ibmveth: Kernel crash LSO offload flag toggle Date: Thu, 16 Nov 2017 08:57:28 +1100 Message-ID: <1510783048.2397.68.camel@kernel.crashing.org> References: <20171114153420.3911-1-bryantly@linux.vnet.ibm.com> <87inec2r83.fsf@linkitivity.dja.id.au> <94eb928a-5d8d-6bf8-9efd-5a9cd602050f@linux.vnet.ibm.com> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Cc: linuxppc-dev@lists.ozlabs.org, netdev@vger.kernel.org, Sivakumar Krishnasamy , stable@vger.kernel.org To: "Bryant G. Ly" , Daniel Axtens , paulus@samba.org, mpe@ellerman.id.au, tlfalcon@linux.vnet.ibm.com Return-path: In-Reply-To: <94eb928a-5d8d-6bf8-9efd-5a9cd602050f@linux.vnet.ibm.com> Sender: stable-owner@vger.kernel.org List-Id: netdev.vger.kernel.org On Wed, 2017-11-15 at 10:45 -0600, Bryant G. Ly wrote: > This patch just closes the window, bad things can still happen. I wanted to leave it > up to the people who actively develop in ibmveth to close the window, since introducing > a lock can be expensive in tx. You don't need to instroduce a lock. The network stack already have a per-queue lock, you just use the existing one. Look at what I did in sungem or ftgmac100 with the reset task, those are fairly simple drivers and should illustrate the technique. Cheers, Ben.