From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCH] kni: unregister an unregisterd net_device could cause a kernel crash Date: Sat, 10 Sep 2016 09:57:20 +0200 Message-ID: <5748392.LeAesWsqIn@xps13> References: <1473389167-2758-1-git-send-email-zhouyates@gmail.com> <2019611.627KgLZ47A@xps13> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: "Yigit, Ferruh" , Stephen Hemminger , zhouyangchao , dev@dpdk.org To: "Mcnamara, John" Return-path: Received: from mail-wm0-f44.google.com (mail-wm0-f44.google.com [74.125.82.44]) by dpdk.org (Postfix) with ESMTP id 9A6112C8 for ; Sat, 10 Sep 2016 09:57:21 +0200 (CEST) Received: by mail-wm0-f44.google.com with SMTP id 1so67337413wmz.1 for ; Sat, 10 Sep 2016 00:57:21 -0700 (PDT) In-Reply-To: List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 2016-09-09 14:33, Mcnamara, John: > From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Thomas Monjalon > > 2016-09-08 18:15, Ferruh Yigit: > > > On 9/8/2016 5:44 PM, Stephen Hemminger wrote: > > > > > > ... > > > > > > > But then again the whole KNI driver fails completely when running > > > > kernel style check. > > > > > > > > > > Yes, it generates lots of warnings. > > > I can fix them (excluding ethtool/*), that wouldn't take much time but > > > how syntax only patches welcomed? Another concern is it trashes git > > blame. > > > > You ask a question and give the answer ;) I think it depends just on the > > balance of the pros/cons - to be evaluated. > > Hi, > > I think in general we would prefer to avoid any large scale code beautification since, as pointed out, it breaks the option to git blame. > > However, in the case of the KNI code the main author in git is "Intel" so git blame doesn't tell you a lot. Also, Ferruh is the maintainer, has made most of the recent changes, and is actively maintaining/improving it. So I think if the syntax fix came from him it would be okay. At least it would allow us to apply the checkpatch checks. Yes seems reasonnable